Changeset 18531
- Timestamp:
- 08/05/16 15:25:59 (8 years ago)
- Location:
- trunk/Mars/mcorsika
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcorsika/MCorsikaRunHeader.cc
r10060 r18531 233 233 234 234 return kTRUE; 235 }236 237 Bool_t MCorsikaRunHeader::SeekEvtEnd(istream &fin)238 {239 // Search subblockwise backward (Block: 5733*4 = 21*273*4)240 for (int i=1; i<22; i++)241 {242 fin.seekg(-i*273*4, ios::end);243 244 char runh[4];245 fin.read(runh, 4);246 247 if (!memcmp(runh, "RUNE", 4))248 {249 fin.seekg(-4, ios::cur);250 return kTRUE;251 }252 }253 254 return kFALSE;255 235 } 256 236 … … 326 306 *fLog << " " << fAtmosphericLayers[i]; 327 307 } 308 *fLog << endl; 328 309 *fLog << "Atm.Coeff A: "; 329 310 for (int i=0; i<5; i++) -
trunk/Mars/mcorsika/MCorsikaRunHeader.h
r14447 r18531 126 126 Bool_t ReadEventHeader(Float_t * g); 127 127 Bool_t ReadEvtEnd(MCorsikaFormat * fInFormat, Bool_t runNumberVerify); 128 Bool_t SeekEvtEnd(std::istream &fin);129 128 130 129 // TObject
Note:
See TracChangeset
for help on using the changeset viewer.