RecoEgamma
Examples
plugins
MCPizeroAnalyzer.h
Go to the documentation of this file.
1
#ifndef MCPizeroAnalyzer_H
2
#define MCPizeroAnalyzer_H
3
#include "
RecoEgamma/EgammaMCTools/interface/PizeroMCTruthFinder.h
"
4
5
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
6
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
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
20
class
MCPizeroAnalyzer
:
public
edm::one::EDAnalyzer
<> {
21
public
:
22
//
23
explicit
MCPizeroAnalyzer
(
const
edm::ParameterSet
&);
24
~MCPizeroAnalyzer
()
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
//
35
PizeroMCTruthFinder
*
thePizeroMCTruthFinder_
;
36
37
std::string
fOutputFileName_
;
38
TFile*
fOutputFile_
;
39
40
int
nEvt_
;
41
int
nMatched_
;
42
44
double
mcPhi_
;
45
double
mcEta_
;
46
47
std::string
HepMCLabel
;
48
std::string
SimTkLabel
;
49
std::string
SimVtxLabel
;
50
std::string
SimHitLabel
;
51
52
TH1F*
h_MCPizE_
;
53
TH1F*
h_MCPizEta_
;
54
TH1F*
h_MCPizUnEta_
;
55
TH1F*
h_MCPiz1ConEta_
;
56
TH1F*
h_MCPiz2ConEta_
;
57
TH1F*
h_MCPizPhi_
;
58
TH1F*
h_MCPizMass1_
;
59
TH1F*
h_MCPizMass2_
;
60
61
TH1F*
h_MCEleE_
;
62
TH1F*
h_MCEleEta_
;
63
TH1F*
h_MCElePhi_
;
64
TH1F*
h_BremFrac_
;
65
TH1F*
h_BremEnergy_
;
66
67
TH2F*
h_EleEvsPhoE_
;
68
69
TH1F*
h_MCPhoE_
;
70
TH1F*
h_MCPhoEta_
;
71
TH1F*
h_MCPhoPhi_
;
72
TH1F*
h_MCConvPhoE_
;
73
TH1F*
h_MCConvPhoEta_
;
74
TH1F*
h_MCConvPhoPhi_
;
75
TH1F*
h_MCConvPhoR_
;
76
};
77
78
#endif
MCPizeroAnalyzer::mcPhi_
double mcPhi_
global variable for the MC photon
Definition:
MCPizeroAnalyzer.h:44
EDAnalyzer.h
SimVertex
Definition:
SimVertex.h:5
MCPizeroAnalyzer::etaTransformation
float etaTransformation(float a, float b)
Definition:
MCPizeroAnalyzer.cc:87
MCPizeroAnalyzer::h_MCEleEta_
TH1F * h_MCEleEta_
Definition:
MCPizeroAnalyzer.h:62
TrackerGeometry.h
PizeroMCTruthFinder.h
MCPizeroAnalyzer::h_MCPizPhi_
TH1F * h_MCPizPhi_
Definition:
MCPizeroAnalyzer.h:57
MCPizeroAnalyzer
Definition:
MCPizeroAnalyzer.h:20
MCPizeroAnalyzer::nEvt_
int nEvt_
Definition:
MCPizeroAnalyzer.h:40
MCPizeroAnalyzer::h_MCConvPhoR_
TH1F * h_MCConvPhoR_
Definition:
MCPizeroAnalyzer.h:75
MCPizeroAnalyzer::h_MCConvPhoPhi_
TH1F * h_MCConvPhoPhi_
Definition:
MCPizeroAnalyzer.h:74
MCPizeroAnalyzer::thePizeroMCTruthFinder_
PizeroMCTruthFinder * thePizeroMCTruthFinder_
Definition:
MCPizeroAnalyzer.h:35
MCPizeroAnalyzer::h_MCEleE_
TH1F * h_MCEleE_
Definition:
MCPizeroAnalyzer.h:61
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
MCPizeroAnalyzer::h_MCPizMass1_
TH1F * h_MCPizMass1_
Definition:
MCPizeroAnalyzer.h:58
MCPizeroAnalyzer::h_MCPizEta_
TH1F * h_MCPizEta_
Definition:
MCPizeroAnalyzer.h:53
PizeroMCTruthFinder
Definition:
PizeroMCTruthFinder.h:15
MCPizeroAnalyzer::fOutputFile_
TFile * fOutputFile_
Definition:
MCPizeroAnalyzer.h:38
MCPizeroAnalyzer::~MCPizeroAnalyzer
~MCPizeroAnalyzer() override
Definition:
MCPizeroAnalyzer.cc:46
MCPizeroAnalyzer::h_MCPiz2ConEta_
TH1F * h_MCPiz2ConEta_
Definition:
MCPizeroAnalyzer.h:56
MCPizeroAnalyzer::h_BremFrac_
TH1F * h_BremFrac_
Definition:
MCPizeroAnalyzer.h:64
b
double b
Definition:
hdecay.h:118
MCPizeroAnalyzer::fOutputFileName_
std::string fOutputFileName_
Definition:
MCPizeroAnalyzer.h:37
MCPizeroAnalyzer::h_MCElePhi_
TH1F * h_MCElePhi_
Definition:
MCPizeroAnalyzer.h:63
MCPizeroAnalyzer::endJob
void endJob() override
Definition:
MCPizeroAnalyzer.cc:240
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:36
a
double a
Definition:
hdecay.h:119
MCPizeroAnalyzer::h_MCPizMass2_
TH1F * h_MCPizMass2_
Definition:
MCPizeroAnalyzer.h:59
MCPizeroAnalyzer::SimHitLabel
std::string SimHitLabel
Definition:
MCPizeroAnalyzer.h:50
MCPizeroAnalyzer::h_MCPhoEta_
TH1F * h_MCPhoEta_
Definition:
MCPizeroAnalyzer.h:70
MCPizeroAnalyzer::h_MCPizE_
TH1F * h_MCPizE_
Definition:
MCPizeroAnalyzer.h:52
MCPizeroAnalyzer::HepMCLabel
std::string HepMCLabel
Definition:
MCPizeroAnalyzer.h:47
edm::EventSetup
Definition:
EventSetup.h:57
MCPizeroAnalyzer::SimVtxLabel
std::string SimVtxLabel
Definition:
MCPizeroAnalyzer.h:49
MCPizeroAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
MCPizeroAnalyzer.cc:140
MCPizeroAnalyzer::h_MCPhoPhi_
TH1F * h_MCPhoPhi_
Definition:
MCPizeroAnalyzer.h:71
MCPizeroAnalyzer::nMatched_
int nMatched_
Definition:
MCPizeroAnalyzer.h:41
MCPizeroAnalyzer::h_BremEnergy_
TH1F * h_BremEnergy_
Definition:
MCPizeroAnalyzer.h:65
MCPizeroAnalyzer::h_EleEvsPhoE_
TH2F * h_EleEvsPhoE_
Definition:
MCPizeroAnalyzer.h:67
MCPizeroAnalyzer::phiNormalization
float phiNormalization(float &a)
Definition:
MCPizeroAnalyzer.cc:124
SimTrack
Definition:
SimTrack.h:6
MCPizeroAnalyzer::MCPizeroAnalyzer
MCPizeroAnalyzer(const edm::ParameterSet &)
Definition:
MCPizeroAnalyzer.cc:42
MCPizeroAnalyzer::h_MCConvPhoE_
TH1F * h_MCConvPhoE_
Definition:
MCPizeroAnalyzer.h:72
MCPizeroAnalyzer::SimTkLabel
std::string SimTkLabel
Definition:
MCPizeroAnalyzer.h:48
MCPizeroAnalyzer::h_MCConvPhoEta_
TH1F * h_MCConvPhoEta_
Definition:
MCPizeroAnalyzer.h:73
MCPizeroAnalyzer::h_MCPiz1ConEta_
TH1F * h_MCPiz1ConEta_
Definition:
MCPizeroAnalyzer.h:55
MCPizeroAnalyzer::beginJob
void beginJob() override
Definition:
MCPizeroAnalyzer.cc:48
edm::Event
Definition:
Event.h:73
MCPizeroAnalyzer::mcEta_
double mcEta_
Definition:
MCPizeroAnalyzer.h:45
MCPizeroAnalyzer::h_MCPizUnEta_
TH1F * h_MCPizUnEta_
Definition:
MCPizeroAnalyzer.h:54
MCPizeroAnalyzer::h_MCPhoE_
TH1F * h_MCPhoE_
Definition:
MCPizeroAnalyzer.h:69
Generated for CMSSW Reference Manual by
1.8.16