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
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
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
reco::Photon
Definition:
Photon.h:22
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