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::MVAVariableIndexMap ( )

Definition at line 12 of file MVAVariableHelper.cc.

12 : indexMap_({{"fixedGridRhoFastjetAll", 0}, {"fixedGridRhoAll", 1}}) {}

Member Function Documentation

◆ getIndex()

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

Definition at line 17 of file MVAVariableHelper.h.

17 { return indexMap_.at(name); }

References indexMap_, and Skims_PA_cff::name.

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

Member Data Documentation

◆ indexMap_

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

Definition at line 20 of file MVAVariableHelper.h.

Referenced by getIndex().

MVAVariableIndexMap::indexMap_
const std::unordered_map< std::string, int > indexMap_
Definition: MVAVariableHelper.h:20
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17