CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MVAVariableIndexMap Class Reference

#include <MVAVariableHelper.h>

Public Member Functions

int getIndex (std::string const &name) const
 
 MVAVariableIndexMap ()
 

Private Attributes

const std::unordered_map< std::string, int > indexMap_
 

Detailed Description

Definition at line 13 of file MVAVariableHelper.h.

Constructor & Destructor Documentation

MVAVariableIndexMap::MVAVariableIndexMap ( )

Definition at line 12 of file MVAVariableHelper.cc.

12 : indexMap_({{"fixedGridRhoFastjetAll", 0}, {"fixedGridRhoAll", 1}}) {}
const std::unordered_map< std::string, int > indexMap_

Member Function Documentation

int MVAVariableIndexMap::getIndex ( std::string const &  name) const
inline

Definition at line 17 of file MVAVariableHelper.h.

References indexMap_.

Referenced by MVAVariableManager< reco::GsfElectron >::addVariable().

17 { return indexMap_.at(name); }
const std::unordered_map< std::string, int > indexMap_

Member Data Documentation

const std::unordered_map<std::string, int> MVAVariableIndexMap::indexMap_
private

Definition at line 20 of file MVAVariableHelper.h.

Referenced by getIndex().