26#include "HiggsModel.hxx"
31void TMVA_SOFIE_RDataFrame(
int nthreads = 2){
33 std::string inputFileName =
"Higgs_data.root";
34 std::string inputFile = std::string{
gROOT->GetTutorialDir()} +
"/machine_learning/data/" + inputFileName;
39 int nslots = df1.GetNSlots();
40 std::cout <<
"Running using " << nslots <<
" threads" << std::endl;
42 {
"m_jj",
"m_jjj",
"m_lv",
"m_jlv",
"m_bb",
"m_wbb",
"m_wwbb"})
43 .Histo1D({
"h_sig",
"", 100, 0, 1},
"DNN_Value");
46 nslots = df2.GetNSlots();
48 {
"m_jj",
"m_jjj",
"m_lv",
"m_jlv",
"m_bb",
"m_wbb",
"m_wwbb"})
49 .Histo1D({
"h_bkg",
"", 100, 0, 1},
"DNN_Value");
52 h2->SetLineColor(
kBlue);
58 h1->DrawClone(
"SAME");
#define R__ADD_INCLUDE_PATH(PATH)
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...
auto SofieFunctor(unsigned int nslots=0, const std::string &weightsFile="") -> SofieFunctorHelper< std::make_index_sequence< N >, Session_t, float >
SofieFunctor : used to wrap the infer function of the generated model by SOFIE in a RDF compatible si...