FCCAnalyses
Loading...
Searching...
No Matches
TMVAHelper.h
Go to the documentation of this file.
1#ifndef TMVAHelper_TMVAHelper_h
2#define TMVAHelper_TMVAHelper_h
3
4// ROOT
5#include "ROOT/RVec.hxx"
6#include "RVersion.h"
7#include "TMVA/RBDT.hxx"
8
9// TBB
10#include <tbb/task_arena.h>
11
12// std
13#include <string>
14#include <vector>
15
17public:
18 tmva_helper_xgb(const std::string &filename, const std::string &name,
19 const unsigned int nslots = 1);
21 ROOT::VecOps::RVec<float> operator()(const ROOT::VecOps::RVec<float> vars);
22
23private:
24 // Default backend (template parameter) is:
25 // TMVA::Experimental::BranchlessJittedForest<float>
26#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 0)
27 std::vector<TMVA::Experimental::RBDT> m_interpreters;
28#else
29 std::vector<TMVA::Experimental::RBDT<>> m_interpreters;
30#endif
31};
32
33#endif
Definition TMVAHelper.h:16
std::vector< TMVA::Experimental::RBDT > m_interpreters
Definition TMVAHelper.h:27
tmva_helper_xgb(const std::string &filename, const std::string &name, const unsigned int nslots=1)
Definition TMVAHelper.cc:5
ROOT::VecOps::RVec< float > operator()(const ROOT::VecOps::RVec< float > vars)
Definition TMVAHelper.cc:22
~tmva_helper_xgb()
Definition TMVAHelper.h:20