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 
15 
23 
25 
27 
28 class MagneticField;
29 class TFile;
30 class TH1F;
31 class TH2F;
32 class TH1I;
33 class TProfile;
34 class TTree;
35 
37 {
38  public:
39 
40  explicit GsfElectronDataAnalyzer(const edm::ParameterSet& conf);
41 
42  ~GsfElectronDataAnalyzer() override;
43 
44  void beginJob() override;
45  void endJob() override;
46  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
47 
48  private:
49 
50  bool trigger(const edm::Event & e);
51 
52  unsigned int nEvents_;
53  unsigned int nAfterTrigger_;
54 
57 
58  std::vector<std::string > HLTPathsByName_;
59  std::vector<unsigned int> HLTPathsByIndex_;
60 
66  bool readAOD_;
67  // matching
70  double deltaR_;
71 
75 
76  TFile *histfile_;
77  TTree *tree_;
78  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
80  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
81 
83 
90 
96 
98  TH1F *h_ele_mee_os;
105 
108 
115  TH1F *h_ele_Et;
130 
131  TH1F *histNum_;
132 
133  TH1F *histSclEn_ ;
138  TH1F *histSclEt_ ;
142  TH1F *histSclEta_ ;
143  TH1F *histSclPhi_ ;
150  TH1F *histSclE1x5_ ;
156  TH1F *histSclE5x5_ ;
159 
176  TH1F *h_ele_chi2;
182 
208 
217  TH1F *h_ele_EoP;
241 
278 
286 
288  TH1F *h_ele_eta;
293 
294  TH1F *h_ele_HoE;
301 
302  TH1F *h_ele_fbrem;
305 
318 
319  TH1F *h_ele_mva;
321 
330 
331  // electron selection
332  double minEt_;
333  double minPt_;
334  double maxAbsEta_;
335  bool isEB_;
336  bool isEE_;
358  double mvaMin_;
361  double tkIso03Max_;
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 poptruemin;
388  double poptruemax;
389  double meemin;
390  double meemax;
391  double hoemin;
392  double hoemax;
393  int nbineta;
394  int nbinp;
395  int nbinpt;
397  int nbinphi;
398  int nbinp2D;
399  int nbinpt2D;
402  int nbineop;
406  int nbinxyz;
407  int nbindeta;
408  int nbindphi;
414  int nbinmee;
415  int nbinhoe;
416 
417  };
418 
419 #endif
420 
421 
422 
std::vector< unsigned int > HLTPathsByIndex_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
edm::ESHandle< TrackerGeometry > pDD
TrajectoryStateTransform transformer_
GsfElectronDataAnalyzer(const edm::ParameterSet &conf)
bool trigger(const edm::Event &e)
edm::ESHandle< MagneticField > theMagField
std::vector< std::string > HLTPathsByName_