[1052] | 1 | #ifndef DelphesLHEFReader_h
|
---|
| 2 | #define DelphesLHEFReader_h
|
---|
| 3 |
|
---|
| 4 | /** \class DelphesLHEFReader
|
---|
| 5 | *
|
---|
| 6 | * Reads LHEF file
|
---|
| 7 | *
|
---|
| 8 | *
|
---|
| 9 | * $Date: 2013-08-16 14:29:25 +0000 (Fri, 16 Aug 2013) $
|
---|
| 10 | * $Revision: 1265 $
|
---|
| 11 | *
|
---|
| 12 | *
|
---|
| 13 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
| 14 | *
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | #include <stdio.h>
|
---|
| 18 |
|
---|
[1265] | 19 | #include <vector>
|
---|
| 20 |
|
---|
[1052] | 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 |
|
---|
[1265] | 47 | void AnalyzeRwgt(ExRootTreeBranch *branch);
|
---|
| 48 |
|
---|
[1052] | 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 |
|
---|
[1265] | 62 | bool fEventReady;
|
---|
| 63 |
|
---|
[1052] | 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;
|
---|
[1265] | 71 |
|
---|
| 72 | std::vector<double> fRwgtList;
|
---|
[1052] | 73 | };
|
---|
| 74 |
|
---|
| 75 | #endif // DelphesLHEFReader_h
|
---|
| 76 |
|
---|
| 77 |
|
---|