CMS 3D CMS Logo

GsfElectronFakeAnalyzer.h
Go to the documentation of this file.
1 #ifndef GsfElectronFakeAnalyzer_h
2 #define GsfElectronFakeAnalyzer_h
3 
4 //
5 // Package: RecoEgamma/Examples
6 // Class: GsfElectronFakeAnalyzer
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 GsfElectronFakeAnalyzer(const edm::ParameterSet &conf);
38 
39  ~GsfElectronFakeAnalyzer() 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  TFile *histfile_;
50  TTree *tree_;
51  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
53  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
54 
56 
63 
69 
104 
107 
128 
129  TH1F *histNum_;
130 
131  TH1F *histSclEn_;
134  TH1F *histSclEt_;
138  TH1F *histSclEta_;
139  TH1F *histSclPhi_;
155 
172  TH1F *h_ele_chi2;
178 
201 
210  TH1F *h_ele_EoP;
246 
301 
309 
311  TH1F *h_ele_eta;
316 
317  TH1F *h_ele_HoE;
327 
328  TH1F *h_ele_fbrem;
331 
344 
345  TH1F *h_ele_mva;
347 
356 
362  bool readAOD_;
363 
364  double maxPt_;
365  double maxAbsEta_;
366  double deltaR_;
367 
368  // histos limits and binning
369  double etamin;
370  double etamax;
371  double phimin;
372  double phimax;
373  double ptmax;
374  double pmax;
375  double eopmax;
376  double eopmaxsht;
377  double detamin;
378  double detamax;
379  double dphimin;
380  double dphimax;
381  double detamatchmin;
382  double detamatchmax;
383  double dphimatchmin;
384  double dphimatchmax;
385  double fhitsmax;
386  double lhitsmax;
387  double meemin;
388  double meemax;
389  double hoemin;
390  double hoemax;
391  int nbineta;
392  int nbinp;
393  int nbinpt;
395  int nbinphi;
396  int nbinp2D;
397  int nbinpt2D;
400  int nbineop;
404  int nbinxyz;
405  int nbindeta;
406  int nbindphi;
411  int nbinmee;
412  int nbinhoe;
413 };
414 
415 #endif
TrajectoryStateTransform transformer_
edm::ESHandle< MagneticField > theMagField
GsfElectronFakeAnalyzer(const edm::ParameterSet &conf)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
edm::ESHandle< TrackerGeometry > pDD