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}}) {}
MVAVariableIndexMap::MVAVariableIndexMap
MVAVariableIndexMap()
Definition: MVAVariableHelper.cc:12
MVAVariableHelper.h
MVAVariableHelper::getAuxVariables
const std::vector< float > getAuxVariables(const edm::Event &iEvent) const
Definition: MVAVariableHelper.cc:7
MVAVariableHelper::MVAVariableHelper
MVAVariableHelper(edm::ConsumesCollector &&cc)
Definition: MVAVariableHelper.cc:3
tokens_
std::vector< edm::EDGetTokenT< int > > tokens_
Definition: TimeStudyModules.cc:75
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
iEvent
int iEvent
Definition: GenABIO.cc:224
cc
MVAVariableHelper::tokens_
const std::vector< edm::EDGetToken > tokens_
Definition: MVAVariableHelper.h:36
MVAVariableHelper::getVariableFromDoubleToken
static float getVariableFromDoubleToken(edm::EDGetToken const &token, const edm::Event &iEvent)
Definition: MVAVariableHelper.h:30
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39