CMS 3D CMS Logo

Functions
FunctionDefs.cc File Reference
#include "DQMOffline/Trigger/interface/FunctionDefs.h"

Go to the source code of this file.

Functions

template<>
std::function< float(const reco::GsfElectron &)> hltdqm::getUnaryFuncExtraFloat< reco::GsfElectron > (const std::string &varName)
 
template<>
std::function< float(const reco::Photon &)> hltdqm::getUnaryFuncExtraFloat< reco::Photon > (const std::string &varName)
 

Function Documentation

◆ hltdqm::getUnaryFuncExtraFloat< reco::GsfElectron >()

template<>
std::function<float(const reco::GsfElectron&)> hltdqm::getUnaryFuncExtraFloat< reco::GsfElectron > ( const std::string &  varName)

Definition at line 4 of file FunctionDefs.cc.

5  {
6  std::function<float(const reco::GsfElectron&)> varFunc;
7  if (varName == "scEta")
8  varFunc = scEtaFunc<reco::GsfElectron>;
9  else if (varName == "hOverE")
11  return varFunc;
12 }

References dqmMemoryStats::float, HiBiasedCentrality_cfi::function, and reco::GsfElectron::hcalOverEcal().

◆ hltdqm::getUnaryFuncExtraFloat< reco::Photon >()

template<>
std::function<float(const reco::Photon&)> hltdqm::getUnaryFuncExtraFloat< reco::Photon > ( const std::string &  varName)

Definition at line 15 of file FunctionDefs.cc.

15  {
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 }

References dqmMemoryStats::float, HiBiasedCentrality_cfi::function, and reco::Photon::hadTowOverEm().

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
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