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 // forward declarations
12 class TFile;
13 class TH1F;
14 class TH2F;
15 class TProfile;
16 class TTree;
17 class SimVertex;
18 class SimTrack;
19 
21 public:
22  //
23  explicit MCElectronAnalyzer(const edm::ParameterSet&);
24  ~MCElectronAnalyzer() override;
25 
26  void analyze(const edm::Event&, const edm::EventSetup&) override;
27  void beginJob() override;
28  void endJob() override;
29 
30 private:
31  float etaTransformation(float a, float b);
32  float phiNormalization(float& a);
33 
34  //
36 
38 
40  TFile* fOutputFile_;
41 
42  int nEvt_;
43  int nMatched_;
44 
46  double mcPhi_;
47  double mcEta_;
48 
53 
54  TH1F* h_MCEleE_;
55  TH1F* h_MCEleEta_;
56  TH1F* h_MCElePhi_;
57  TH1F* h_BremFrac_;
59 
60  TProfile* p_BremVsR_;
61  TProfile* p_BremVsEta_;
62 };
63 
64 #endif
double mcPhi_
global variable for the MC photon
MCElectronAnalyzer(const edm::ParameterSet &)
ElectronMCTruthFinder * theElectronMCTruthFinder_
const TrackerGeometry * trackerGeom
float phiNormalization(float &a)
float etaTransformation(float a, float b)
void endJob() override
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119
void analyze(const edm::Event &, const edm::EventSetup &) override
~MCElectronAnalyzer() override
std::string fOutputFileName_
void beginJob() override