Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesPileUpReader.cc

    r341014c rb8b29f1  
    1717 */
    1818
     19
    1920/** \class DelphesPileUpReader
    2021 *
     
    2728#include "classes/DelphesPileUpReader.h"
    2829
     30#include <stdexcept>
    2931#include <iostream>
    3032#include <sstream>
    31 #include <stdexcept>
    3233
     34#include <stdio.h>
    3335#include <stdint.h>
    34 #include <stdio.h>
    3536
    3637#include "classes/DelphesXDRReader.h"
     
    5152  stringstream message;
    5253
    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];
    5556  fInputReader = new DelphesXDRReader;
    5657  fIndexReader = new DelphesXDRReader;
     
    8182
    8283  // 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);
    8586}
    8687
     
    129130
    130131  // read event position
    131   fIndexReader->SetOffset(8 * entry);
     132  fIndexReader->SetOffset(8*entry);
    132133  fIndexReader->ReadValue(&offset, 8);
    133134
     
    141142  }
    142143
    143   fInputReader->ReadRaw(fBuffer, fEntrySize * kRecordSize * 4);
     144  fInputReader->ReadRaw(fBuffer, fEntrySize*kRecordSize*4);
    144145  fBufferReader->SetOffset(0);
    145146  fCounter = 0;
Note: See TracChangeset for help on using the changeset viewer.