Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
EgammaAnalysis
ElectronTools
interface
PhotonEnergyCalibratorRun2.h
Go to the documentation of this file.
1
#ifndef PhotonEnergyCalibratorRun2_h
2
#define PhotonEnergyCalibratorRun2_h
3
4
#include <TRandom.h>
5
#include "
EgammaAnalysis/ElectronTools/interface/EnergyScaleCorrection_class.h
"
6
#include "
EgammaAnalysis/ElectronTools/interface/SimplePhoton.h
"
7
#include "
FWCore/Utilities/interface/StreamID.h
"
8
9
#include <vector>
10
11
class
PhotonEnergyCalibratorRun2
{
12
public
:
13
// dummy constructor for persistence
14
PhotonEnergyCalibratorRun2
() {}
15
16
// further configuration will be added when we will learn how it will work
17
PhotonEnergyCalibratorRun2
(
bool
isMC
,
bool
synchronization
,
std::string
correctionFile
);
18
19
~PhotonEnergyCalibratorRun2
();
20
23
void
initPrivateRng
(TRandom *rnd);
24
27
void
calibrate
(
SimplePhoton
&
photon
,
edm::StreamID
const
&
id
=
edm::StreamID::invalidStreamID
())
const
;
28
31
void
calibrate
(
reco::Photon
&
photon
,
32
unsigned
int
runNumber
,
33
edm::StreamID
const
&
id
=
edm::StreamID::invalidStreamID
())
const
;
34
35
protected
:
36
// whatever data will be needed
37
bool
isMC_
,
synchronization_
;
38
TRandom *
rng_
;
39
std::vector<double>
smearings_
;
40
std::vector<double>
scales_
;
41
45
double
gauss
(
edm::StreamID
const
&
id
)
const
;
46
EnergyScaleCorrection_class
_correctionRetriever
;
47
};
48
49
#endif
PhotonEnergyCalibratorRun2::rng_
TRandom * rng_
Definition:
PhotonEnergyCalibratorRun2.h:38
EnergyScaleCorrection_class
Read and get energy scale and smearings from .dat files.
Definition:
EnergyScaleCorrection_class.h:118
edm::StreamID
Definition:
StreamID.h:30
muons2muons_cfi.photon
photon
Definition:
muons2muons_cfi.py:28
PhotonEnergyCalibratorRun2::smearings_
std::vector< double > smearings_
Definition:
PhotonEnergyCalibratorRun2.h:39
convertSQLiteXML.runNumber
runNumber
Definition:
convertSQLiteXML.py:91
EnergyScaleCorrection_class.h
PhotonEnergyCalibratorRun2::isMC_
bool isMC_
Definition:
PhotonEnergyCalibratorRun2.h:37
SimplePhoton.h
submitPVValidationJobs.isMC
list isMC
Definition:
submitPVValidationJobs.py:658
calibratedElectronsRun2_cfi.correctionFile
correctionFile
Definition:
calibratedElectronsRun2_cfi.py:21
PhotonEnergyCalibratorRun2::gauss
double gauss(edm::StreamID const &id) const
Definition:
PhotonEnergyCalibratorRun2.cc:56
PhotonEnergyCalibratorRun2
Definition:
PhotonEnergyCalibratorRun2.h:11
calibratedElectrons_cfi.synchronization
synchronization
Definition:
calibratedElectrons_cfi.py:33
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PhotonEnergyCalibratorRun2::synchronization_
bool synchronization_
Definition:
PhotonEnergyCalibratorRun2.h:37
edm::StreamID::invalidStreamID
static StreamID invalidStreamID()
Definition:
StreamID.h:45
PhotonEnergyCalibratorRun2::scales_
std::vector< double > scales_
Definition:
PhotonEnergyCalibratorRun2.h:40
reco::Photon
Definition:
Photon.h:21
SimplePhoton
Definition:
SimplePhoton.h:8
PhotonEnergyCalibratorRun2::calibrate
void calibrate(SimplePhoton &photon, edm::StreamID const &id=edm::StreamID::invalidStreamID()) const
Definition:
PhotonEnergyCalibratorRun2.cc:34
PhotonEnergyCalibratorRun2::_correctionRetriever
EnergyScaleCorrection_class _correctionRetriever
Definition:
PhotonEnergyCalibratorRun2.h:46
StreamID.h
PhotonEnergyCalibratorRun2::initPrivateRng
void initPrivateRng(TRandom *rnd)
Definition:
PhotonEnergyCalibratorRun2.cc:24
PhotonEnergyCalibratorRun2::~PhotonEnergyCalibratorRun2
~PhotonEnergyCalibratorRun2()
Definition:
PhotonEnergyCalibratorRun2.cc:22
PhotonEnergyCalibratorRun2::PhotonEnergyCalibratorRun2
PhotonEnergyCalibratorRun2()
Definition:
PhotonEnergyCalibratorRun2.h:14
Generated for CMSSW Reference Manual by
1.8.16