1 #ifndef RecoEgamma_EgammaTools_EleEnergyRetriever_h
2 #define RecoEgamma_EgammaTools_EleEnergyRetriever_h
14 if (typeStr ==
"EcalTrk")
16 else if (typeStr ==
"Ecal")
18 else if (typeStr ==
"SuperCluster")
20 else if (typeStr ==
"SuperClusterRaw")
24 <<
" type \"" << typeStr <<
"\" not recognised, must be of type EcalTrk,Ecal,SuperCluster,SuperClusterRaw";
static EnergyType convertFromStr(const std::string &typeStr)
float operator()(const reco::GsfElectron &ele) const
EleEnergyRetriever(const std::string &typeStr)
SuperClusterRef superCluster() const override
reference to a SuperCluster
double energy() const final
energy