Changeset 18531 for trunk/Mars/mcorsika


Ignore:
Timestamp:
08/05/16 15:25:59 (8 years ago)
Author:
tbretz
Message:
Removed obsolete (left over) function SeekEvtEnd
Location:
trunk/Mars/mcorsika
Files:
2 edited

Legend:

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

    r10060 r18531  
    233233
    234234    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;
    255235}
    256236
     
    326306            *fLog << " " << fAtmosphericLayers[i];
    327307    }
     308    *fLog << endl;
    328309    *fLog << "Atm.Coeff A:   ";
    329310    for (int i=0; i<5; i++)
  • trunk/Mars/mcorsika/MCorsikaRunHeader.h

    r14447 r18531  
    126126    Bool_t ReadEventHeader(Float_t * g);
    127127    Bool_t ReadEvtEnd(MCorsikaFormat * fInFormat, Bool_t runNumberVerify);
    128     Bool_t SeekEvtEnd(std::istream &fin);
    129128
    130129    // TObject
Note: See TracChangeset for help on using the changeset viewer.