[d7d2da3] | 1 | #ifndef DelphesLHEFReader_h
|
---|
| 2 | #define DelphesLHEFReader_h
|
---|
| 3 |
|
---|
| 4 | /** \class DelphesLHEFReader
|
---|
| 5 | *
|
---|
| 6 | * Reads LHEF file
|
---|
| 7 | *
|
---|
| 8 | *
|
---|
| 9 | * $Date$
|
---|
| 10 | * $Revision$
|
---|
| 11 | *
|
---|
| 12 | *
|
---|
| 13 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
| 14 | *
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | #include <stdio.h>
|
---|
| 18 |
|
---|
[0dc0eeb] | 19 | #include <vector>
|
---|
| 20 |
|
---|
[d7d2da3] | 21 | class TObjArray;
|
---|
| 22 | class TStopwatch;
|
---|
| 23 | class TDatabasePDG;
|
---|
| 24 | class ExRootTreeBranch;
|
---|
| 25 | class DelphesFactory;
|
---|
| 26 |
|
---|
| 27 | class DelphesLHEFReader
|
---|
| 28 | {
|
---|
| 29 | public:
|
---|
| 30 |
|
---|
| 31 | DelphesLHEFReader();
|
---|
| 32 | ~DelphesLHEFReader();
|
---|
| 33 |
|
---|
| 34 | void SetInputFile(FILE *inputFile);
|
---|
| 35 |
|
---|
| 36 | void Clear();
|
---|
| 37 | bool EventReady();
|
---|
| 38 |
|
---|
| 39 | bool ReadBlock(DelphesFactory *factory,
|
---|
| 40 | TObjArray *allParticleOutputArray,
|
---|
| 41 | TObjArray *stableParticleOutputArray,
|
---|
| 42 | TObjArray *partonOutputArray);
|
---|
| 43 |
|
---|
| 44 | void AnalyzeEvent(ExRootTreeBranch *branch, long long eventNumber,
|
---|
| 45 | TStopwatch *readStopWatch, TStopwatch *procStopWatch);
|
---|
| 46 |
|
---|
[0dc0eeb] | 47 | void AnalyzeRwgt(ExRootTreeBranch *branch);
|
---|
| 48 |
|
---|
[d7d2da3] | 49 | private:
|
---|
| 50 |
|
---|
| 51 | void AnalyzeParticle(DelphesFactory *factory,
|
---|
| 52 | TObjArray *allParticleOutputArray,
|
---|
| 53 | TObjArray *stableParticleOutputArray,
|
---|
| 54 | TObjArray *partonOutputArray);
|
---|
| 55 |
|
---|
| 56 | FILE *fInputFile;
|
---|
| 57 |
|
---|
| 58 | char *fBuffer;
|
---|
| 59 |
|
---|
| 60 | TDatabasePDG *fPDG;
|
---|
| 61 |
|
---|
[0dc0eeb] | 62 | bool fEventReady;
|
---|
| 63 |
|
---|
[d7d2da3] | 64 | int fEventCounter;
|
---|
| 65 |
|
---|
| 66 | int fParticleCounter, fProcessID;
|
---|
| 67 | double fWeight, fScalePDF, fAlphaQCD, fAlphaQED;
|
---|
| 68 |
|
---|
| 69 | int fPID, fStatus, fM1, fM2, fC1, fC2;
|
---|
| 70 | double fPx, fPy, fPz, fE, fMass;
|
---|
[0dc0eeb] | 71 |
|
---|
| 72 | std::vector<double> fRwgtList;
|
---|
[d7d2da3] | 73 | };
|
---|
| 74 |
|
---|
| 75 | #endif // DelphesLHEFReader_h
|
---|
| 76 |
|
---|
| 77 |
|
---|