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 = [](
const
reco::GsfElectron
& ele) ->
float
{
return
ele.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 = [](
const
reco::Photon
& pho) ->
float
{
return
pho.hadTowOverEm(); };
21
return
varFunc;
22
}
dqmMemoryStats.float
float
Definition:
dqmMemoryStats.py:127
reco::GsfElectron
Definition:
GsfElectron.h:35
FunctionDefs.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
reco::Photon
Definition:
Photon.h:22
HiBiasedCentrality_cfi.function
function
Definition:
HiBiasedCentrality_cfi.py:4
Generated for CMSSW Reference Manual by
1.8.16