Changes in classes/DelphesSTDHEPReader.cc [cab38f6:b55dc12] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesSTDHEPReader.cc
rcab38f6 rb55dc12 77 77 fInputFile = inputFile; 78 78 xdrstdio_create(fInputXDR, inputFile, XDR_DECODE); 79 ReadFileHeader();80 79 } 81 80 … … 107 106 SkipBytes(4); 108 107 109 if(fBlockType == EVENTTABLE) 108 if(fBlockType == FILEHEADER) 109 { 110 ReadFileHeader(); 111 } 112 else if(fBlockType == EVENTTABLE) 110 113 { 111 114 ReadEventTable(); … … 177 180 u_int i; 178 181 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);187 182 188 183 // version
Note:
See TracChangeset
for help on using the changeset viewer.