Fork me on GitHub

source: svn/trunk/classes/DelphesLHEFReader.h@ 1170

Last change on this file since 1170 was 1052, checked in by Pavel Demin, 12 years ago

add DelphesLHEFReader, DelphesSTDHEPReader and DelphesHepMCReader

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision Date
File size: 1.2 KB
Line 
1#ifndef DelphesLHEFReader_h
2#define DelphesLHEFReader_h
3
4/** \class DelphesLHEFReader
5 *
6 * Reads LHEF file
7 *
8 *
9 * $Date: 2013-03-09 23:26:28 +0000 (Sat, 09 Mar 2013) $
10 * $Revision: 1052 $
11 *
12 *
13 * \author P. Demin - UCL, Louvain-la-Neuve
14 *
15 */
16
17#include <stdio.h>
18
19class TObjArray;
20class TStopwatch;
21class TDatabasePDG;
22class ExRootTreeBranch;
23class DelphesFactory;
24
25class DelphesLHEFReader
26{
27public:
28
29 DelphesLHEFReader();
30 ~DelphesLHEFReader();
31
32 void SetInputFile(FILE *inputFile);
33
34 void Clear();
35 bool EventReady();
36
37 bool ReadBlock(DelphesFactory *factory,
38 TObjArray *allParticleOutputArray,
39 TObjArray *stableParticleOutputArray,
40 TObjArray *partonOutputArray);
41
42 void AnalyzeEvent(ExRootTreeBranch *branch, long long eventNumber,
43 TStopwatch *readStopWatch, TStopwatch *procStopWatch);
44
45private:
46
47 void AnalyzeParticle(DelphesFactory *factory,
48 TObjArray *allParticleOutputArray,
49 TObjArray *stableParticleOutputArray,
50 TObjArray *partonOutputArray);
51
52 FILE *fInputFile;
53
54 char *fBuffer;
55
56 TDatabasePDG *fPDG;
57
58 int fEventCounter;
59
60 int fParticleCounter, fProcessID;
61 double fWeight, fScalePDF, fAlphaQCD, fAlphaQED;
62
63 int fPID, fStatus, fM1, fM2, fC1, fC2;
64 double fPx, fPy, fPz, fE, fMass;
65};
66
67#endif // DelphesLHEFReader_h
68
69
Note: See TracBrowser for help on using the repository browser.