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 
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 MCPizeroAnalyzer( const edm::ParameterSet& ) ;
29  ~MCPizeroAnalyzer() override;
30 
31 
32  void analyze( const edm::Event&, const edm::EventSetup& ) override ;
33  void beginJob() override ;
34  void endJob() override ;
35 
36  private:
37 
38 
39  float etaTransformation( float a, float b);
40  float phiNormalization( float& a);
41 
42 
43  //
45 
46 
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_MCPizE_;
68  TH1F* h_MCPizEta_;
72  TH1F* h_MCPizPhi_;
75 
76  TH1F* h_MCEleE_;
77  TH1F* h_MCEleEta_;
78  TH1F* h_MCElePhi_;
79  TH1F* h_BremFrac_;
81 
83 
84  TH1F* h_MCPhoE_;
85  TH1F* h_MCPhoEta_;
86  TH1F* h_MCPhoPhi_;
91 
92 
93 
94 };
95 
96 #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:120
void endJob() override
PizeroMCTruthFinder * thePizeroMCTruthFinder_
void beginJob() override
double a
Definition: hdecay.h:121
std::string SimHitLabel