CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfElectronMCAnalyzer.h
Go to the documentation of this file.
1 #ifndef GsfElectronMCAnalyzer_h
2 #define GsfElectronMCAnalyzer_h
3 
4 //
5 // Package: RecoEgamma/Examples
6 // Class: GsfElectronMCAnalyzer
7 //
8 
9 //
10 // Original Author: Ursula Berthon, Claude Charlot
11 // Created: Mon Mar 27 13:22:06 CEST 2006
12 // $Id: GsfElectronMCAnalyzer.h,v 1.19 2009/09/19 15:35:33 charlot Exp $
13 //
14 //
15 
16 
23 
25 
27 
29 
30 #include <vector>
31 
32 class MagneticField;
33 class TFile;
34 class TH1F;
35 class TH2F;
36 class TH1I;
37 class TProfile;
38 class TTree;
39 
41 {
42  public:
43 
45 
46  virtual ~GsfElectronMCAnalyzer();
47 
48  virtual void beginJob();
49  virtual void endJob();
50  virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
51 
52  private:
53 
57  TFile *histfile_;
58  TTree *tree_;
59  float mcEnergy[10], mcEta[10], mcPhi[10], mcPt[10], mcQ[10];
61  float seedMomentum[10], seedEta[10], seedPhi[10], seedPt[10], seedQ[10];
62 
63  TH1F *h_mcNum;
64  TH1F *h_eleNum;
65  TH1F *h_gamNum;
66 
67  TH1F *h_simEta;
68  TH1F *h_simAbsEta;
69  TH1F *h_simP;
70  TH1F *h_simPt;
71  TH1F *h_simPhi;
72  TH1F *h_simZ;
73  TH2F *h_simPtEta;
74 
81 
87 
129 
132 
139  TH1F *h_ele_Et;
154 
155  TH1F *histNum_;
156 
157  TH1F *histSclEn_ ;
176  TH1F *histSclEt_ ;
180  TH1F *histSclEta_ ;
181  TH1F *histSclPhi_ ;
182 
184 
191  TH1F *histSclE1x5_ ;
197  TH1F *histSclE5x5_ ;
215 
232  TH1F *h_ele_chi2;
238 
273 
282  TH1F *h_ele_EoP;
318 
373 
381 
383  TH1F *h_ele_eta;
388 
389  TH1F *h_ele_HoE;
399 
400  TH1F *h_ele_fbrem;
404 
417 
418  TH1F *h_ele_mva;
419  TH1F *h_ele_mva_eg;
421 
430 
431  std::string outputFile_;
434  bool readAOD_;
435 
436  double maxPt_;
437  double maxAbsEta_;
438  double deltaR_;
439  std::vector<int> matchingIDs_;
440  std::vector<int> matchingMotherIDs_;
441 
442  // histos limits and binning
443  double etamin;
444  double etamax;
445  double phimin;
446  double phimax;
447  double ptmax;
448  double pmax;
449  double eopmax;
450  double eopmaxsht;
451  double detamin;
452  double detamax;
453  double dphimin;
454  double dphimax;
455  double detamatchmin;
456  double detamatchmax;
457  double dphimatchmin;
458  double dphimatchmax;
459  double fhitsmax;
460  double lhitsmax;
461  double poptruemin;
462  double poptruemax;
463  double meemin;
464  double meemax;
465  double hoemin;
466  double hoemax;
467  int nbineta;
468  int nbinp;
469  int nbinpt;
471  int nbinphi;
472  int nbinp2D;
473  int nbinpt2D;
476  int nbineop;
480  int nbinxyz;
481  int nbindeta;
482  int nbindphi;
488  int nbinmee;
489  int nbinhoe;
490 
491  };
492 
493 #endif
494 
495 
496 
edm::ESHandle< TrackerGeometry > pDD
GsfElectronMCAnalyzer(const edm::ParameterSet &conf)
edm::ESHandle< MagneticField > theMagField
TrajectoryStateTransform transformer_
std::vector< int > matchingMotherIDs_
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
tuple conf
Definition: dbtoconf.py:185
std::vector< int > matchingIDs_