1 #ifndef CommonTools_MVAUtils_TMVAEvaluator_h 2 #define CommonTools_MVAUtils_TMVAEvaluator_h 13 #include "TMVA/IMethod.h" 14 #include "TMVA/Reader.h" 23 const std::vector<std::string>&
variables,
29 const std::vector<std::string>& variables,
30 const std::vector<std::string>& spectators,
35 const std::vector<std::string>& variables,
36 const std::vector<std::string>& spectators,
39 float evaluateTMVA(
const std::map<std::string, float>&
inputs,
bool useSpectators)
const;
41 float evaluate(
const std::map<std::string, float>& inputs,
bool useSpectators =
false)
const;
57 #endif // CommonTools_Utils_TMVAEvaluator_h static boost::mutex mutex
void initializeGBRForest(const GBRForest *gbrForest, const std::vector< std::string > &variables, const std::vector< std::string > &spectators, bool useAdaBoost=false)
std::map< std::string, std::pair< size_t, float > > mVariables
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, bool useGBRForest=false, bool useAdaBoost=false)
float evaluateTMVA(const std::map< std::string, float > &inputs, bool useSpectators) const
#define CMS_THREAD_GUARD(_var_)
std::shared_ptr< const GBRForest > mGBRForest
std::map< std::string, std::pair< size_t, float > > mSpectators
std::unique_ptr< TMVA::Reader > mReader
float evaluate(const std::map< std::string, float > &inputs, bool useSpectators=false) const
float evaluateGBRForest(const std::map< std::string, float > &inputs) const