Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesPileUpWriter.cc

    rb8b29f1 r341014c  
    1717 */
    1818
    19 
    2019/** \class DelphesPileUpWriter
    2120 *
     
    2827#include "classes/DelphesPileUpWriter.h"
    2928
    30 #include <stdexcept>
    3129#include <iostream>
    3230#include <sstream>
     31#include <stdexcept>
    3332
     33#include <stdint.h>
    3434#include <stdio.h>
    35 #include <stdint.h>
    3635
    3736#include "classes/DelphesXDRWriter.h"
     
    5251  stringstream message;
    5352
    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];
    5655  fOutputWriter = new DelphesXDRWriter;
    5756  fIndexWriter = new DelphesXDRWriter;
     
    118117
    119118  fOutputWriter->WriteValue(&fEntrySize, 4);
    120   fOutputWriter->WriteRaw(fBuffer, fEntrySize*kRecordSize*4);
     119  fOutputWriter->WriteRaw(fBuffer, fEntrySize * kRecordSize * 4);
    121120
    122121  fIndexWriter->WriteValue(&fOffset, 8);
    123   fOffset += fEntrySize*kRecordSize*4 + 4;
     122  fOffset += fEntrySize * kRecordSize * 4 + 4;
    124123
    125124  fBufferWriter->SetOffset(0);
     
    133132void DelphesPileUpWriter::WriteIndex()
    134133{
    135   fOutputWriter->WriteRaw(fIndex, fEntries*8);
     134  fOutputWriter->WriteRaw(fIndex, fEntries * 8);
    136135  fOutputWriter->WriteValue(&fEntries, 8);
    137136}
Note: See TracChangeset for help on using the changeset viewer.