ROOT
v6-22
Reference Guide
BDT_Reg.h
Go to the documentation of this file.
1
#ifndef BDT_Reg__HH
2
#define BDT_Reg__HH
3
#include <iostream>
4
#include <iomanip>
5
#include <fstream>
6
7
#include "
TMVA/tmvaglob.h
"
8
9
#include "
RQ_OBJECT.h
"
10
11
#include "
TROOT.h
"
12
#include "
TStyle.h
"
13
#include "
TPad.h
"
14
#include "
TCanvas.h
"
15
#include "
TLine.h
"
16
#include "
TFile.h
"
17
#include "
TColor.h
"
18
#include "
TPaveText.h
"
19
#include "
TControlBar.h
"
20
21
#include "
TGWindow.h
"
22
#include "
TGButton.h
"
23
#include "
TGLabel.h
"
24
#include "
TGNumberEntry.h
"
25
26
#include "
TMVA/DecisionTree.h
"
27
#include "
TMVA/Tools.h
"
28
#include "
TXMLEngine.h
"
29
#include "
TMVA/BDT.h
"
30
// Uncomment this only if the link problem is solved. The include statement tends
31
// to use the ROOT classes rather than the local TMVA release
32
// #include "TMVA/DecisionTree.h"
33
// #include "TMVA/DecisionTreeNode.h"
34
35
namespace
TMVA
{
36
37
38
39
class
StatDialogBDTReg
{
40
41
RQ_OBJECT
(
"StatDialogBDTReg"
)
42
43
public
:
44
45
StatDialogBDTReg
(
TString
dataset,
const
TGWindow
* p,
TString
wfile,
46
TString
methName =
"BDT"
,
Int_t
itree = 0 );
47
virtual
~StatDialogBDTReg
() {
48
TMVA::DecisionTreeNode::fgIsTraining
=
false
;
49
fThis
= 0;
50
fMain
->
CloseWindow
();
51
fMain
->
Cleanup
();
52
if
(
gROOT
->GetListOfCanvases()->FindObject(
fCanvas
))
53
delete
fCanvas
;
54
}
55
56
// draw method
57
void
DrawTree
(
Int_t
itree );
58
59
void
RaiseDialog
() {
if
(
fMain
) {
fMain
->
RaiseWindow
();
fMain
->
Layout
();
fMain
->
MapWindow
(); } }
60
61
private
:
62
63
TGMainFrame
*
fMain
;
64
Int_t
fItree
;
65
Int_t
fNtrees
;
66
TCanvas
*
fCanvas
;
67
TString
fDataset
;
68
69
TGNumberEntry
*
fInput
;
70
71
TGHorizontalFrame
*
fButtons
;
72
TGTextButton
*
fDrawButton
;
73
TGTextButton
*
fCloseButton
;
74
75
void
UpdateCanvases
();
76
77
// draw methods
78
TMVA::DecisionTree
*
ReadTree
(
TString
* &vars,
Int_t
itree );
79
void
DrawNode
(
TMVA::DecisionTreeNode
*
n
,
80
Double_t
x
,
Double_t
y
,
Double_t
xscale,
Double_t
yscale,
TString
* vars );
81
void
GetNtrees
();
82
83
TString
fWfile
;
84
TString
fMethName
;
85
86
public
:
87
88
// static function for external deletion
89
static
void
Delete
() {
if
(
fThis
!= 0) {
delete
fThis
;
fThis
= 0; } }
90
91
// slots
92
void
SetItree
();
//*SIGNAL*
93
void
Redraw
();
//*SIGNAL*
94
void
Close
();
//*SIGNAL*
95
96
private
:
97
98
static
StatDialogBDTReg
*
fThis
;
99
100
};
101
102
// ========================================================================================
103
104
extern
std::vector<TControlBar*> BDTReg_Global__cbar;
105
106
// intermediate GUI
107
void
BDT_Reg
(
TString
dataset,
const
TString
& fin =
"TMVAReg.root"
);
108
void
BDTReg_DeleteTBar
(
int
i);
109
110
void
BDT_Reg
(
TString
dataset,
Int_t
itree,
TString
wfile =
""
,
TString
methName =
"BDT"
,
Bool_t
useTMVAStyle =
kTRUE
);
111
112
113
}
114
#endif
BDT.h
DecisionTree.h
RQ_OBJECT.h
RQ_OBJECT
#define RQ_OBJECT(sender_class)
Definition:
RQ_OBJECT.h:87
Bool_t
bool Bool_t
Definition:
RtypesCore.h:61
Double_t
double Double_t
Definition:
RtypesCore.h:57
kTRUE
const Bool_t kTRUE
Definition:
RtypesCore.h:89
TCanvas.h
TColor.h
TControlBar.h
TFile.h
TGButton.h
TGLabel.h
TGNumberEntry.h
TGWindow.h
TLine.h
TPad.h
TPaveText.h
TROOT.h
gROOT
#define gROOT
Definition:
TROOT.h:406
TStyle.h
TXMLEngine.h
Tools.h
TCanvas
The Canvas class.
Definition:
TCanvas.h:27
TGCompositeFrame::Cleanup
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
Definition:
TGFrame.cxx:951
TGCompositeFrame::Layout
virtual void Layout()
Layout the elements of the composite frame.
Definition:
TGFrame.cxx:1241
TGFrame::MapWindow
virtual void MapWindow()
map window
Definition:
TGFrame.h:229
TGHorizontalFrame
Definition:
TGFrame.h:423
TGMainFrame
Definition:
TGFrame.h:444
TGMainFrame::CloseWindow
virtual void CloseWindow()
Close and delete main frame.
Definition:
TGFrame.cxx:1730
TGNumberEntry
Definition:
TGNumberEntry.h:157
TGTextButton
Definition:
TGButton.h:142
TGWindow
Definition:
TGWindow.h:31
TGWindow::RaiseWindow
virtual void RaiseWindow()
raise window
Definition:
TGWindow.cxx:198
TMVA::DecisionTreeNode
Definition:
DecisionTreeNode.h:116
TMVA::DecisionTreeNode::fgIsTraining
static bool fgIsTraining
Definition:
DecisionTreeNode.h:349
TMVA::DecisionTree
Implementation of a Decision Tree.
Definition:
DecisionTree.h:64
TMVA::StatDialogBDTReg
Definition:
BDT_Reg.h:39
TMVA::StatDialogBDTReg::ReadTree
TMVA::DecisionTree * ReadTree(TString *&vars, Int_t itree)
Definition:
BDT_Reg.cxx:210
TMVA::StatDialogBDTReg::Close
void Close()
Definition:
BDT_Reg.cxx:44
TMVA::StatDialogBDTReg::RaiseDialog
void RaiseDialog()
Definition:
BDT_Reg.h:59
TMVA::StatDialogBDTReg::UpdateCanvases
void UpdateCanvases()
Definition:
BDT_Reg.cxx:106
TMVA::StatDialogBDTReg::fDataset
TString fDataset
Definition:
BDT_Reg.h:67
TMVA::StatDialogBDTReg::fItree
Int_t fItree
Definition:
BDT_Reg.h:64
TMVA::StatDialogBDTReg::GetNtrees
void GetNtrees()
Definition:
BDT_Reg.cxx:111
TMVA::StatDialogBDTReg::fNtrees
Int_t fNtrees
Definition:
BDT_Reg.h:65
TMVA::StatDialogBDTReg::Redraw
void Redraw()
Definition:
BDT_Reg.cxx:39
TMVA::StatDialogBDTReg::fButtons
TGHorizontalFrame * fButtons
Definition:
BDT_Reg.h:71
TMVA::StatDialogBDTReg::fWfile
TString fWfile
Definition:
BDT_Reg.h:83
TMVA::StatDialogBDTReg::fThis
static StatDialogBDTReg * fThis
Definition:
BDT_Reg.h:98
TMVA::StatDialogBDTReg::StatDialogBDTReg
StatDialogBDTReg(TString dataset, const TGWindow *p, TString wfile, TString methName="BDT", Int_t itree=0)
Definition:
BDT_Reg.cxx:49
TMVA::StatDialogBDTReg::~StatDialogBDTReg
virtual ~StatDialogBDTReg()
Definition:
BDT_Reg.h:47
TMVA::StatDialogBDTReg::fMethName
TString fMethName
Definition:
BDT_Reg.h:84
TMVA::StatDialogBDTReg::DrawTree
void DrawTree(Int_t itree)
Definition:
BDT_Reg.cxx:297
TMVA::StatDialogBDTReg::fCanvas
TCanvas * fCanvas
Definition:
BDT_Reg.h:66
TMVA::StatDialogBDTReg::fInput
TGNumberEntry * fInput
Definition:
BDT_Reg.h:69
TMVA::StatDialogBDTReg::fMain
TGMainFrame * fMain
Definition:
BDT_Reg.h:63
TMVA::StatDialogBDTReg::fDrawButton
TGTextButton * fDrawButton
Definition:
BDT_Reg.h:72
TMVA::StatDialogBDTReg::Delete
static void Delete()
Definition:
BDT_Reg.h:89
TMVA::StatDialogBDTReg::SetItree
void SetItree()
Definition:
BDT_Reg.cxx:34
TMVA::StatDialogBDTReg::fCloseButton
TGTextButton * fCloseButton
Definition:
BDT_Reg.h:73
TMVA::StatDialogBDTReg::DrawNode
void DrawNode(TMVA::DecisionTreeNode *n, Double_t x, Double_t y, Double_t xscale, Double_t yscale, TString *vars)
recursively puts an entries in the histogram for the node and its daughters
Definition:
BDT_Reg.cxx:161
TString
Basic string class.
Definition:
TString.h:131
int
y
Double_t y[n]
Definition:
legend1.C:17
x
Double_t x[n]
Definition:
legend1.C:17
n
const Int_t n
Definition:
legend1.C:16
TMVA
create variable transformations
Definition:
GeneticMinimizer.h:21
TMVA::BDTReg_DeleteTBar
void BDTReg_DeleteTBar(int i)
TMVA::BDT_Reg
void BDT_Reg(TString dataset, const TString &fin="TMVAReg.root")
tmvaglob.h
tmva
tmvagui
inc
TMVA
BDT_Reg.h
ROOT v6-22 - Reference Guide Generated on Fri Apr 1 2022 11:53:06 (GVA Time) using Doxygen 1.9.4