CMS 3D CMS Logo

GsfElectronMCFakeAnalyzer.h
Go to the documentation of this file.
1 #ifndef GsfElectronMCFakeAnalyzer_h
2 #define GsfElectronMCFakeAnalyzer_h
3 
4 //
5 // Package: RecoEgamma/Examples
6 // Class: GsfElectronMCFakeAnalyzer
7 //
8 
9 //
10 // Original Author: Ursula Berthon, Claude Charlot
11 // Created: Mon Mar 27 13:22:06 CEST 2006
12 //
13 //
14 
22 
24 
26 
27 class MagneticField;
28 class TFile;
29 class TH1F;
30 class TH2F;
31 class TH1I;
32 class TProfile;
33 class TTree;
34 
36 public:
37  explicit GsfElectronMCFakeAnalyzer(const edm::ParameterSet &conf);
38 
39  ~GsfElectronMCFakeAnalyzer() override;
40 
41  void beginJob() override;
42  void endJob() override;
43  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
44 
45 private:
49  bool readAOD_;
51 
55 
56  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
58  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
59 
60  double maxPt_;
61  double maxAbsEta_;
62  double deltaR_;
63 
64  TFile *histfile_;
65  TTree *tree_;
66 
67  // histos limits and binning
68 
69  int nbinxyz;
70  int nbinp;
71  int nbinp2D;
72  double pmax;
73  int nbinpt;
74  int nbinpt2D;
75  int nbinpteff;
76  double ptmax;
77  int nbinfhits;
78  double fhitsmax;
79  int nbinlhits;
80  double lhitsmax;
81  int nbineta;
82  int nbineta2D;
83  double etamin;
84  double etamax;
85  int nbindeta;
86  double detamin;
87  double detamax;
90  double detamatchmin;
91  double detamatchmax;
92  int nbinphi;
93  int nbinphi2D;
94  double phimin;
95  double phimax;
96  int nbindphi;
97  double dphimin;
98  double dphimax;
101  double dphimatchmin;
102  double dphimatchmax;
103  int nbineop;
105  double eopmax;
106  double eopmaxsht;
107  int nbinmee;
108  double meemin;
109  double meemax;
110  int nbinhoe;
111  double hoemin;
112  double hoemax;
113 
114  // histos
115 
117 
124 
139 
142 
148 
168 
169  TH1F *histNum_;
170 
171  TH1F *histSclEn_;
174  TH1F *histSclEt_;
178  TH1F *histSclEta_;
179  TH1F *histSclPhi_;
195 
212  TH1F *h_ele_chi2;
218 
234 
242 
251  TH1F *h_ele_EoP;
287 
342 
350 
352  TH1F *h_ele_eta;
357 
358  TH1F *h_ele_HoE;
368 
369  TH1F *h_ele_fbrem;
372 
385 
386  TH1F *h_ele_mva;
388 
397 };
398 
399 #endif
void analyze(const edm::Event &e, const edm::EventSetup &c) override
TrajectoryStateTransform transformer_
edm::ESHandle< MagneticField > theMagField
edm::ESHandle< TrackerGeometry > pDD
GsfElectronMCFakeAnalyzer(const edm::ParameterSet &conf)