Fork me on GitHub

source: git/classes/DelphesLHEFReader.h@ be2222c

ImprovedOutputFile Timing dual_readout llp
Last change on this file since be2222c was 0dc0eeb, checked in by pavel <pavel@…>, 11 years ago

read reweighting information from LHEF

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[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]21class TObjArray;
22class TStopwatch;
23class TDatabasePDG;
24class ExRootTreeBranch;
25class DelphesFactory;
26
27class DelphesLHEFReader
28{
29public:
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]49private:
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
Note: See TracBrowser for help on using the repository browser.