CMS 3D CMS Logo

FunctionDefs.cc
Go to the documentation of this file.
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")
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 }
float hcalOverEcal() const
Definition: GsfElectron.h:419
float hadTowOverEm() const
the ration of hadronic energy in towers behind the BCs in the SC and the SC energy ...
Definition: Photon.h:217