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
MCPhotonAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: MCPhotonAnalyzer.cc:166
MCPhotonAnalyzer::nEvt_
int nEvt_
Definition: MCPhotonAnalyzer.h:42
MCPhotonAnalyzer::phiNormalization
float phiNormalization(float &a)
Definition: MCPhotonAnalyzer.cc:150
EDAnalyzer.h
SimVertex
Definition: SimVertex.h:5
TrackerGeometry.h
MCPhotonAnalyzer::h_MCConvPhoTwoTracksPhi_
TH1F * h_MCConvPhoTwoTracksPhi_
Definition: MCPhotonAnalyzer.h:80
MCPhotonAnalyzer::h_MCConvPhoREta3_
TH1F * h_MCConvPhoREta3_
Definition: MCPhotonAnalyzer.h:70
MCPhotonAnalyzer::h_convFracEta2_
TH1F * h_convFracEta2_
Definition: MCPhotonAnalyzer.h:73
MCPhotonAnalyzer::h_MCConvPhoTwoTracksEta_
TH1F * h_MCConvPhoTwoTracksEta_
Definition: MCPhotonAnalyzer.h:79
MCPhotonAnalyzer::h_MCPhoEta_
TH1F * h_MCPhoEta_
Definition: MCPhotonAnalyzer.h:57
MCPhotonAnalyzer::h_MCConvPhoTwoTracksR_
TH1F * h_MCConvPhoTwoTracksR_
Definition: MCPhotonAnalyzer.h:81
MCPhotonAnalyzer::fOutputFile_
TFile * fOutputFile_
Definition: MCPhotonAnalyzer.h:40
MCPhotonAnalyzer::h_BremEnergy_
TH1F * h_BremEnergy_
Definition: MCPhotonAnalyzer.h:92
MCPhotonAnalyzer::h_convFracEta3_
TH1F * h_convFracEta3_
Definition: MCPhotonAnalyzer.h:74
MCPhotonAnalyzer::p_BremVsConvR_
TProfile * p_BremVsConvR_
Definition: MCPhotonAnalyzer.h:99
MCPhotonAnalyzer::p_BremVsConvEta_
TProfile * p_BremVsConvEta_
Definition: MCPhotonAnalyzer.h:100
MCPhotonAnalyzer::p_BremVsR_
TProfile * p_BremVsR_
Definition: MCPhotonAnalyzer.h:96
MCPhotonAnalyzer::MCPhotonAnalyzer
MCPhotonAnalyzer(const edm::ParameterSet &)
Definition: MCPhotonAnalyzer.cc:45
MCPhotonAnalyzer::h_convFracEta4_
TH1F * h_convFracEta4_
Definition: MCPhotonAnalyzer.h:75
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
MCPhotonAnalyzer::h_EleEvsPhoE_
TH2F * h_EleEvsPhoE_
Definition: MCPhotonAnalyzer.h:93
MCPhotonAnalyzer::h_MCEleEta_
TH1F * h_MCEleEta_
Definition: MCPhotonAnalyzer.h:89
MCPhotonAnalyzer::h_MCConvPhoOneTrackEta_
TH1F * h_MCConvPhoOneTrackEta_
Definition: MCPhotonAnalyzer.h:84
MCPhotonAnalyzer
Definition: MCPhotonAnalyzer.h:20
MCPhotonAnalyzer::h_MCConvPhoOneTrackPhi_
TH1F * h_MCConvPhoOneTrackPhi_
Definition: MCPhotonAnalyzer.h:85
MCPhotonAnalyzer::fOutputFileName_
std::string fOutputFileName_
Definition: MCPhotonAnalyzer.h:39
MCPhotonAnalyzer::h_bremFracVsConvR_
TH2F * h_bremFracVsConvR_
Definition: MCPhotonAnalyzer.h:102
MCPhotonAnalyzer::h_MCConvPhoE_
TH1F * h_MCConvPhoE_
Definition: MCPhotonAnalyzer.h:64
MCPhotonAnalyzer::h_BremFrac_
TH1F * h_BremFrac_
Definition: MCPhotonAnalyzer.h:91
MCPhotonAnalyzer::p_BremVsEta_
TProfile * p_BremVsEta_
Definition: MCPhotonAnalyzer.h:97
MCPhotonAnalyzer::h_MCConvPhoPhi_
TH1F * h_MCConvPhoPhi_
Definition: MCPhotonAnalyzer.h:66
MCPhotonAnalyzer::endJob
void endJob() override
Definition: MCPhotonAnalyzer.cc:273
MCPhotonAnalyzer::h_MCElePhi_
TH1F * h_MCElePhi_
Definition: MCPhotonAnalyzer.h:90
MCPhotonAnalyzer::SimTkLabel
std::string SimTkLabel
Definition: MCPhotonAnalyzer.h:51
MCPhotonAnalyzer::h_MCPhoPhi_
TH1F * h_MCPhoPhi_
Definition: MCPhotonAnalyzer.h:62
MCPhotonAnalyzer::~MCPhotonAnalyzer
~MCPhotonAnalyzer() override
Definition: MCPhotonAnalyzer.cc:47
b
double b
Definition: hdecay.h:118
PhotonMCTruthFinder
Definition: PhotonMCTruthFinder.h:20
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PhotonMCTruthFinder.h
edm::ParameterSet
Definition: ParameterSet.h:47
a
double a
Definition: hdecay.h:119
MCPhotonAnalyzer::h_MCConvPhoEta_
TH1F * h_MCConvPhoEta_
Definition: MCPhotonAnalyzer.h:65
MCPhotonAnalyzer::h_MCConvPhoTwoTracksE_
TH1F * h_MCConvPhoTwoTracksE_
Conversions with two tracks.
Definition: MCPhotonAnalyzer.h:78
MCPhotonAnalyzer::HepMCLabel
std::string HepMCLabel
Definition: MCPhotonAnalyzer.h:50
MCPhotonAnalyzer::h_MCConvPhoREta1_
TH1F * h_MCConvPhoREta1_
Definition: MCPhotonAnalyzer.h:68
MCPhotonAnalyzer::h_MCPhoE_
TH1F * h_MCPhoE_
Definition: MCPhotonAnalyzer.h:56
edm::EventSetup
Definition: EventSetup.h:57
MCPhotonAnalyzer::mcPhi_
double mcPhi_
global variable for the MC photon
Definition: MCPhotonAnalyzer.h:47
MCPhotonAnalyzer::h_MCEleE_
TH1F * h_MCEleE_
Definition: MCPhotonAnalyzer.h:88
MCPhotonAnalyzer::h_MCConvPhoR_
TH1F * h_MCConvPhoR_
Definition: MCPhotonAnalyzer.h:67
MCPhotonAnalyzer::h_convFracEta1_
TH1F * h_convFracEta1_
Definition: MCPhotonAnalyzer.h:72
MCPhotonAnalyzer::h_MCConvPhoOneTrackR_
TH1F * h_MCConvPhoOneTrackR_
Definition: MCPhotonAnalyzer.h:86
MCPhotonAnalyzer::h_MCConvPhoREta2_
TH1F * h_MCConvPhoREta2_
Definition: MCPhotonAnalyzer.h:69
MCPhotonAnalyzer::h_MCPhoEta1_
TH1F * h_MCPhoEta1_
Definition: MCPhotonAnalyzer.h:58
MCPhotonAnalyzer::h_MCConvPhoREta4_
TH1F * h_MCConvPhoREta4_
Definition: MCPhotonAnalyzer.h:71
MCPhotonAnalyzer::trackerGeom
const TrackerGeometry * trackerGeom
Definition: MCPhotonAnalyzer.h:37
MCPhotonAnalyzer::etaTransformation
float etaTransformation(float a, float b)
Definition: MCPhotonAnalyzer.cc:113
MCPhotonAnalyzer::beginJob
void beginJob() override
Definition: MCPhotonAnalyzer.cc:49
SimTrack
Definition: SimTrack.h:6
MCPhotonAnalyzer::nMatched_
int nMatched_
Definition: MCPhotonAnalyzer.h:43
MCPhotonAnalyzer::mcEta_
double mcEta_
Definition: MCPhotonAnalyzer.h:48
MCPhotonAnalyzer::SimVtxLabel
std::string SimVtxLabel
Definition: MCPhotonAnalyzer.h:52
MCPhotonAnalyzer::h_MCPhoEta4_
TH1F * h_MCPhoEta4_
Definition: MCPhotonAnalyzer.h:61
MCPhotonAnalyzer::thePhotonMCTruthFinder_
PhotonMCTruthFinder * thePhotonMCTruthFinder_
Definition: MCPhotonAnalyzer.h:35
MCPhotonAnalyzer::h_MCPhoEta3_
TH1F * h_MCPhoEta3_
Definition: MCPhotonAnalyzer.h:60
edm::Event
Definition: Event.h:73
MCPhotonAnalyzer::h_bremEvsEleE_
TH2F * h_bremEvsEleE_
Definition: MCPhotonAnalyzer.h:94
MCPhotonAnalyzer::h_MCConvPhoOneTrackE_
TH1F * h_MCConvPhoOneTrackE_
Conversions with one track.
Definition: MCPhotonAnalyzer.h:83
MCPhotonAnalyzer::SimHitLabel
std::string SimHitLabel
Definition: MCPhotonAnalyzer.h:53
TrackerGeometry
Definition: TrackerGeometry.h:14
MCPhotonAnalyzer::h_MCPhoEta2_
TH1F * h_MCPhoEta2_
Definition: MCPhotonAnalyzer.h:59