Changeset 19336 for trunk/Mars/mcorsika


Ignore:
Timestamp:
10/30/18 17:06:54 (6 years ago)
Author:
tbretz
Message:
Flexible block size when reading the EVTE block to acount for different block size in thinning option.
Location:
trunk/Mars/mcorsika
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcorsika/MCorsikaEvtHeader.cc

    r18569 r19336  
    178178// this member function is for reading the event end block
    179179
    180 Int_t MCorsikaEvtHeader::ReadEvtEnd(MCorsikaFormat * fInFormat)
    181 {
    182     Float_t f[272];
    183     if (!fInFormat->Read(f, 272 * sizeof(Float_t)))
     180Int_t MCorsikaEvtHeader::ReadEvtEnd(MCorsikaFormat * fInFormat, const uint32_t &blockLength)
     181{
     182    vector<Float_t> f(blockLength);
     183    if (!fInFormat->Read(f.data(), blockLength))
    184184        return kERROR;
    185185
  • trunk/Mars/mcorsika/MCorsikaEvtHeader.h

    r19296 r19336  
    8181
    8282    Int_t ReadEvt(Float_t * f);                 // read in event header block
    83     Int_t ReadEvtEnd(MCorsikaFormat *informat); // read in event end block
     83    Int_t ReadEvtEnd(MCorsikaFormat * fInFormat, const uint32_t &blockLength); // read in event end block
    8484
    8585    Bool_t SetupFits(fits &fin);
Note: See TracChangeset for help on using the changeset viewer.