#ifndef DelphesPileUpReader_h #define DelphesPileUpReader_h /** \class DelphesPileUpReader * * Reads pile-up binary file * * * $Date$ * $Revision$ * * * \author P. Demin - UCL, Louvain-la-Neuve * */ #include #include #include class DelphesPileUpReader { public: DelphesPileUpReader(const char *fileName); ~DelphesPileUpReader(); bool ReadParticle(int &pid, float &x, float &y, float &z, float &t, float &px, float &py, float &pz, float &e); bool ReadEntry(quad_t entry); quad_t GetEntries() const { return fEntries; } private: quad_t fEntries; int fEntrySize; int fCounter; FILE *fPileUpFile; char *fIndex; char *fBuffer; XDR *fInputXDR; XDR *fIndexXDR; XDR *fBufferXDR; }; #endif // DelphesPileUpReader_h