1 #ifndef CommonTools_Utils_TMVAEvaluator_h
2 #define CommonTools_Utils_TMVAEvaluator_h
9 #include "TMVA/Reader.h"
19 const std::vector<std::string> &
variables,
const std::vector<std::string> & spectators);
20 float evaluate(
const std::map<std::string,float> &
inputs,
const bool useSpectators=
false);
32 #endif // CommonTools_Utils_TMVAEvaluator_h
std::map< std::string, float > mVariables
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)
std::unique_ptr< TMVA::Reader > mReader
std::map< std::string, float > mSpectators