Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RMethodBase.h
Go to the documentation of this file.
1// @(#)root/tmva/rmva $Id$
2// Author: Omar Zapata,Lorenzo Moneta, Sergei Gleyzer 2015
3
4/**********************************************************************************
5 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6 * Package: TMVA *
7 * Class : RMethodBase *
8 * *
9 * Description: *
10 * Virtual base class for all MVA method based on ROOTR *
11 * *
12 **********************************************************************************/
13
14#ifndef ROOT_TMVA_RMethodBase
15#define ROOT_TMVA_RMethodBase
16
17//////////////////////////////////////////////////////////////////////////
18// //
19// RMethodBase //
20// //
21// Virtual base class for all TMVA method based on ROOTR //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25#include "TMVA/MethodBase.h"
26
27#include <TRInterface.h>
28
29#include <vector>
30#include <string>
31
32class TGraph;
33class TTree;
34class TDirectory;
35class TSpline;
36class TH1F;
37class TH1D;
38
39namespace TMVA {
40
41 class Ranking;
42 class PDF;
43 class TSpline1;
44 class MethodCuts;
45 class MethodBoost;
46 class DataSetInfo;
47
48 class RMethodBase : public MethodBase {
49
50 friend class Factory;
51 protected:
53 public:
54
55 // default constructur
58 const TString &methodTitle,
61
62 // constructor used for Testing + Application of the MVA, only (no training),
63 // using given weight file
67 protected:
68
69 void LoadData();//Read data from Data() Aand DataInfo() to Dataframes and Vectors
70 protected:
71 ROOT::R::TRDataFrame fDfTrain;//signal and backgrd
75 std::vector<std::string> fFactorTrain;
76 std::vector<std::string> fFactorTest;
78
79 private:
80 ClassDefOverride(RMethodBase, 0) // Virtual base class for all TMVA method
81
82 };
83} // namespace TMVA
84
85#endif
86
87
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
This is a class to create DataFrames from ROOT to R.
ROOT R was implemented using the R Project library and the modules Rcpp and RInside
static TRInterface & Instance()
static method to get an TRInterface instance reference
Describe directory structure in memory.
Definition TDirectory.h:45
A TGraph is an object made of two arrays X and Y with npoints each.
Definition TGraph.h:41
1-D histogram with a double per channel (see TH1 documentation)
Definition TH1.h:926
1-D histogram with a float per channel (see TH1 documentation)
Definition TH1.h:878
Class that contains all the data information.
Definition DataSetInfo.h:62
This is the main MVA steering class.
Definition Factory.h:80
Virtual base Class for all MVA method.
Definition MethodBase.h:111
std::vector< std::string > fFactorTrain
Definition RMethodBase.h:75
ROOT::R::TRInterface & r
Definition RMethodBase.h:52
ROOT::R::TRDataFrame fDfTrain
Definition RMethodBase.h:71
RMethodBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="", ROOT::R::TRInterface &_r=ROOT::R::TRInterface::Instance())
TVectorD fWeightTrain
Definition RMethodBase.h:73
ROOT::R::TRDataFrame fDfTest
Definition RMethodBase.h:72
TVectorD fWeightTest
Definition RMethodBase.h:74
std::vector< std::string > fFactorTest
Definition RMethodBase.h:76
ROOT::R::TRDataFrame fDfSpectators
Definition RMethodBase.h:77
Base class for spline implementation containing the Draw/Paint methods.
Definition TSpline.h:31
Basic string class.
Definition TString.h:138
A TTree represents a columnar dataset.
Definition TTree.h:89
create variable transformations