CMS 3D CMS Logo

GsfElectronDataAnalyzer.h
Go to the documentation of this file.
1 #ifndef GsfElectronDataAnalyzer_h
2 #define GsfElectronDataAnalyzer_h
3 
4 //
5 // Package: RecoEgamma/Examples
6 // Class: GsfElectronDataAnalyzer
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 GsfElectronDataAnalyzer(const edm::ParameterSet &conf);
38 
39  ~GsfElectronDataAnalyzer() 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:
46  bool trigger(const edm::Event &e);
47 
48  unsigned int nEvents_;
49  unsigned int nAfterTrigger_;
50 
53 
54  std::vector<std::string> HLTPathsByName_;
55  std::vector<unsigned int> HLTPathsByIndex_;
56 
62  bool readAOD_;
63  // matching
66  double deltaR_;
67 
71 
72  TFile *histfile_;
73  TTree *tree_;
74  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
76  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
77 
79 
86 
92 
94  TH1F *h_ele_mee_os;
101 
104 
111  TH1F *h_ele_Et;
126 
127  TH1F *histNum_;
128 
129  TH1F *histSclEn_;
134  TH1F *histSclEt_;
138  TH1F *histSclEta_;
139  TH1F *histSclPhi_;
155 
172  TH1F *h_ele_chi2;
178 
204 
213  TH1F *h_ele_EoP;
237 
274 
282 
284  TH1F *h_ele_eta;
289 
290  TH1F *h_ele_HoE;
297 
298  TH1F *h_ele_fbrem;
301 
314 
315  TH1F *h_ele_mva;
317 
326 
327  // electron selection
328  double minEt_;
329  double minPt_;
330  double maxAbsEta_;
331  bool isEB_;
332  bool isEE_;
354  double mvaMin_;
357  double tkIso03Max_;
363 
364  // histos limits and binning
365  double etamin;
366  double etamax;
367  double phimin;
368  double phimax;
369  double ptmax;
370  double pmax;
371  double eopmax;
372  double eopmaxsht;
373  double detamin;
374  double detamax;
375  double dphimin;
376  double dphimax;
377  double detamatchmin;
378  double detamatchmax;
379  double dphimatchmin;
380  double dphimatchmax;
381  double fhitsmax;
382  double lhitsmax;
383  double poptruemin;
384  double poptruemax;
385  double meemin;
386  double meemax;
387  double hoemin;
388  double hoemax;
389  int nbineta;
390  int nbinp;
391  int nbinpt;
393  int nbinphi;
394  int nbinp2D;
395  int nbinpt2D;
398  int nbineop;
402  int nbinxyz;
403  int nbindeta;
404  int nbindphi;
410  int nbinmee;
411  int nbinhoe;
412 };
413 
414 #endif
std::vector< unsigned int > HLTPathsByIndex_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
std::vector< std::string > HLTPathsByName_
edm::ESHandle< TrackerGeometry > pDD
TrajectoryStateTransform transformer_
GsfElectronDataAnalyzer(const edm::ParameterSet &conf)
bool trigger(const edm::Event &e)
edm::ESHandle< MagneticField > theMagField