CMS 3D CMS Logo

PhotonsWithConversionsAnalyzer.h
Go to the documentation of this file.
1 #ifndef PhotonsWithConversionsAnalyzer_H
2 #define PhotonsWithConversionsAnalyzer_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  //
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 
33  //
35 
37  TFile* fOutputFile_;
38 
39  int nEvt_;
40  int nMCPho_;
41  int nMatched_;
42 
47 
50 
51  TH1F* h_ErecoEMC_;
52  TH1F* h_deltaPhi_;
53  TH1F* h_deltaEta_;
54 
56  TH1F* h_MCphoE_;
57  TH1F* h_MCphoPhi_;
58  TH1F* h_MCphoEta_;
59 
61  TH1F* h_MCConvE_;
62  TH1F* h_MCConvPt_;
63  TH1F* h_MCConvEta_;
64 
65  // SC from reco photons
66  TH1F* h_scE_;
67  TH1F* h_scEt_;
68  TH1F* h_scEta_;
69  TH1F* h_scPhi_;
70  //
71  TH1F* h_phoE_;
72  TH1F* h_phoEta_;
73  TH1F* h_phoPhi_;
74  //
75  // All tracks from reco photons
77  //
79 };
80 
81 #endif
PhotonsWithConversionsAnalyzer::h_MCphoEta_
TH1F * h_MCphoEta_
Definition: PhotonsWithConversionsAnalyzer.h:58
PhotonsWithConversionsAnalyzer::h_MCphoPhi_
TH1F * h_MCphoPhi_
Definition: PhotonsWithConversionsAnalyzer.h:57
EDAnalyzer.h
SimVertex
Definition: SimVertex.h:5
TrackerGeometry.h
PhotonsWithConversionsAnalyzer::h2_tk_nHitsVsR_
TH2F * h2_tk_nHitsVsR_
Definition: PhotonsWithConversionsAnalyzer.h:76
PhotonsWithConversionsAnalyzer::endJob
void endJob() override
Definition: PhotonsWithConversionsAnalyzer.cc:276
PhotonsWithConversionsAnalyzer::HepMCLabel
std::string HepMCLabel
Definition: PhotonsWithConversionsAnalyzer.h:43
PhotonsWithConversionsAnalyzer::SimHitLabel
std::string SimHitLabel
Definition: PhotonsWithConversionsAnalyzer.h:46
PhotonsWithConversionsAnalyzer::h_phoPhi_
TH1F * h_phoPhi_
Definition: PhotonsWithConversionsAnalyzer.h:73
PhotonsWithConversionsAnalyzer::fOutputFileName_
std::string fOutputFileName_
Definition: PhotonsWithConversionsAnalyzer.h:36
PhotonsWithConversionsAnalyzer::h_scE_
TH1F * h_scE_
Definition: PhotonsWithConversionsAnalyzer.h:66
PhotonsWithConversionsAnalyzer::h_MCConvPt_
TH1F * h_MCConvPt_
Definition: PhotonsWithConversionsAnalyzer.h:62
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
PhotonsWithConversionsAnalyzer
Definition: PhotonsWithConversionsAnalyzer.h:20
PhotonsWithConversionsAnalyzer::h2_tk_inPtVsR_
TH2F * h2_tk_inPtVsR_
Definition: PhotonsWithConversionsAnalyzer.h:78
PhotonsWithConversionsAnalyzer::h_deltaPhi_
TH1F * h_deltaPhi_
Definition: PhotonsWithConversionsAnalyzer.h:52
PhotonsWithConversionsAnalyzer::h_ErecoEMC_
TH1F * h_ErecoEMC_
Definition: PhotonsWithConversionsAnalyzer.h:51
PhotonsWithConversionsAnalyzer::h_scEta_
TH1F * h_scEta_
Definition: PhotonsWithConversionsAnalyzer.h:68
PhotonsWithConversionsAnalyzer::fOutputFile_
TFile * fOutputFile_
Definition: PhotonsWithConversionsAnalyzer.h:37
PhotonsWithConversionsAnalyzer::h_MCphoE_
TH1F * h_MCphoE_
Definition: PhotonsWithConversionsAnalyzer.h:56
PhotonsWithConversionsAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: PhotonsWithConversionsAnalyzer.cc:134
PhotonsWithConversionsAnalyzer::h_MCConvEta_
TH1F * h_MCConvEta_
Definition: PhotonsWithConversionsAnalyzer.h:63
PhotonsWithConversionsAnalyzer::SimVtxLabel
std::string SimVtxLabel
Definition: PhotonsWithConversionsAnalyzer.h:45
PhotonsWithConversionsAnalyzer::h_scPhi_
TH1F * h_scPhi_
Definition: PhotonsWithConversionsAnalyzer.h:69
PhotonsWithConversionsAnalyzer::photonCollectionProducer_
std::string photonCollectionProducer_
Definition: PhotonsWithConversionsAnalyzer.h:48
b
double b
Definition: hdecay.h:118
PhotonMCTruthFinder
Definition: PhotonMCTruthFinder.h:20
PhotonsWithConversionsAnalyzer::h_phoEta_
TH1F * h_phoEta_
Definition: PhotonsWithConversionsAnalyzer.h:72
PhotonsWithConversionsAnalyzer::photonCollection_
std::string photonCollection_
Definition: PhotonsWithConversionsAnalyzer.h:49
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PhotonsWithConversionsAnalyzer::PhotonsWithConversionsAnalyzer
PhotonsWithConversionsAnalyzer(const edm::ParameterSet &)
Definition: PhotonsWithConversionsAnalyzer.cc:48
PhotonMCTruthFinder.h
PhotonsWithConversionsAnalyzer::nMCPho_
int nMCPho_
Definition: PhotonsWithConversionsAnalyzer.h:40
PhotonsWithConversionsAnalyzer::nMatched_
int nMatched_
Definition: PhotonsWithConversionsAnalyzer.h:41
edm::ParameterSet
Definition: ParameterSet.h:36
a
double a
Definition: hdecay.h:119
PhotonsWithConversionsAnalyzer::thePhotonMCTruthFinder_
PhotonMCTruthFinder * thePhotonMCTruthFinder_
Definition: PhotonsWithConversionsAnalyzer.h:34
PhotonsWithConversionsAnalyzer::etaTransformation
float etaTransformation(float a, float b)
Definition: PhotonsWithConversionsAnalyzer.cc:97
PhotonsWithConversionsAnalyzer::h_deltaEta_
TH1F * h_deltaEta_
Definition: PhotonsWithConversionsAnalyzer.h:53
PhotonsWithConversionsAnalyzer::h_MCConvE_
TH1F * h_MCConvE_
Definition: PhotonsWithConversionsAnalyzer.h:61
edm::EventSetup
Definition: EventSetup.h:57
PhotonsWithConversionsAnalyzer::h_phoE_
TH1F * h_phoE_
Definition: PhotonsWithConversionsAnalyzer.h:71
PhotonsWithConversionsAnalyzer::beginJob
void beginJob() override
Definition: PhotonsWithConversionsAnalyzer.cc:56
PhotonsWithConversionsAnalyzer::nEvt_
int nEvt_
Definition: PhotonsWithConversionsAnalyzer.h:39
PhotonsWithConversionsAnalyzer::~PhotonsWithConversionsAnalyzer
~PhotonsWithConversionsAnalyzer() override
Definition: PhotonsWithConversionsAnalyzer.cc:54
SimTrack
Definition: SimTrack.h:6
PhotonsWithConversionsAnalyzer::h_scEt_
TH1F * h_scEt_
Definition: PhotonsWithConversionsAnalyzer.h:67
edm::Event
Definition: Event.h:73
PhotonsWithConversionsAnalyzer::SimTkLabel
std::string SimTkLabel
Definition: PhotonsWithConversionsAnalyzer.h:44