386 {
387
388
389 TMVA::Tools::Instance();
390
391 m_expert = std::make_unique<TMVA::Reader>(
"!Color:Silent");
392
393 GeneralOptions general_options;
394 weightfile.getOptions(general_options);
396 for (unsigned int i = 0; i < general_options.m_variables.size(); ++i) {
398 }
400 for (unsigned int i = 0; i < general_options.m_spectators.size(); ++i) {
402 }
403
404 if (weightfile.containsElement("TMVA_Logfile")) {
405 std::string custom_weightfile = weightfile.generateFileName("logfile");
406 weightfile.getFile("TMVA_Logfile", custom_weightfile);
407 }
408
409 }
std::vector< float > m_input_cache
Input Cache for TMVA::Reader: Otherwise we would have to set the branch addresses in each apply call.
std::unique_ptr< TMVA::Reader > m_expert
TMVA::Reader pointer.
std::vector< float > m_spectators_cache
Spectators Cache for TMVA::Reader: Otherwise we would have to set the branch addresses in each apply ...
static std::string makeROOTCompatible(std::string str)
Remove special characters that ROOT dislikes in branch names, e.g.