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