#include <MVAVariableManager.h>
Classes | |
struct | MVAVariableInfo |
Public Member Functions | |
const std::string & | getName (int index) const |
int | getNVars () const |
float | getValue (int index, const ParticleType &particle, const std::vector< float > &auxVariables) const |
int | getVarIndex (const std::string &name) |
template<class IndexMap > | |
MVAVariableManager (const std::string &variableDefinitionFileName, IndexMap const &indexMap) | |
Private Member Functions | |
template<class IndexMap > | |
void | addVariable (const std::string &name, const std::string &formula, const std::string &lowerClip, const std::string &upperClip, IndexMap const &indexMap) |
Private Attributes | |
std::vector< std::string > | formulas_ |
std::vector< ThreadSafeFunctor< StringObjectFunction< ParticleType > > > | functions_ |
std::map< std::string, int > | indexMap_ |
std::vector< std::string > | names_ |
int | nVars_ |
std::vector< MVAVariableInfo > | variableInfos_ |
Definition at line 12 of file MVAVariableManager.h.
|
inline |
Definition at line 15 of file MVAVariableManager.h.
|
inlineprivate |
Definition at line 79 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::MVAVariableManager().
|
inline |
Definition at line 46 of file MVAVariableManager.h.
Referenced by plotting.Plot::draw(), PhotonMVAEstimator::mvaValue(), and ElectronMVAEstimatorRun2::mvaValue().
|
inline |
Definition at line 48 of file MVAVariableManager.h.
|
inline |
Definition at line 50 of file MVAVariableManager.h.
Referenced by PhotonMVANtuplizer::analyze(), ElectronMVANtuplizer::analyze(), PhotonMVAEstimator::mvaValue(), and ElectronMVAEstimatorRun2::mvaValue().
|
inline |
Definition at line 37 of file MVAVariableManager.h.
Referenced by ElectronMVAEstimatorRun2::init(), and PhotonMVAEstimator::PhotonMVAEstimator().
|
private |
Definition at line 119 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable().
|
private |
Definition at line 118 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getValue().
|
private |
Definition at line 121 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getVarIndex().
|
private |
Definition at line 120 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getName().
|
private |
Definition at line 113 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getNVars().
|
private |
Definition at line 117 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getValue().