Fork me on GitHub

Changeset d699b13 in git for classes


Ignore:
Timestamp:
May 21, 2013, 10:03:37 PM (12 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
438757a
Parents:
4575766
Message:

fix STDHEP reader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesSTDHEPReader.cc

    r4575766 rd699b13  
    132132void DelphesSTDHEPReader::SkipBytes(u_int size)
    133133{
    134   xdr_opaque(fInputXDR, fBuffer, size);
     134  u_int rndup;
     135  rndup = size % 4;
     136  if(rndup > 0)
     137  {
     138    rndup = 4 - rndup;
     139  }
     140
     141  fseek(fInputFile, size + rndup, SEEK_CUR);
    135142}
    136143
     
    240247
    241248  u_int dimNTuples = 0;
    242   if(strncmp(fBuffer, "2.00", 4))
     249  if(strncmp(fBuffer, "2.00", 4) == 0)
    243250  {
    244251    SkipBytes(4);
     
    254261
    255262  // Processing blocks extraction
    256   if(dimNTuples > 0 && strncmp(fBuffer, "2.00", 4))
     263  if(dimNTuples > 0 && strncmp(fBuffer, "2.00", 4) == 0)
    257264  {
    258265    SkipArray(4);
Note: See TracChangeset for help on using the changeset viewer.