Changes in classes/DelphesPileUpReader.cc [341014c:b8b29f1] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesPileUpReader.cc
r341014c rb8b29f1 17 17 */ 18 18 19 19 20 /** \class DelphesPileUpReader 20 21 * … … 27 28 #include "classes/DelphesPileUpReader.h" 28 29 30 #include <stdexcept> 29 31 #include <iostream> 30 32 #include <sstream> 31 #include <stdexcept>32 33 34 #include <stdio.h> 33 35 #include <stdint.h> 34 #include <stdio.h>35 36 36 37 #include "classes/DelphesXDRReader.h" … … 51 52 stringstream message; 52 53 53 fIndex = new uint8_t[kIndexSize *8];54 fBuffer = new uint8_t[kBufferSize * kRecordSize *4];54 fIndex = new uint8_t[kIndexSize*8]; 55 fBuffer = new uint8_t[kBufferSize*kRecordSize*4]; 55 56 fInputReader = new DelphesXDRReader; 56 57 fIndexReader = new DelphesXDRReader; … … 81 82 82 83 // read index of events 83 fseeko(fPileUpFile, -8 - 8 *fEntries, SEEK_END);84 fInputReader->ReadRaw(fIndex, fEntries *8);84 fseeko(fPileUpFile, -8 - 8*fEntries, SEEK_END); 85 fInputReader->ReadRaw(fIndex, fEntries*8); 85 86 } 86 87 … … 129 130 130 131 // read event position 131 fIndexReader->SetOffset(8 *entry);132 fIndexReader->SetOffset(8*entry); 132 133 fIndexReader->ReadValue(&offset, 8); 133 134 … … 141 142 } 142 143 143 fInputReader->ReadRaw(fBuffer, fEntrySize * kRecordSize *4);144 fInputReader->ReadRaw(fBuffer, fEntrySize*kRecordSize*4); 144 145 fBufferReader->SetOffset(0); 145 146 fCounter = 0;
Note:
See TracChangeset
for help on using the changeset viewer.