Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Validation
EcalClusters
interface
EnergyScaleAnalyzer.h
Go to the documentation of this file.
1
#ifndef RecoEcal_EgammaClusterProducers_EnergyScaleAnalyzer_h
2
#define RecoEcal_EgammaClusterProducers_EnergyScaleAnalyzer_h
3
10
//
11
//
12
13
14
// system include files
15
#include <memory>
16
17
// user include files
18
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
19
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
20
21
#include "
FWCore/Framework/interface/Event.h
"
22
#include "
FWCore/Framework/interface/MakerMacros.h
"
23
#include "
FWCore/Framework/interface/EventSetup.h
"
24
#include "
FWCore/Framework/interface/ESHandle.h
"
25
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
26
27
#include "
DataFormats/EgammaReco/interface/BasicCluster.h
"
28
#include "
DataFormats/EgammaReco/interface/SuperCluster.h
"
29
#include "
DataFormats/EgammaReco/interface/SuperClusterFwd.h
"
30
#include "
DataFormats/EcalRecHit/interface/EcalRecHit.h
"
31
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
32
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
33
#include "
DataFormats/EgammaReco/interface/BasicClusterFwd.h
"
34
#include "
DataFormats/EgammaReco/interface/PreshowerCluster.h
"
35
#include "
SimDataFormats/GeneratorProducts/interface/HepMCProduct.h
"
36
37
#include <string>
38
#include "TH1.h"
39
#include "TH2.h"
40
#include "TTree.h"
41
#include "TNtuple.h"
42
class
TFile;
43
44
//
45
// class declaration
46
//
47
48
class
EnergyScaleAnalyzer
:
public
edm::EDAnalyzer
{
49
public
:
50
explicit
EnergyScaleAnalyzer
(
const
edm::ParameterSet
& );
51
~EnergyScaleAnalyzer
();
52
53
54
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
& );
55
virtual
void
beginJob
();
56
virtual
void
endJob
();
57
58
59
private
:
60
61
std::string
outputFile_
;
// output file
62
63
std::string
hepMCLabel_
;
64
65
// root file to store histograms
66
TFile*
rootFile_
;
67
68
//Tree
69
TTree*
mytree_
;
70
struct
tree_structure_
{
71
// MC information
72
int
mc_npar
;
73
int
parID
;
74
float
mc_sep
;
75
float
mc_e
;
76
float
mc_et
;
77
float
mc_phi
;
78
float
mc_eta
;
79
float
mc_theta
;
80
81
// MC-EM matching info
82
float
em_dR
;
83
84
// EM SC info (uncorrected)
85
int
em_isInCrack
;
86
int
em_scType
;
87
float
em_e
;
88
float
em_et
;
89
float
em_phi
;
90
float
em_eta
;
91
float
em_theta
;
92
int
em_nCell
;
93
int
em_nBC
;
94
95
// physics variables
96
float
em_pet
;
97
float
em_pe
;
98
float
em_peta
;
99
float
em_ptheta
;
100
101
// corrected collectin
102
float
emCorr_e
;
103
float
emCorr_et
;
104
float
emCorr_eta
;
105
float
emCorr_phi
;
106
float
emCorr_theta
;
107
float
emCorr_pet
;
108
float
emCorr_peta
;
109
float
emCorr_ptheta
;
110
111
// EM widths, pw -- phiWidth, ew -- etaWidth
112
float
em_pw
;
113
float
em_ew
;
114
// ratios of widths pw/ew
115
float
em_br
;
116
};
117
tree_structure_
tree_
;
118
119
//
120
float
xVtx_
;
121
float
yVtx_
;
122
float
zVtx_
;
123
//
124
float
xClust_zero_
;
125
float
yClust_zero_
;
126
float
zClust_zero_
;
127
//
128
float
xClust_vtx_
;
129
float
yClust_vtx_
;
130
float
zClust_vtx_
;
131
//
132
float
rClust_vtx_
;
133
//
134
float
energyMax_
;
135
float
eTMax_
;
136
float
eTMaxVtx_
;
137
float
etaMax_
;
138
float
etaMaxVtx_
;
139
float
phiMax_
;
140
float
phiMaxVtx_
;
141
float
thetaMax_
;
142
float
thetaMaxVtx_
;
143
//
144
145
int
evtN
;
146
147
//Function
148
void
fillTree
(
const
reco::SuperClusterCollection
* scColl,
const
reco::SuperClusterCollection
* corrSCColl,
149
HepMC::GenParticle
* mc,
tree_structure_
&
tree_
,
float
xV,
float
yV,
float
zV,
int
scType);
150
};
151
#endif
152
EnergyScaleAnalyzer::tree_structure_::em_theta
float em_theta
Definition:
EnergyScaleAnalyzer.h:91
EnergyScaleAnalyzer::tree_structure_::emCorr_et
float emCorr_et
Definition:
EnergyScaleAnalyzer.h:103
EnergyScaleAnalyzer::tree_structure_::emCorr_eta
float emCorr_eta
Definition:
EnergyScaleAnalyzer.h:104
EnergyScaleAnalyzer
Definition:
EnergyScaleAnalyzer.h:48
EnergyScaleAnalyzer::tree_structure_::em_eta
float em_eta
Definition:
EnergyScaleAnalyzer.h:90
EnergyScaleAnalyzer::xClust_vtx_
float xClust_vtx_
Definition:
EnergyScaleAnalyzer.h:128
EnergyScaleAnalyzer::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
EnergyScaleAnalyzer.cc:115
EnergyScaleAnalyzer::tree_structure_::em_peta
float em_peta
Definition:
EnergyScaleAnalyzer.h:98
Event.h
EnergyScaleAnalyzer::tree_structure_::em_br
float em_br
Definition:
EnergyScaleAnalyzer.h:115
MakerMacros.h
EventSetup.h
EnergyScaleAnalyzer::tree_structure_::em_dR
float em_dR
Definition:
EnergyScaleAnalyzer.h:82
EcalRecHitCollections.h
EnergyScaleAnalyzer::rClust_vtx_
float rClust_vtx_
Definition:
EnergyScaleAnalyzer.h:132
EnergyScaleAnalyzer::yVtx_
float yVtx_
Definition:
EnergyScaleAnalyzer.h:121
EcalRecHit.h
EnergyScaleAnalyzer::outputFile_
std::string outputFile_
Definition:
EnergyScaleAnalyzer.h:61
EnergyScaleAnalyzer::tree_structure_::emCorr_peta
float emCorr_peta
Definition:
EnergyScaleAnalyzer.h:108
EnergyScaleAnalyzer::xVtx_
float xVtx_
Definition:
EnergyScaleAnalyzer.h:120
EnergyScaleAnalyzer::evtN
int evtN
Definition:
EnergyScaleAnalyzer.h:145
EnergyScaleAnalyzer::tree_structure_::emCorr_e
float emCorr_e
Definition:
EnergyScaleAnalyzer.h:102
EnergyScaleAnalyzer::tree_structure_::emCorr_theta
float emCorr_theta
Definition:
EnergyScaleAnalyzer.h:106
EnergyScaleAnalyzer::zVtx_
float zVtx_
Definition:
EnergyScaleAnalyzer.h:122
EnergyScaleAnalyzer::tree_structure_::emCorr_ptheta
float emCorr_ptheta
Definition:
EnergyScaleAnalyzer.h:109
EnergyScaleAnalyzer::tree_structure_::mc_npar
int mc_npar
Definition:
EnergyScaleAnalyzer.h:72
EnergyScaleAnalyzer::zClust_vtx_
float zClust_vtx_
Definition:
EnergyScaleAnalyzer.h:130
Frameworkfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
EnergyScaleAnalyzer::phiMax_
float phiMax_
Definition:
EnergyScaleAnalyzer.h:139
ParameterSet.h
EnergyScaleAnalyzer::beginJob
virtual void beginJob()
Definition:
EnergyScaleAnalyzer.cc:95
EnergyScaleAnalyzer::thetaMaxVtx_
float thetaMaxVtx_
Definition:
EnergyScaleAnalyzer.h:142
EnergyScaleAnalyzer::yClust_zero_
float yClust_zero_
Definition:
EnergyScaleAnalyzer.h:125
SuperClusterFwd.h
EnergyScaleAnalyzer::tree_structure_::em_ptheta
float em_ptheta
Definition:
EnergyScaleAnalyzer.h:99
EnergyScaleAnalyzer::eTMaxVtx_
float eTMaxVtx_
Definition:
EnergyScaleAnalyzer.h:136
EnergyScaleAnalyzer::tree_structure_::mc_eta
float mc_eta
Definition:
EnergyScaleAnalyzer.h:78
EnergyScaleAnalyzer::fillTree
void fillTree(const reco::SuperClusterCollection *scColl, const reco::SuperClusterCollection *corrSCColl, HepMC::GenParticle *mc, tree_structure_ &tree_, float xV, float yV, float zV, int scType)
Definition:
EnergyScaleAnalyzer.cc:315
EnergyScaleAnalyzer::mytree_
TTree * mytree_
Definition:
EnergyScaleAnalyzer.h:69
reco::SuperClusterCollection
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
Definition:
SuperClusterFwd.h:9
EnergyScaleAnalyzer::zClust_zero_
float zClust_zero_
Definition:
EnergyScaleAnalyzer.h:126
EnergyScaleAnalyzer::tree_
tree_structure_ tree_
Definition:
EnergyScaleAnalyzer.h:117
EnergyScaleAnalyzer::endJob
virtual void endJob()
Definition:
EnergyScaleAnalyzer.cc:441
EnergyScaleAnalyzer::hepMCLabel_
std::string hepMCLabel_
Definition:
EnergyScaleAnalyzer.h:63
EnergyScaleAnalyzer::energyMax_
float energyMax_
Definition:
EnergyScaleAnalyzer.h:134
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:44
EnergyScaleAnalyzer::tree_structure_::mc_sep
float mc_sep
Definition:
EnergyScaleAnalyzer.h:74
EnergyScaleAnalyzer::tree_structure_::em_pw
float em_pw
Definition:
EnergyScaleAnalyzer.h:112
EnergyScaleAnalyzer::tree_structure_::emCorr_pet
float emCorr_pet
Definition:
EnergyScaleAnalyzer.h:107
HepMCProduct.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:22
EDAnalyzer.h
EnergyScaleAnalyzer::tree_structure_
Definition:
EnergyScaleAnalyzer.h:70
BasicClusterFwd.h
EnergyScaleAnalyzer::eTMax_
float eTMax_
Definition:
EnergyScaleAnalyzer.h:135
PreshowerCluster.h
EnergyScaleAnalyzer::tree_structure_::em_scType
int em_scType
Definition:
EnergyScaleAnalyzer.h:86
EnergyScaleAnalyzer::~EnergyScaleAnalyzer
~EnergyScaleAnalyzer()
Definition:
EnergyScaleAnalyzer.cc:87
EnergyScaleAnalyzer::tree_structure_::em_isInCrack
int em_isInCrack
Definition:
EnergyScaleAnalyzer.h:85
EnergyScaleAnalyzer::EnergyScaleAnalyzer
EnergyScaleAnalyzer(const edm::ParameterSet &)
Definition:
EnergyScaleAnalyzer.cc:73
EnergyScaleAnalyzer::etaMax_
float etaMax_
Definition:
EnergyScaleAnalyzer.h:137
EnergyScaleAnalyzer::etaMaxVtx_
float etaMaxVtx_
Definition:
EnergyScaleAnalyzer.h:138
EnergyScaleAnalyzer::tree_structure_::mc_theta
float mc_theta
Definition:
EnergyScaleAnalyzer.h:79
configurableAnalysis::GenParticle
char GenParticle[]
Definition:
modules.cc:23
EnergyScaleAnalyzer::tree_structure_::em_pe
float em_pe
Definition:
EnergyScaleAnalyzer.h:97
EnergyScaleAnalyzer::tree_structure_::em_pet
float em_pet
Definition:
EnergyScaleAnalyzer.h:96
EnergyScaleAnalyzer::tree_structure_::em_nCell
int em_nCell
Definition:
EnergyScaleAnalyzer.h:92
EnergyScaleAnalyzer::phiMaxVtx_
float phiMaxVtx_
Definition:
EnergyScaleAnalyzer.h:140
EnergyScaleAnalyzer::tree_structure_::mc_e
float mc_e
Definition:
EnergyScaleAnalyzer.h:75
EnergyScaleAnalyzer::rootFile_
TFile * rootFile_
Definition:
EnergyScaleAnalyzer.h:66
EnergyScaleAnalyzer::xClust_zero_
float xClust_zero_
Definition:
EnergyScaleAnalyzer.h:124
edm::ParameterSet
Definition:
ParameterSet.h:35
EBDetId.h
EnergyScaleAnalyzer::tree_structure_::mc_phi
float mc_phi
Definition:
EnergyScaleAnalyzer.h:77
EnergyScaleAnalyzer::tree_structure_::em_e
float em_e
Definition:
EnergyScaleAnalyzer.h:87
edm::Event
Definition:
Event.h:62
EnergyScaleAnalyzer::tree_structure_::em_phi
float em_phi
Definition:
EnergyScaleAnalyzer.h:89
BasicCluster.h
EnergyScaleAnalyzer::tree_structure_::em_et
float em_et
Definition:
EnergyScaleAnalyzer.h:88
EnergyScaleAnalyzer::yClust_vtx_
float yClust_vtx_
Definition:
EnergyScaleAnalyzer.h:129
EnergyScaleAnalyzer::tree_structure_::emCorr_phi
float emCorr_phi
Definition:
EnergyScaleAnalyzer.h:105
EnergyScaleAnalyzer::thetaMax_
float thetaMax_
Definition:
EnergyScaleAnalyzer.h:141
EnergyScaleAnalyzer::tree_structure_::parID
int parID
Definition:
EnergyScaleAnalyzer.h:73
EnergyScaleAnalyzer::tree_structure_::em_nBC
int em_nBC
Definition:
EnergyScaleAnalyzer.h:93
EnergyScaleAnalyzer::tree_structure_::em_ew
float em_ew
Definition:
EnergyScaleAnalyzer.h:113
EnergyScaleAnalyzer::tree_structure_::mc_et
float mc_et
Definition:
EnergyScaleAnalyzer.h:76
SuperCluster.h
Generated for CMSSW Reference Manual by
1.8.5