CMS 3D CMS Logo

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