CMS 3D CMS Logo

MCElectronAnalyzer.h
Go to the documentation of this file.
1 #ifndef MCElectronAnalyzer_H
2 #define MCElectronAnalyzer_H
4 
7 
8 #include <map>
9 #include <vector>
10 
11 
12 // forward declarations
13 class TFile;
14 class TH1F;
15 class TH2F;
16 class TProfile;
17 class TTree;
18 class SimVertex;
19 class SimTrack;
20 
21 
23 {
24 
25  public:
26 
27  //
28  explicit MCElectronAnalyzer( const edm::ParameterSet& ) ;
29  virtual ~MCElectronAnalyzer();
30 
31 
32  virtual void analyze( const edm::Event&, const edm::EventSetup& ) ;
33  virtual void beginJob() ;
34  virtual void endJob() ;
35 
36  private:
37 
38 
39  float etaTransformation( float a, float b);
40  float phiNormalization( float& a);
41 
42 
43  //
45 
47 
49  TFile* fOutputFile_ ;
50 
51 
52 
53 
54  int nEvt_;
55  int nMatched_;
56 
58  double mcPhi_;
59  double mcEta_;
60 
65 
66 
67  TH1F* h_MCEleE_;
68  TH1F* h_MCEleEta_;
69  TH1F* h_MCElePhi_;
70  TH1F* h_BremFrac_;
72 
73  TProfile* p_BremVsR_;
74  TProfile* p_BremVsEta_;
75 
76 
77 
78 };
79 
80 #endif
double mcPhi_
global variable for the MC photon
MCElectronAnalyzer(const edm::ParameterSet &)
ElectronMCTruthFinder * theElectronMCTruthFinder_
const TrackerGeometry * trackerGeom
float phiNormalization(float &a)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
float etaTransformation(float a, float b)
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
virtual void beginJob()
std::string fOutputFileName_