#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) |
MVAVariableManager (const std::string &variableDefinitionFileName) | |
Private Member Functions | |
void | addVariable (const std::string &name, const std::string &formula, const std::string &lowerClip, const std::string &upperClip) |
Private Attributes | |
std::vector< std::string > | formulas_ |
std::vector< ThreadSafeStringCut< StringObjectFunction< ParticleType >, ParticleType > > | functions_ |
const MVAVariableIndexMap | indexMap |
std::map< std::string, int > | indexMap_ |
std::vector< std::string > | names_ |
int | nVars_ |
std::vector< MVAVariableInfo > | variableInfos_ |
Definition at line 14 of file MVAVariableManager.h.
|
inline |
Definition at line 16 of file MVAVariableManager.h.
|
inlineprivate |
Definition at line 79 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::MVAVariableManager().
|
inline |
Definition at line 47 of file MVAVariableManager.h.
Referenced by plotting.Plot::draw(), ElectronMVANtuplizer::ElectronMVANtuplizer(), PhotonMVAEstimator::mvaValue(), ElectronMVAEstimatorRun2::mvaValue(), and PhotonMVANtuplizer::PhotonMVANtuplizer().
|
inline |
Definition at line 49 of file MVAVariableManager.h.
|
inline |
Definition at line 51 of file MVAVariableManager.h.
Referenced by PhotonMVANtuplizer::analyze(), ElectronMVANtuplizer::analyze(), PhotonMVAEstimator::mvaValue(), and ElectronMVAEstimatorRun2::mvaValue().
|
inline |
Definition at line 38 of file MVAVariableManager.h.
Referenced by ElectronMVAEstimatorRun2::init(), and PhotonMVAEstimator::PhotonMVAEstimator().
|
private |
Definition at line 118 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable().
|
private |
Definition at line 117 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getValue().
|
private |
Definition at line 122 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable().
|
private |
Definition at line 120 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getVarIndex().
|
private |
Definition at line 119 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getName().
|
private |
Definition at line 112 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getNVars().
|
private |
Definition at line 116 of file MVAVariableManager.h.
Referenced by MVAVariableManager< reco::GsfElectron >::addVariable(), and MVAVariableManager< reco::GsfElectron >::getValue().