Changeset 18535 for trunk/Mars/mcorsika
- Timestamp:
- 08/05/16 16:23:19 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcorsika/MCorsikaFormat.cc
r18534 r18535 124 124 { 125 125 126 int blockHeader; 127 fIn->read((char*)&blockHeader, 4); 128 if (fIn->eof()) 129 return kFALSE; 126 int blockHeader = 22932; 127 while (blockHeader==22932) 128 { 129 fIn->read((char*)&blockHeader, 4); 130 if (fIn->eof()) 131 return kFALSE; 132 } 130 133 131 134 blockVersion = 0; 132 135 blockIdentifier = 0; 133 136 blockLength = 272 * 4; 137 138 cout << "BH=" << blockHeader << endl; 134 139 135 140 switch(blockHeader) … … 138 143 blockType = 1200; 139 144 break; 140 case 22932: // Magic Number (seems(!) to also signal run end, RUNE comes AFTER)141 145 case 1162761554 : // RUNE 142 146 blockType = 1210;
Note:
See TracChangeset
for help on using the changeset viewer.