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

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

Definition at line 4 of file FunctionDefs.cc.

References reco::GsfElectron::hcalOverEcal().

4  {
5  std::function<float(const reco::GsfElectron&)> varFunc;
6  if(varName=="scEta") varFunc = scEtaFunc<reco::GsfElectron>;
7  else if(varName=="hOverE") varFunc = &reco::GsfElectron::hcalOverEcal;
8  return varFunc;
9 }
float hcalOverEcal() const
Definition: GsfElectron.h:444
template<>
std::function<float(const reco::Photon&)> hltdqm::getUnaryFuncExtraFloat< reco::Photon > ( const std::string &  varName)

Definition at line 12 of file FunctionDefs.cc.

References reco::Photon::hadTowOverEm().

12  {
13  std::function<float(const reco::Photon&)> varFunc;
14  if(varName=="scEta") varFunc = scEtaFunc<reco::Photon>;
15  else if(varName=="hOverE") varFunc = &reco::Photon::hadTowOverEm;
16  return varFunc;
17 }
float hadTowOverEm() const
the ration of hadronic energy in towers behind the BCs in the SC and the SC energy ...
Definition: Photon.h:215