Loading [MathJax]/extensions/tex2jax.js
ROOT
Version v6.24
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
BDT_Reg.h
Go to the documentation of this file.
1
#ifndef BDT_Reg__HH
2
#define BDT_Reg__HH
3
4
#include <vector>
5
6
#include "
TMVA/tmvaglob.h
"
7
8
#include "
RQ_OBJECT.h
"
9
10
#include "
TStyle.h
"
11
#include "
TPad.h
"
12
#include "
TCanvas.h
"
13
#include "
TFile.h
"
14
#include "
TColor.h
"
15
#include "
TPaveText.h
"
16
#include "
TControlBar.h
"
17
18
#include "
TGWindow.h
"
19
#include "
TGButton.h
"
20
#include "
TGLabel.h
"
21
#include "
TGNumberEntry.h
"
22
23
#include "
TMVA/DecisionTree.h
"
24
#include "
TMVA/Tools.h
"
25
#include "
TXMLEngine.h
"
26
#include "
TMVA/BDT.h
"
27
// Uncomment this only if the link problem is solved. The include statement tends
28
// to use the ROOT classes rather than the local TMVA release
29
// #include "TMVA/DecisionTree.h"
30
// #include "TMVA/DecisionTreeNode.h"
31
32
namespace
TMVA
{
33
34
35
36
class
StatDialogBDTReg
{
37
38
RQ_OBJECT
(
"StatDialogBDTReg"
)
39
40
public
:
41
42
StatDialogBDTReg
(
TString
dataset,
const
TGWindow
* p,
TString
wfile,
43
TString
methName =
"BDT"
,
Int_t
itree = 0 );
44
virtual
~StatDialogBDTReg
() {
45
TMVA::DecisionTreeNode::SetIsTraining
(
false
);
46
fThis
= 0;
47
fMain
->
CloseWindow
();
48
fMain
->
Cleanup
();
49
if
(
gROOT
->GetListOfCanvases()->FindObject(
fCanvas
))
50
delete
fCanvas
;
51
}
52
53
// draw method
54
void
DrawTree
(
Int_t
itree );
55
56
void
RaiseDialog
() {
if
(
fMain
) {
fMain
->
RaiseWindow
();
fMain
->
Layout
();
fMain
->
MapWindow
(); } }
57
58
private
:
59
60
TGMainFrame
*
fMain
;
61
Int_t
fItree
;
62
Int_t
fNtrees
;
63
TCanvas
*
fCanvas
;
64
TString
fDataset
;
65
66
TGNumberEntry
*
fInput
;
67
68
TGHorizontalFrame
*
fButtons
;
69
TGTextButton
*
fDrawButton
;
70
TGTextButton
*
fCloseButton
;
71
72
void
UpdateCanvases
();
73
74
// draw methods
75
TMVA::DecisionTree
*
ReadTree
(
TString
* &vars,
Int_t
itree );
76
void
DrawNode
(
TMVA::DecisionTreeNode
*
n
,
77
Double_t
x
,
Double_t
y
,
Double_t
xscale,
Double_t
yscale,
TString
* vars );
78
void
GetNtrees
();
79
80
TString
fWfile
;
81
TString
fMethName
;
82
83
public
:
84
85
// static function for external deletion
86
static
void
Delete
() {
if
(
fThis
!= 0) {
delete
fThis
;
fThis
= 0; } }
87
88
// slots
89
void
SetItree
();
//*SIGNAL*
90
void
Redraw
();
//*SIGNAL*
91
void
Close
();
//*SIGNAL*
92
93
private
:
94
95
static
StatDialogBDTReg
*
fThis
;
96
97
};
98
99
// ========================================================================================
100
101
extern
std::vector<TControlBar*> BDTReg_Global__cbar;
102
103
// intermediate GUI
104
void
BDT_Reg
(
TString
dataset,
const
TString
& fin =
"TMVAReg.root"
);
105
void
BDTReg_DeleteTBar
(
int
i);
106
107
void
BDT_Reg
(
TString
dataset,
Int_t
itree,
TString
wfile =
""
,
TString
methName =
"BDT"
,
Bool_t
useTMVAStyle =
kTRUE
);
108
109
110
}
111
#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:63
Double_t
double Double_t
Definition
RtypesCore.h:59
kTRUE
const Bool_t kTRUE
Definition
RtypesCore.h:91
TCanvas.h
TColor.h
TControlBar.h
TFile.h
TGButton.h
TGLabel.h
TGNumberEntry.h
TGWindow.h
TPad.h
TPaveText.h
gROOT
#define gROOT
Definition
TROOT.h:406
TStyle.h
TXMLEngine.h
Tools.h
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TGCompositeFrame::Cleanup
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
Definition
TGFrame.cxx:952
TGCompositeFrame::Layout
virtual void Layout()
Layout the elements of the composite frame.
Definition
TGFrame.cxx:1242
TGFrame::MapWindow
virtual void MapWindow()
map window
Definition
TGFrame.h:228
TGHorizontalFrame
Definition
TGFrame.h:422
TGMainFrame
Definition
TGFrame.h:443
TGMainFrame::CloseWindow
virtual void CloseWindow()
Close and delete main frame.
Definition
TGFrame.cxx:1731
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:207
TMVA::DecisionTreeNode
Definition
DecisionTreeNode.h:117
TMVA::DecisionTreeNode::SetIsTraining
static void SetIsTraining(bool on)
Definition
DecisionTreeNode.cxx:546
TMVA::DecisionTree
Implementation of a Decision Tree.
Definition
DecisionTree.h:65
TMVA::StatDialogBDTReg
Definition
BDT_Reg.h:36
TMVA::StatDialogBDTReg::ReadTree
TMVA::DecisionTree * ReadTree(TString *&vars, Int_t itree)
Definition
BDT_Reg.cxx:205
TMVA::StatDialogBDTReg::Close
void Close()
Definition
BDT_Reg.cxx:39
TMVA::StatDialogBDTReg::RaiseDialog
void RaiseDialog()
Definition
BDT_Reg.h:56
TMVA::StatDialogBDTReg::UpdateCanvases
void UpdateCanvases()
Definition
BDT_Reg.cxx:101
TMVA::StatDialogBDTReg::fDataset
TString fDataset
Definition
BDT_Reg.h:64
TMVA::StatDialogBDTReg::fItree
Int_t fItree
Definition
BDT_Reg.h:61
TMVA::StatDialogBDTReg::GetNtrees
void GetNtrees()
Definition
BDT_Reg.cxx:106
TMVA::StatDialogBDTReg::fNtrees
Int_t fNtrees
Definition
BDT_Reg.h:62
TMVA::StatDialogBDTReg::Redraw
void Redraw()
Definition
BDT_Reg.cxx:34
TMVA::StatDialogBDTReg::fButtons
TGHorizontalFrame * fButtons
Definition
BDT_Reg.h:68
TMVA::StatDialogBDTReg::fWfile
TString fWfile
Definition
BDT_Reg.h:80
TMVA::StatDialogBDTReg::fThis
static StatDialogBDTReg * fThis
Definition
BDT_Reg.h:95
TMVA::StatDialogBDTReg::~StatDialogBDTReg
virtual ~StatDialogBDTReg()
Definition
BDT_Reg.h:44
TMVA::StatDialogBDTReg::fMethName
TString fMethName
Definition
BDT_Reg.h:81
TMVA::StatDialogBDTReg::DrawTree
void DrawTree(Int_t itree)
Definition
BDT_Reg.cxx:292
TMVA::StatDialogBDTReg::fCanvas
TCanvas * fCanvas
Definition
BDT_Reg.h:63
TMVA::StatDialogBDTReg::fInput
TGNumberEntry * fInput
Definition
BDT_Reg.h:66
TMVA::StatDialogBDTReg::fMain
TGMainFrame * fMain
Definition
BDT_Reg.h:60
TMVA::StatDialogBDTReg::fDrawButton
TGTextButton * fDrawButton
Definition
BDT_Reg.h:69
TMVA::StatDialogBDTReg::Delete
static void Delete()
Definition
BDT_Reg.h:86
TMVA::StatDialogBDTReg::SetItree
void SetItree()
Definition
BDT_Reg.cxx:29
TMVA::StatDialogBDTReg::fCloseButton
TGTextButton * fCloseButton
Definition
BDT_Reg.h:70
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:156
TString
Basic string class.
Definition
TString.h:136
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:22
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-24 - Reference Guide Generated on Tue Aug 22 2023 03:06:53 (GVA Time) using Doxygen 1.9.8