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