CMS 3D CMS Logo

MVAVariableHelper.cc
Go to the documentation of this file.
2 
4  : tokens_({cc.consumes<double>(edm::InputTag("fixedGridRhoFastjetAll")),
5  cc.consumes<double>(edm::InputTag("fixedGridRhoAll"))}) {}
6 
7 const std::vector<float> MVAVariableHelper::getAuxVariables(const edm::Event& iEvent) const {
8  return std::vector<float>{getVariableFromDoubleToken(tokens_[0], iEvent),
10 }
11 
12 MVAVariableIndexMap::MVAVariableIndexMap() : indexMap_({{"fixedGridRhoFastjetAll", 0}, {"fixedGridRhoAll", 1}}) {}
static float getVariableFromDoubleToken(edm::EDGetToken const &token, const edm::Event &iEvent)
int iEvent
Definition: GenABIO.cc:224
MVAVariableHelper(edm::ConsumesCollector &&cc)
std::vector< edm::EDGetTokenT< int > > tokens_
const std::vector< float > getAuxVariables(const edm::Event &iEvent) const
const std::vector< edm::EDGetToken > tokens_