#include <TMVAEvaluator.h>
Public Member Functions | |
float | evaluate (const std::map< std::string, float > &inputs, const bool useSpectators=false) |
void | initialize (const std::string &options, const std::string &method, const std::string &weightFile, const std::vector< std::string > &variables, const std::vector< std::string > &spectators) |
TMVAEvaluator () | |
~TMVAEvaluator () | |
Private Attributes | |
bool | mIsInitialized |
std::string | mMethod |
std::unique_ptr< TMVA::Reader > | mReader |
std::map< std::string, float > | mSpectators |
std::map< std::string, float > | mVariables |
Definition at line 12 of file TMVAEvaluator.h.
TMVAEvaluator::TMVAEvaluator | ( | ) |
Definition at line 7 of file TMVAEvaluator.cc.
TMVAEvaluator::~TMVAEvaluator | ( | ) |
Definition at line 13 of file TMVAEvaluator.cc.
float TMVAEvaluator::evaluate | ( | const std::map< std::string, float > & | inputs, |
const bool | useSpectators = false |
||
) |
Definition at line 47 of file TMVAEvaluator.cc.
References mIsInitialized, mMethod, mReader, mSpectators, mVariables, and relativeConstraints::value.
void TMVAEvaluator::initialize | ( | const std::string & | options, |
const std::string & | method, | ||
const std::string & | weightFile, | ||
const std::vector< std::string > & | variables, | ||
const std::vector< std::string > & | spectators | ||
) |
Definition at line 18 of file TMVAEvaluator.cc.
References reco::details::loadTMVAWeights(), PFRecoTauDiscriminationAgainstElectronMVA3GBR_cfi::method, mIsInitialized, mMethod, mReader, mSpectators, and mVariables.
|
private |
Definition at line 23 of file TMVAEvaluator.h.
Referenced by evaluate(), and initialize().
|
private |
Definition at line 25 of file TMVAEvaluator.h.
Referenced by evaluate(), and initialize().
|
private |
Definition at line 26 of file TMVAEvaluator.h.
Referenced by evaluate(), and initialize().
|
private |
Definition at line 29 of file TMVAEvaluator.h.
Referenced by evaluate(), and initialize().
|
private |
Definition at line 28 of file TMVAEvaluator.h.
Referenced by evaluate(), and initialize().