CMS 3D CMS Logo

MCPhotonAnalyzer.h
Go to the documentation of this file.
1 #ifndef MCPhotonAnalyzer_H
2 #define MCPhotonAnalyzer_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 MCPhotonAnalyzer(const edm::ParameterSet&);
24  ~MCPhotonAnalyzer() 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 
47  double mcPhi_;
48  double mcEta_;
49 
54 
55  // all photons
56  TH1F* h_MCPhoE_;
57  TH1F* h_MCPhoEta_;
58  TH1F* h_MCPhoEta1_;
59  TH1F* h_MCPhoEta2_;
60  TH1F* h_MCPhoEta3_;
61  TH1F* h_MCPhoEta4_;
62  TH1F* h_MCPhoPhi_;
63  // Conversion
76 
87 
88  TH1F* h_MCEleE_;
89  TH1F* h_MCEleEta_;
90  TH1F* h_MCElePhi_;
91  TH1F* h_BremFrac_;
95 
96  TProfile* p_BremVsR_;
97  TProfile* p_BremVsEta_;
98 
99  TProfile* p_BremVsConvR_;
100  TProfile* p_BremVsConvEta_;
101 
103 };
104 
105 #endif
float etaTransformation(float a, float b)
TH1F * h_MCConvPhoOneTrackE_
Conversions with one track.
double mcPhi_
global variable for the MC photon
TH1F * h_MCConvPhoOneTrackR_
~MCPhotonAnalyzer() override
TH1F * h_MCConvPhoTwoTracksPhi_
TProfile * p_BremVsEta_
const TrackerGeometry * trackerGeom
void endJob() override
TH1F * h_MCConvPhoOneTrackPhi_
TProfile * p_BremVsConvR_
std::string fOutputFileName_
TH1F * h_MCConvPhoTwoTracksR_
TH1F * h_MCConvPhoTwoTracksE_
Conversions with two tracks.
TH1F * h_MCConvPhoOneTrackEta_
TProfile * p_BremVsConvEta_
std::string SimTkLabel
MCPhotonAnalyzer(const edm::ParameterSet &)
void beginJob() override
std::string HepMCLabel
std::string SimVtxLabel
void analyze(const edm::Event &, const edm::EventSetup &) override
double b
Definition: hdecay.h:118
std::string SimHitLabel
TH1F * h_MCConvPhoTwoTracksEta_
double a
Definition: hdecay.h:119
PhotonMCTruthFinder * thePhotonMCTruthFinder_
float phiNormalization(float &a)
TProfile * p_BremVsR_