DQMOffline
Trigger
src
FunctionDefs.cc
Go to the documentation of this file.
1
#include "
DQMOffline/Trigger/interface/FunctionDefs.h
"
2
3
template
<>
4
std::function
<
float
(
const
reco::GsfElectron
&)> hltdqm::getUnaryFuncExtraFloat<reco::GsfElectron>(
5
const
std::string
& varName) {
6
std::function
<
float
(
const
reco::GsfElectron
&)> varFunc;
7
if
(varName ==
"scEta"
)
8
varFunc = scEtaFunc<reco::GsfElectron>;
9
else
if
(varName ==
"hOverE"
)
10
varFunc = &
reco::GsfElectron::hcalOverEcal
;
11
return
varFunc;
12
}
13
14
template
<>
15
std::function
<
float
(
const
reco::Photon
&)> hltdqm::getUnaryFuncExtraFloat<reco::Photon>(
const
std::string
& varName) {
16
std::function
<
float
(
const
reco::Photon
&)> varFunc;
17
if
(varName ==
"scEta"
)
18
varFunc = scEtaFunc<reco::Photon>;
19
else
if
(varName ==
"hOverE"
)
20
varFunc = &
reco::Photon::hadTowOverEm
;
21
return
varFunc;
22
}
dqmMemoryStats.float
float
Definition:
dqmMemoryStats.py:127
reco::Photon::hadTowOverEm
float hadTowOverEm() const
the ration of hadronic energy in towers behind the BCs in the SC and the SC energy
Definition:
Photon.h:217
reco::GsfElectron
Definition:
GsfElectron.h:35
FunctionDefs.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
reco::GsfElectron::hcalOverEcal
float hcalOverEcal() const
Definition:
GsfElectron.h:427
reco::Photon
Definition:
Photon.h:21
HiBiasedCentrality_cfi.function
function
Definition:
HiBiasedCentrality_cfi.py:4
Generated for CMSSW Reference Manual by
1.8.16