source: trunk/modules/MadGraphAnalysis.h@ 21

Last change on this file since 21 was 2, checked in by Pavel Demin, 17 years ago

first commit

File size: 1.2 KB
Line 
1#ifndef MadGraphAnalysis_h
2#define MadGraphAnalysis_h
3
4#include "ExRootAnalysis/ExRootModule.h"
5
6#include "TString.h"
7
8#include <map>
9
10class TH1;
11class TObjArray;
12class TClonesArray;
13
14class MadGraphAnalysis: public ExRootModule
15{
16public:
17
18 MadGraphAnalysis();
19 ~MadGraphAnalysis();
20
21 void Init();
22 void Process();
23 void Finish();
24
25private:
26
27 struct ParticleHistograms
28 {
29 TH1 *fParticlePt;
30 TH1 *fParticleRapidity;
31 };
32
33 struct PairHistograms
34 {
35 TH1 *fPairDeltaR;
36 TH1 *fPairMass;
37 };
38
39 void BookParticleHistograms(ParticleHistograms *histograms,
40 const char *name, const char *title);
41 void BookPairHistograms(PairHistograms *histograms,
42 const char *name, const char *title);
43
44 ParticleHistograms *GetParticleHistograms(const char *candName);
45 PairHistograms *GetPairHistograms(const char *candName1, const char *candName2);
46
47 TString fOutputFileName; //!
48
49 Bool_t fIsUnWeighted; //!
50
51 const TObjArray *fInputArray; //!
52
53 TClonesArray *fBranchEvent; //!
54
55 std::map<TString, ParticleHistograms *> fParticleHistogramsMap; //!
56 std::map<TString, PairHistograms *> fPairHistogramsMap; //!
57
58 ClassDef(MadGraphAnalysis, 1)
59};
60
61#endif
Note: See TracBrowser for help on using the repository browser.