CMS 3D CMS Logo

MCPizeroAnalyzer.h
Go to the documentation of this file.
1 #ifndef MCPizeroAnalyzer_H
2 #define MCPizeroAnalyzer_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 MCPizeroAnalyzer(const edm::ParameterSet&);
24  ~MCPizeroAnalyzer() 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  TFile* fOutputFile_;
39 
40  int nEvt_;
41  int nMatched_;
42 
44  double mcPhi_;
45  double mcEta_;
46 
51 
52  TH1F* h_MCPizE_;
53  TH1F* h_MCPizEta_;
57  TH1F* h_MCPizPhi_;
60 
61  TH1F* h_MCEleE_;
62  TH1F* h_MCEleEta_;
63  TH1F* h_MCElePhi_;
64  TH1F* h_BremFrac_;
66 
68 
69  TH1F* h_MCPhoE_;
70  TH1F* h_MCPhoEta_;
71  TH1F* h_MCPhoPhi_;
76 };
77 
78 #endif
float phiNormalization(float &a)
~MCPizeroAnalyzer() override
void analyze(const edm::Event &, const edm::EventSetup &) override
MCPizeroAnalyzer(const edm::ParameterSet &)
std::string HepMCLabel
std::string SimTkLabel
float etaTransformation(float a, float b)
std::string SimVtxLabel
double mcPhi_
global variable for the MC photon
std::string fOutputFileName_
double b
Definition: hdecay.h:118
void endJob() override
PizeroMCTruthFinder * thePizeroMCTruthFinder_
void beginJob() override
double a
Definition: hdecay.h:119
std::string SimHitLabel