EgammaAnalysis
ElectronTools
interface
ElectronEnergyCalibratorRun2.h
Go to the documentation of this file.
1
#ifndef ElectronEnergyCalibratorRun2_h
2
#define ElectronEnergyCalibratorRun2_h
3
4
#include <TRandom.h>
5
#include "
EgammaAnalysis/ElectronTools/interface/EnergyScaleCorrection_class.h
"
6
#include "
EgammaAnalysis/ElectronTools/interface/SimpleElectron.h
"
7
#include "
EgammaAnalysis/ElectronTools/interface/EpCombinationTool.h
"
8
#include "
FWCore/Utilities/interface/StreamID.h
"
9
10
#include <vector>
11
12
class
ElectronEnergyCalibratorRun2
{
13
public
:
14
// dummy constructor for persistence
15
ElectronEnergyCalibratorRun2
() {}
16
17
// further configuration will be added when we will learn how it will work
18
ElectronEnergyCalibratorRun2
(
EpCombinationTool
&combinator,
bool
isMC
,
bool
synchronization
,
std::string
);
19
~ElectronEnergyCalibratorRun2
();
20
23
void
initPrivateRng
(TRandom *rnd);
24
27
void
calibrate
(
SimpleElectron
&
electron
,
edm::StreamID
const
&
id
=
edm::StreamID::invalidStreamID
())
const
;
28
31
void
calibrate
(
reco::GsfElectron
&
electron
,
32
unsigned
int
runNumber
,
33
edm::StreamID
const
&
id
=
edm::StreamID::invalidStreamID
())
const
;
34
35
protected
:
36
// whatever data will be needed
37
EpCombinationTool
*
epCombinationTool_
;
38
bool
isMC_
,
synchronization_
;
39
TRandom *
rng_
;
40
44
double
gauss
(
edm::StreamID
const
&
id
)
const
;
45
EnergyScaleCorrection_class
_correctionRetriever
;
46
};
47
48
#endif
EnergyScaleCorrection_class
Read and get energy scale and smearings from .dat files.
Definition:
EnergyScaleCorrection_class.h:118
EpCombinationTool.h
edm::StreamID
Definition:
StreamID.h:30
ElectronEnergyCalibratorRun2::gauss
double gauss(edm::StreamID const &id) const
Definition:
ElectronEnergyCalibratorRun2.cc:61
ElectronEnergyCalibratorRun2::_correctionRetriever
EnergyScaleCorrection_class _correctionRetriever
Definition:
ElectronEnergyCalibratorRun2.h:45
ElectronEnergyCalibratorRun2::synchronization_
bool synchronization_
Definition:
ElectronEnergyCalibratorRun2.h:38
ElectronEnergyCalibratorRun2::rng_
TRandom * rng_
Definition:
ElectronEnergyCalibratorRun2.h:39
SimpleElectron.h
ElectronEnergyCalibratorRun2::ElectronEnergyCalibratorRun2
ElectronEnergyCalibratorRun2()
Definition:
ElectronEnergyCalibratorRun2.h:15
convertSQLiteXML.runNumber
runNumber
Definition:
convertSQLiteXML.py:91
EnergyScaleCorrection_class.h
SimpleElectron
Definition:
SimpleElectron.h:8
ElectronEnergyCalibratorRun2
Definition:
ElectronEnergyCalibratorRun2.h:12
metsig::electron
Definition:
SignAlgoResolutions.h:48
reco::GsfElectron
Definition:
GsfElectron.h:35
calibratedElectrons_cfi.synchronization
synchronization
Definition:
calibratedElectrons_cfi.py:33
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ElectronEnergyCalibratorRun2::epCombinationTool_
EpCombinationTool * epCombinationTool_
Definition:
ElectronEnergyCalibratorRun2.h:37
ElectronEnergyCalibratorRun2::~ElectronEnergyCalibratorRun2
~ElectronEnergyCalibratorRun2()
Definition:
ElectronEnergyCalibratorRun2.cc:26
ElectronEnergyCalibratorRun2::isMC_
bool isMC_
Definition:
ElectronEnergyCalibratorRun2.h:38
ElectronEnergyCalibratorRun2::calibrate
void calibrate(SimpleElectron &electron, edm::StreamID const &id=edm::StreamID::invalidStreamID()) const
Definition:
ElectronEnergyCalibratorRun2.cc:37
edm::StreamID::invalidStreamID
static StreamID invalidStreamID()
Definition:
StreamID.h:44
ElectronEnergyCalibratorRun2::initPrivateRng
void initPrivateRng(TRandom *rnd)
Definition:
ElectronEnergyCalibratorRun2.cc:28
StandaloneTrackMonitor_cfi.isMC
isMC
Definition:
StandaloneTrackMonitor_cfi.py:13
StreamID.h
EpCombinationTool
Definition:
EpCombinationTool.h:10
Generated for CMSSW Reference Manual by
1.8.16