1 #ifndef RecoEgamma_EgammaTools_MVAVariableHelper_H 2 #define RecoEgamma_EgammaTools_MVAVariableHelper_H 9 #include <unordered_map> 13 template<
class ParticleType>
24 const std::unordered_map<std::string, int>
indexMap_;
27 template<
class ParticleType>
43 return (*handle)[particlePtr];
52 const std::vector<edm::EDGetToken>
tokens_;
const std::vector< edm::EDGetToken > tokens_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
int getIndex(std::string const &name) const
static float getVariableFromValueMapToken(edm::Ptr< ParticleType > const &particlePtr, edm::EDGetToken const &token, edm::Event const &iEvent)
const std::unordered_map< std::string, int > indexMap_
static float getVariableFromDoubleToken(edm::EDGetToken const &token, const edm::Event &iEvent)