Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesSTDHEPReader.cc

    rcab38f6 rb55dc12  
    7777  fInputFile = inputFile;
    7878  xdrstdio_create(fInputXDR, inputFile, XDR_DECODE);
    79   ReadFileHeader();
    8079}
    8180
     
    107106  SkipBytes(4);
    108107
    109   if(fBlockType == EVENTTABLE)
     108  if(fBlockType == FILEHEADER)
     109  {
     110    ReadFileHeader();
     111  }
     112  else if(fBlockType == EVENTTABLE)
    110113  {
    111114    ReadEventTable();
     
    177180  u_int i;
    178181  enum STDHEPVersion {UNKNOWN, V1, V2, V21} version;
    179 
    180   xdr_int(fInputXDR, &fBlockType);
    181   if (fBlockType != FILEHEADER)
    182   {
    183     throw runtime_error("Header block not found. File is probably corrupted.");
    184   }
    185 
    186   SkipBytes(4);
    187182
    188183  // version
Note: See TracChangeset for help on using the changeset viewer.