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")
10  varFunc = [](const reco::GsfElectron& ele) -> float { return ele.hcalOverEcal(); };
11  return varFunc;
12 }

References dqmMemoryStats::float, and HiBiasedCentrality_cfi::function.

◆ 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 = [](const reco::Photon& pho) -> float { return pho.hadTowOverEm(); };
21  return varFunc;
22 }

References dqmMemoryStats::float, and HiBiasedCentrality_cfi::function.

dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
reco::GsfElectron
Definition: GsfElectron.h:35
reco::Photon
Definition: Photon.h:22
HiBiasedCentrality_cfi.function
function
Definition: HiBiasedCentrality_cfi.py:4