CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: GsfElectronDataAnalyzer.h,v 1.22 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 
43  virtual ~GsfElectronDataAnalyzer();
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 
51  bool trigger(const edm::Event & e);
52 
53  unsigned int nEvents_;
54  unsigned int nAfterTrigger_;
55 
58 
59  std::vector<std::string > HLTPathsByName_;
60  std::vector<unsigned int> HLTPathsByIndex_;
61 
67  bool readAOD_;
68  // matching
71  double deltaR_;
72 
76 
77  TFile *histfile_;
78  TTree *tree_;
79  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
81  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
82 
84 
91 
97 
99  TH1F *h_ele_mee_os;
106 
109 
116  TH1F *h_ele_Et;
131 
132  TH1F *histNum_;
133 
134  TH1F *histSclEn_ ;
139  TH1F *histSclEt_ ;
143  TH1F *histSclEta_ ;
144  TH1F *histSclPhi_ ;
151  TH1F *histSclE1x5_ ;
157  TH1F *histSclE5x5_ ;
160 
177  TH1F *h_ele_chi2;
183 
209 
218  TH1F *h_ele_EoP;
242 
279 
287 
289  TH1F *h_ele_eta;
294 
295  TH1F *h_ele_HoE;
302 
303  TH1F *h_ele_fbrem;
306 
319 
320  TH1F *h_ele_mva;
322 
331 
332  // electron selection
333  double minEt_;
334  double minPt_;
335  double maxAbsEta_;
336  bool isEB_;
337  bool isEE_;
359  double mvaMin_;
362  double tkIso03Max_;
368 
369  // histos limits and binning
370  double etamin;
371  double etamax;
372  double phimin;
373  double phimax;
374  double ptmax;
375  double pmax;
376  double eopmax;
377  double eopmaxsht;
378  double detamin;
379  double detamax;
380  double dphimin;
381  double dphimax;
382  double detamatchmin;
383  double detamatchmax;
384  double dphimatchmin;
385  double dphimatchmax;
386  double fhitsmax;
387  double lhitsmax;
388  double poptruemin;
389  double poptruemax;
390  double meemin;
391  double meemax;
392  double hoemin;
393  double hoemax;
394  int nbineta;
395  int nbinp;
396  int nbinpt;
398  int nbinphi;
399  int nbinp2D;
400  int nbinpt2D;
403  int nbineop;
407  int nbinxyz;
408  int nbindeta;
409  int nbindphi;
415  int nbinmee;
416  int nbinhoe;
417 
418  };
419 
420 #endif
421 
422 
423 
std::vector< unsigned int > HLTPathsByIndex_
edm::ESHandle< TrackerGeometry > pDD
TrajectoryStateTransform transformer_
GsfElectronDataAnalyzer(const edm::ParameterSet &conf)
bool trigger(const edm::Event &e)
edm::ESHandle< MagneticField > theMagField
tuple conf
Definition: dbtoconf.py:185
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
std::vector< std::string > HLTPathsByName_