Changeset 19336 for trunk/Mars/mcorsika
- Timestamp:
- 10/30/18 17:06:54 (6 years ago)
- Location:
- trunk/Mars/mcorsika
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcorsika/MCorsikaEvtHeader.cc
r18569 r19336 178 178 // this member function is for reading the event end block 179 179 180 Int_t MCorsikaEvtHeader::ReadEvtEnd(MCorsikaFormat * fInFormat )181 { 182 Float_t f[272];183 if (!fInFormat->Read(f , 272 * sizeof(Float_t)))180 Int_t MCorsikaEvtHeader::ReadEvtEnd(MCorsikaFormat * fInFormat, const uint32_t &blockLength) 181 { 182 vector<Float_t> f(blockLength); 183 if (!fInFormat->Read(f.data(), blockLength)) 184 184 return kERROR; 185 185 -
trunk/Mars/mcorsika/MCorsikaEvtHeader.h
r19296 r19336 81 81 82 82 Int_t ReadEvt(Float_t * f); // read in event header block 83 Int_t ReadEvtEnd(MCorsikaFormat * informat); // read in event end block83 Int_t ReadEvtEnd(MCorsikaFormat * fInFormat, const uint32_t &blockLength); // read in event end block 84 84 85 85 Bool_t SetupFits(fits &fin);
Note:
See TracChangeset
for help on using the changeset viewer.