Changeset d699b13 in git
- Timestamp:
- May 21, 2013, 10:03:37 PM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 438757a
- Parents:
- 4575766
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesSTDHEPReader.cc
r4575766 rd699b13 132 132 void DelphesSTDHEPReader::SkipBytes(u_int size) 133 133 { 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); 135 142 } 136 143 … … 240 247 241 248 u_int dimNTuples = 0; 242 if(strncmp(fBuffer, "2.00", 4) )249 if(strncmp(fBuffer, "2.00", 4) == 0) 243 250 { 244 251 SkipBytes(4); … … 254 261 255 262 // Processing blocks extraction 256 if(dimNTuples > 0 && strncmp(fBuffer, "2.00", 4) )263 if(dimNTuples > 0 && strncmp(fBuffer, "2.00", 4) == 0) 257 264 { 258 265 SkipArray(4);
Note:
See TracChangeset
for help on using the changeset viewer.