Changes in classes/DelphesPileUpWriter.cc [b8b29f1:341014c] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesPileUpWriter.cc
rb8b29f1 r341014c 17 17 */ 18 18 19 20 19 /** \class DelphesPileUpWriter 21 20 * … … 28 27 #include "classes/DelphesPileUpWriter.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/DelphesXDRWriter.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 fOutputWriter = new DelphesXDRWriter; 57 56 fIndexWriter = new DelphesXDRWriter; … … 118 117 119 118 fOutputWriter->WriteValue(&fEntrySize, 4); 120 fOutputWriter->WriteRaw(fBuffer, fEntrySize *kRecordSize*4);119 fOutputWriter->WriteRaw(fBuffer, fEntrySize * kRecordSize * 4); 121 120 122 121 fIndexWriter->WriteValue(&fOffset, 8); 123 fOffset += fEntrySize *kRecordSize*4 + 4;122 fOffset += fEntrySize * kRecordSize * 4 + 4; 124 123 125 124 fBufferWriter->SetOffset(0); … … 133 132 void DelphesPileUpWriter::WriteIndex() 134 133 { 135 fOutputWriter->WriteRaw(fIndex, fEntries *8);134 fOutputWriter->WriteRaw(fIndex, fEntries * 8); 136 135 fOutputWriter->WriteValue(&fEntries, 8); 137 136 }
Note:
See TracChangeset
for help on using the changeset viewer.