CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: GsfElectronMCFakeAnalyzer.h,v 1.4 2012/09/13 20:08:32 wdd Exp $
13 //
14 //
15 
16 
24 
26 
28 
29 class MagneticField;
30 class TFile;
31 class TH1F;
32 class TH2F;
33 class TH1I;
34 class TProfile;
35 class TTree;
36 
38  {
39  public:
40 
42 
44 
45  virtual void beginJob();
46  virtual void endJob();
47  virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
48 
49  private:
50 
54  bool readAOD_;
56 
60 
61  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
63  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
64 
65  double maxPt_;
66  double maxAbsEta_;
67  double deltaR_;
68 
69  TFile *histfile_;
70  TTree *tree_;
71 
72  // histos limits and binning
73 
74  int nbinxyz ;
75  int nbinp ; int nbinp2D ; double pmax ;
76  int nbinpt ; int nbinpt2D ; int nbinpteff ; double ptmax ;
77  int nbinfhits ; double fhitsmax ;
78  int nbinlhits ; double lhitsmax ;
79  int nbineta ; int nbineta2D ; double etamin ; double etamax ;
80  int nbindeta ; double detamin ; double detamax ;
82  int nbinphi ; int nbinphi2D ; double phimin ; double phimax ;
83  int nbindphi ; double dphimin ; double dphimax ;
85  int nbineop ; int nbineop2D ; double eopmax ; double eopmaxsht ;
86  int nbinmee ; double meemin ; double meemax ;
87  int nbinhoe ; double hoemin ; double hoemax ;
88 
89  // histos
90 
92 
99 
114 
117 
123 
143 
144  TH1F *histNum_;
145 
146  TH1F *histSclEn_ ;
149  TH1F *histSclEt_ ;
153  TH1F *histSclEta_ ;
154  TH1F *histSclPhi_ ;
161  TH1F *histSclE1x5_ ;
167  TH1F *histSclE5x5_ ;
170 
187  TH1F *h_ele_chi2;
193 
209 
217 
226  TH1F *h_ele_EoP;
262 
317 
325 
327  TH1F *h_ele_eta;
332 
333  TH1F *h_ele_HoE;
343 
344  TH1F *h_ele_fbrem;
347 
360 
361  TH1F *h_ele_mva;
363 
372 
373  };
374 
375 #endif
376 
377 
378 
TrajectoryStateTransform transformer_
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
tuple conf
Definition: dbtoconf.py:185
edm::ESHandle< MagneticField > theMagField
edm::ESHandle< TrackerGeometry > pDD
GsfElectronMCFakeAnalyzer(const edm::ParameterSet &conf)