ROOT  6.06/09
Reference Guide
BDT_Reg.cxx
Go to the documentation of this file.
1 #include "TMVA/BDT_Reg.h"
2 #include <iostream>
3 #include <iomanip>
4 #include <fstream>
5 
6 
7 
8 #include "RQ_OBJECT.h"
9 
10 #include "TROOT.h"
11 #include "TStyle.h"
12 #include "TPad.h"
13 #include "TCanvas.h"
14 #include "TLine.h"
15 #include "TFile.h"
16 #include "TColor.h"
17 #include "TPaveText.h"
18 #include "TObjString.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 
30 
31 TMVA::StatDialogBDTReg* TMVA::StatDialogBDTReg::fThis = 0;
32 
34 {
36 }
37 
39 {
40  UpdateCanvases();
41 }
42 
44 {
45  delete this;
46 }
47 
49  : fMain( 0 ),
50  fItree(itree),
51  fNtrees(0),
52  fCanvas(0),
53  fInput(0),
54  fButtons(0),
55  fDrawButton(0),
56  fCloseButton(0),
57  fWfile( wfile ),
58  fMethName( methName )
59 {
60  UInt_t totalWidth = 500;
61  UInt_t totalHeight = 200;
62 
63  fThis = this;
64 
65  // read number of decision trees from weight file
66  GetNtrees();
67 
68  // main frame
69  fMain = new TGMainFrame(p, totalWidth, totalHeight, kMainFrame | kVerticalFrame);
70 
71  TGLabel *sigLab = new TGLabel( fMain, Form( "Regression tree [%i-%i]",0,fNtrees-1 ) );
72  fMain->AddFrame(sigLab, new TGLayoutHints(kLHintsLeft | kLHintsTop,5,5,5,5));
73 
76  fInput->Resize(100,24);
78 
79  fButtons = new TGHorizontalFrame(fMain, totalWidth,30);
80 
81  fCloseButton = new TGTextButton(fButtons,"&Close");
83 
84  fDrawButton = new TGTextButton(fButtons,"&Draw");
86 
88 
89  fMain->SetWindowName("Regression tree");
90  fMain->SetWMPosition(0,0);
93  fMain->MapWindow();
94 
95  fInput->Connect("ValueSet(Long_t)","TMVA::StatDialogBDTReg",this, "SetItree()");
96 
97  // doesn't seem to exist .. gives an 'error message' and seems to work just fine without ... :)
98  // fDrawButton->Connect("Clicked()","TGNumberEntry",fInput, "ValueSet(Long_t)");
99  fDrawButton->Connect("Clicked()", "TMVA::StatDialogBDTReg", this, "Redraw()");
100 
101  fCloseButton->Connect("Clicked()", "TMVA::StatDialogBDTReg", this, "Close()");
102 }
103 
105 {
106  DrawTree( fItree );
107 }
108 
110 {
111  if(!fWfile.EndsWith(".xml") ){
112  std::ifstream fin( fWfile );
113  if (!fin.good( )) { // file not found --> Error
114  std::cout << "*** ERROR: Weight file: " << fWfile << " does not exist" << std::endl;
115  return;
116  }
117 
118  TString dummy = "";
119 
120  // read total number of trees, and check whether requested tree is in range
121  Int_t nc = 0;
122  while (!dummy.Contains("NTrees")) {
123  fin >> dummy;
124  nc++;
125  if (nc > 200) {
126  std::cout << std::endl;
127  std::cout << "*** Huge problem: could not locate term \"NTrees\" in BDT weight file: "
128  << fWfile << std::endl;
129  std::cout << "==> panic abort (please contact the TMVA authors)" << std::endl;
130  std::cout << std::endl;
131  exit(1);
132  }
133  }
134  fin >> dummy;
135  fNtrees = dummy.ReplaceAll("\"","").Atoi();
136  fin.close();
137  }
138  else{
139  void* doc = TMVA::gTools().xmlengine().ParseFile(fWfile);
140  void* rootnode = TMVA::gTools().xmlengine().DocGetRootElement(doc);
141  void* ch = TMVA::gTools().xmlengine().GetChild(rootnode);
142  while(ch){
143  TString nodeName = TString( TMVA::gTools().xmlengine().GetNodeName(ch) );
144  if(nodeName=="Weights") {
145  TMVA::gTools().ReadAttr( ch, "NTrees", fNtrees );
146  break;
147  }
148  ch = TMVA::gTools().xmlengine().GetNext(ch);
149  }
150  }
151  std::cout << "--- Found " << fNtrees << " decision trees in weight file" << std::endl;
152 
153 }
154 
155 ////////////////////////////////////////////////////////////////////////////////
156 /// recursively puts an entries in the histogram for the node and its daughters
157 ///
158 
160  Double_t x, Double_t y,
161  Double_t xscale, Double_t yscale, TString * vars)
162 {
163  Float_t xsize=xscale*1.5;
164  Float_t ysize=yscale/3;
165  if (xsize>0.15) xsize=0.1;
166  if (n->GetLeft() != NULL){
167  TLine *a1 = new TLine(x-xscale/4,y-ysize,x-xscale,y-ysize*2);
168  a1->SetLineWidth(2);
169  a1->Draw();
170  DrawNode((TMVA::DecisionTreeNode*) n->GetLeft(), x-xscale, y-yscale, xscale/2, yscale, vars);
171  }
172  if (n->GetRight() != NULL){
173  TLine *a1 = new TLine(x+xscale/4,y-ysize,x+xscale,y-ysize*2);
174  a1->SetLineWidth(2);
175  a1->Draw();
176  DrawNode((TMVA::DecisionTreeNode*) n->GetRight(), x+xscale, y-yscale, xscale/2, yscale, vars );
177  }
178 
179  // TPaveText *t = new TPaveText(x-xscale/2,y-yscale/2,x+xscale/2,y+yscale/2, "NDC");
180  TPaveText *t = new TPaveText(x-xsize,y-ysize,x+xsize,y+ysize, "NDC");
181 
182  t->SetBorderSize(1);
183 
184  t->SetFillStyle(1001);
185  if (n->GetNodeType() == 1) { t->SetFillColor( kSigColorF ); t->SetTextColor( kSigColorT ); }
186  else if (n->GetNodeType() == -1) { t->SetFillColor( kBkgColorF ); t->SetTextColor( kBkgColorT ); }
187  else if (n->GetNodeType() == 0) { t->SetFillColor( kIntColorF ); t->SetTextColor( kIntColorT ); }
188 
189  char buffer[25];
190  // sprintf( buffer, "N=%f", n->GetNEvents() );
191  // t->AddText(buffer);
192  sprintf( buffer, "R=%4.1f +- %4.1f", n->GetResponse(),n->GetRMS() );
193  t->AddText(buffer);
194 
195  if (n->GetNodeType() == 0){
196  if (n->GetCutType()){
197  t->AddText(TString(vars[n->GetSelector()]+">"+=::Form("%5.3g",n->GetCutValue())));
198  }else{
199  t->AddText(TString(vars[n->GetSelector()]+"<"+=::Form("%5.3g",n->GetCutValue())));
200  }
201  }
202 
203  t->Draw();
204 
205  return;
206 }
207 
209 {
210  std::cout << "--- Reading Tree " << itree << " from weight file: " << fWfile << std::endl;
212 
213 
214  if(!fWfile.EndsWith(".xml") ){
215 
216  std::ifstream fin( fWfile );
217  if (!fin.good( )) { // file not found --> Error
218  std::cout << "*** ERROR: Weight file: " << fWfile << " does not exist" << std::endl;
219  return 0;
220  }
221  TString dummy = "";
222 
223  if (itree >= fNtrees) {
224  std::cout << "*** ERROR: requested decision tree: " << itree
225  << ", but number of trained trees only: " << fNtrees << std::endl;
226  return 0;
227  }
228 
229  // file header with name
230  while (!dummy.Contains("#VAR")) fin >> dummy;
231  fin >> dummy >> dummy >> dummy; // the rest of header line
232 
233  // number of variables
234  Int_t nVars;
235  fin >> dummy >> nVars;
236 
237  // variable mins and maxes
238  vars = new TString[nVars+1];
239  for (Int_t i = 0; i < nVars; i++) fin >> vars[i] >> dummy >> dummy >> dummy >> dummy;
240  vars[nVars]="FisherCrit";
241 
242  char buffer[20];
243  char line[256];
244  sprintf(buffer,"Tree %d",itree);
245 
246  while (!dummy.Contains(buffer)) {
247  fin.getline(line,256);
248  dummy = TString(line);
249  }
250 
251  d->Read(fin);
252 
253  fin.close();
254  }
255  else{
256  if (itree >= fNtrees) {
257  std::cout << "*** ERROR: requested decision tree: " << itree
258  << ", but number of trained trees only: " << fNtrees << std::endl;
259  return 0;
260  }
261  Int_t nVars;
262  void* doc = TMVA::gTools().xmlengine().ParseFile(fWfile);
263  void* rootnode = TMVA::gTools().xmlengine().DocGetRootElement(doc);
264  void* ch = TMVA::gTools().xmlengine().GetChild(rootnode);
265  while(ch){
266  TString nodeName = TString( TMVA::gTools().xmlengine().GetNodeName(ch) );
267  if(nodeName=="Variables"){
268  TMVA::gTools().ReadAttr( ch, "NVar", nVars);
269  vars = new TString[nVars+1];
270  void* varnode = TMVA::gTools().xmlengine().GetChild(ch);
271  for (Int_t i = 0; i < nVars; i++){
272  TMVA::gTools().ReadAttr( varnode, "Expression", vars[i]);
273  varnode = TMVA::gTools().xmlengine().GetNext(varnode);
274  }
275  vars[nVars]="FisherCrit";
276  }
277  if(nodeName=="Weights") break;
278  ch = TMVA::gTools().xmlengine().GetNext(ch);
279  }
280  ch = TMVA::gTools().xmlengine().GetChild(ch);
281  for (int i=0; i<itree; i++) ch = TMVA::gTools().xmlengine().GetNext(ch);
282  d->ReadXML(ch);
283  }
284  return d;
285 }
286 
287 ////////////////////////////////////////////////////////////////////////////////
288 
290 {
291  TString *vars;
292 
293  TMVA::DecisionTree* d = ReadTree( vars, itree );
294  if (d == 0) return;
295 
296  UInt_t depth = d->GetTotalTreeDepth();
297  Double_t ystep = 1.0/(depth + 1.0);
298 
299  std::cout << "--- Tree depth: " << depth << std::endl;
300 
301  TStyle* TMVAStyle = gROOT->GetStyle("Plain"); // our style is based on Plain
302  Int_t canvasColor = TMVAStyle->GetCanvasColor(); // backup
303 
304  TString cbuffer = Form( "Reading weight file: %s", fWfile.Data() );
305  TString tbuffer = Form( "Regression Tree no.: %d", itree );
306  if (!fCanvas) fCanvas = new TCanvas( "c1", cbuffer, 200, 0, 1000, 600 );
307  else fCanvas->Clear();
308  fCanvas->Draw();
309  DrawNode( (TMVA::DecisionTreeNode*)d->GetRoot(), 0.5, 1.-0.5*ystep, 0.25, ystep ,vars);
310 
311  // make the legend
312  Double_t yup=0.99;
313  Double_t ydown=yup-ystep/2.5;
314  Double_t dy= ystep/2.5 * 0.2;
315 
316  TPaveText *whichTree = new TPaveText(0.85,ydown,0.98,yup, "NDC");
317  whichTree->SetBorderSize(1);
318  whichTree->SetFillStyle(1001);
319  whichTree->SetFillColor( TColor::GetColor( "#ffff33" ) );
320  whichTree->AddText( tbuffer );
321  whichTree->Draw();
322 
323  TPaveText *intermediate = new TPaveText(0.02,ydown,0.15,yup, "NDC");
324  intermediate->SetBorderSize(1);
325  intermediate->SetFillStyle(1001);
326  intermediate->SetFillColor( kIntColorF );
327  intermediate->AddText("Intermediate Nodes");
328  intermediate->SetTextColor( kIntColorT );
329  intermediate->Draw();
330 
331  ydown = ydown - ystep/2.5 -dy;
332  yup = yup - ystep/2.5 -dy;
333  TPaveText *signalleaf = new TPaveText(0.02,ydown ,0.15,yup, "NDC");
334  signalleaf->SetBorderSize(1);
335  signalleaf->SetFillStyle(1001);
336  signalleaf->SetFillColor( kSigColorF );
337  signalleaf->AddText("Leaf Nodes");
338  signalleaf->SetTextColor( kSigColorT );
339  signalleaf->Draw();
340 /*
341  ydown = ydown - ystep/2.5 -dy;
342  yup = yup - ystep/2.5 -dy;
343  TPaveText *backgroundleaf = new TPaveText(0.02,ydown,0.15,yup, "NDC");
344  backgroundleaf->SetBorderSize(1);
345  backgroundleaf->SetFillStyle(1001);
346  backgroundleaf->SetFillColor( kBkgColorF );
347 
348  backgroundleaf->AddText("Backgr. Leaf Nodes");
349  backgroundleaf->SetTextColor( kBkgColorT );
350  backgroundleaf->Draw();
351 */
352  fCanvas->Update();
353  TString fname = Form("plots/%s_%i", fMethName.Data(), itree );
354  std::cout << "--- Creating image: " << fname << std::endl;
355  TMVAGlob::imgconv( fCanvas, fname );
356 
357  TMVAStyle->SetCanvasColor( canvasColor );
358 }
359 
360 // ========================================================================================
361 
362 // intermediate GUI
363 void TMVA::BDT_Reg( const TString& fin )
364 {
365  // --- read the available BDT weight files
366 
367  // destroy all open cavases
369 
370  // checks if file with name "fin" is already open, and if not opens one
371  TFile* file = TMVAGlob::OpenFile( fin );
372 
373  TDirectory* dir = file->GetDirectory( "Method_BDT" );
374  if (!dir) {
375  std::cout << "*** Error in macro \"BDT_Reg.C\": cannot find directory \"Method_BDT\" in file: " << fin << std::endl;
376  return;
377  }
378 
379  // read all directories
380  TIter next( dir->GetListOfKeys() );
381  TKey *key(0);
382  std::vector<TString> methname;
383  std::vector<TString> path;
384  std::vector<TString> wfile;
385  while ((key = (TKey*)next())) {
386  TDirectory* mdir = dir->GetDirectory( key->GetName() );
387  if (!mdir) {
388  std::cout << "*** Error in macro \"BDT_Reg.C\": cannot find sub-directory: " << key->GetName()
389  << " in directory: " << dir->GetName() << std::endl;
390  return;
391  }
392 
393  // retrieve weight file name and path
394  TObjString* strPath = (TObjString*)mdir->Get( "TrainingPath" );
395  TObjString* strWFile = (TObjString*)mdir->Get( "WeightFileName" );
396  if (!strPath || !strWFile) {
397  std::cout << "*** Error in macro \"BDT_Reg.C\": could not find TObjStrings \"TrainingPath\" and/or \"WeightFileName\" *** " << std::endl;
398  std::cout << "*** Maybe you are using TMVA >= 3.8.15 with an older training target file ? *** " << std::endl;
399  return;
400  }
401 
402  methname.push_back( key->GetName() );
403  path .push_back( strPath->GetString() );
404  wfile .push_back( strWFile->GetString() );
405  }
406 
407  // create the control bar
408  TControlBar* cbar = new TControlBar( "vertical", "Choose weight file:", 50, 50 );
409  BDTReg_Global__cbar.push_back(cbar);
410 
411  for (UInt_t im=0; im<path.size(); im++) {
412  TString fname = path[im];
413  if (fname[fname.Length()-1] != '/') fname += "/";
414  fname += wfile[im];
415  TString macro = Form( "TMVA::BDT_Reg(0,\"%s\",\"%s\")", fname.Data(), methname[im].Data() );
416  cbar->AddButton( fname, macro, "Plot decision trees from this weight file", "button" );
417  }
418 
419  // *** problems with this button in ROOT 5.19 ***
420  #if ROOT_VERSION_CODE < ROOT_VERSION(5,19,0)
421  cbar->AddButton( "Close", Form("BDTReg_DeleteTBar(%i)", BDTReg_Global__cbar.size()-1), "Close this control bar", "button" );
422  #endif
423  // **********************************************
424 
425  // set the style
426  cbar->SetTextColor("blue");
427 
428  // draw
429  cbar->Show();
430 }
431 
433 {
434  // destroy all open canvases
437 
438  delete BDTReg_Global__cbar[i];
439  BDTReg_Global__cbar[i] = 0;
440 }
441 
442 // input: - No. of tree
443 // - the weight file from which the tree is read
444 void TMVA::BDT_Reg( Int_t itree, TString wfile , TString methName, Bool_t useTMVAStyle )
445 {
446  // destroy possibly existing dialog windows and/or canvases
449 
450  // quick check if weight file exist
451  if(!wfile.EndsWith(".xml") ){
452  std::ifstream fin( wfile );
453  if (!fin.good( )) { // file not found --> Error
454  std::cout << "*** ERROR: Weight file: " << wfile << " does not exist" << std::endl;
455  return;
456  }
457  }
458  std::cout << "test1";
459  // set style and remove existing canvas'
460  TMVAGlob::Initialize( useTMVAStyle );
461 
462  StatDialogBDTReg* gGui = new StatDialogBDTReg( gClient->GetRoot(), wfile, methName, itree );
463 
464  gGui->DrawTree( itree );
465 
466  gGui->RaiseDialog();
467 }
468 
void Show()
Show control bar.
virtual void SetLineWidth(Width_t lwidth)
Definition: TAttLine.h:57
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
Definition: TGFrame.cxx:587
void AddButton(TControlBarButton *button)
Add button.
static const Int_t kSigColorF
Definition: BDT.h:43
TXMLEngine & xmlengine()
Definition: Tools.h:277
void imgconv(TCanvas *c, const TString &fname)
Definition: tmvaglob.cxx:212
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:37
void SetTextColor(const char *colorName)
Sets text color for control bar buttons, e.g.
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:211
static const Int_t kSigColorT
Definition: BDT.h:48
virtual TList * GetListOfKeys() const
Definition: TDirectory.h:155
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
Definition: TDirectory.cxx:727
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
Ssiz_t Length() const
Definition: TString.h:390
TLine * line
Collectable string class.
Definition: TObjString.h:32
float Float_t
Definition: RtypesCore.h:53
StatDialogBDTReg(const TGWindow *p, TString wfile="weights/TMVARegression_BDT.weights.xml", TString methName="BDT", Int_t itree=0)
Definition: BDT_Reg.cxx:48
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
Definition: TGFrame.cxx:1746
virtual void Read(std::istream &istr, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
Read the binary tree from an input stream.
Definition: BinaryTree.cxx:166
UInt_t GetTotalTreeDepth() const
Definition: BinaryTree.h:99
TFile * OpenFile(const TString &fin)
Definition: tmvaglob.cxx:192
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Definition: TFile.h:45
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
Definition: TPaveText.cxx:160
virtual DecisionTreeNode * GetRight() const
TGMainFrame * fMain
Definition: BDT_Reg.h:64
Float_t GetRMS(void) const
TGTextButton * fDrawButton
Definition: BDT_Reg.h:72
#define gROOT
Definition: TROOT.h:340
XMLNodePointer_t GetNext(XMLNodePointer_t xmlnode, Bool_t realnode=kTRUE)
return next to xmlnode node if realnode==kTRUE, any special nodes in between will be skipped ...
Basic string class.
Definition: TString.h:137
#define gClient
Definition: TGClient.h:174
Int_t GetNodeType(void) const
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
static const Int_t kIntColorF
Definition: BDT.h:45
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
Definition: TObject.cxx:254
virtual void SetLimits(ELimit limits=TGNumberFormat::kNELNoLimits, Double_t min=0, Double_t max=1)
virtual void SetFillStyle(Style_t fstyle)
Definition: TAttFill.h:52
virtual DecisionTreeNode * GetLeft() const
virtual DecisionTreeNode * GetRoot() const
Definition: DecisionTree.h:102
void SetCanvasColor(Color_t color=19)
Definition: TStyle.h:339
const char * Data() const
Definition: TString.h:349
Tools & gTools()
Definition: Tools.cxx:79
Double_t x[n]
Definition: legend1.C:17
TMVA::DecisionTree * ReadTree(TString *&vars, Int_t itree)
Definition: BDT_Reg.cxx:208
Bool_t GetCutType(void) const
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Definition: TKey.h:30
TGTextButton * fCloseButton
Definition: BDT_Reg.h:73
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:159
TStyle objects may be created to define special styles.
Definition: TStyle.h:52
TGNumberEntry * fInput
Definition: BDT_Reg.h:69
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
Definition: TQObject.cxx:1135
TString GetString() const
Definition: TObjString.h:50
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Definition: TString.cxx:2220
void Initialize(Bool_t useTMVAStyle=kTRUE)
Definition: tmvaglob.cxx:176
virtual void SetFillColor(Color_t fcolor)
Definition: TAttFill.h:50
unsigned int UInt_t
Definition: RtypesCore.h:42
char * Form(const char *fmt,...)
A simple line.
Definition: TLine.h:41
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
Definition: TColor.cxx:1666
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:51
void ReadAttr(void *node, const char *, T &value)
Definition: Tools.h:295
virtual void ReadXML(void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
read attributes from XML
Definition: BinaryTree.cxx:141
virtual TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory named "apath".
The Canvas class.
Definition: TCanvas.h:48
XMLDocPointer_t ParseFile(const char *filename, Int_t maxbuf=100000)
Parses content of file and tries to produce xml structures.
static void Delete()
Definition: BDT_Reg.h:89
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:35
double Double_t
Definition: RtypesCore.h:55
Describe directory structure in memory.
Definition: TDirectory.h:41
static RooMathCoreReg dummy
Double_t y[n]
Definition: legend1.C:17
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Definition: TGFrame.cxx:1099
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Definition: TGFrame.cxx:1146
static StatDialogBDTReg * fThis
Definition: BDT_Reg.h:98
Short_t GetSelector() const
TGHorizontalFrame * fButtons
Definition: BDT_Reg.h:71
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
Definition: TGFrame.cxx:1837
static const Int_t kBkgColorF
Definition: BDT.h:44
XMLNodePointer_t GetChild(XMLNodePointer_t xmlnode, Bool_t realnode=kTRUE)
returns first child of xml node
Definition: TXMLEngine.cxx:993
virtual void MapWindow()
Definition: TGFrame.h:267
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Definition: TString.h:567
XMLNodePointer_t DocGetRootElement(XMLDocPointer_t xmldoc)
returns root node of document
virtual TDirectory * GetDirectory(const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory using apath.
Definition: TDirectory.cxx:336
void DrawTree(Int_t itree)
Definition: BDT_Reg.cxx:289
#define NULL
Definition: Rtypes.h:82
virtual void SetTextColor(Color_t tcolor=1)
Definition: TAttText.h:57
virtual Double_t GetNumber() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition: TGFrame.h:391
static const Int_t kIntColorT
Definition: BDT.h:50
static const Int_t kBkgColorT
Definition: BDT.h:49
void DestroyCanvases()
Definition: tmvaglob.cxx:166
const Int_t n
Definition: legend1.C:16
Float_t GetResponse(void) const
Color_t GetCanvasColor() const
Definition: TStyle.h:198
virtual void SetBorderSize(Int_t bordersize=4)
Definition: TPave.h:82
void BDTReg_DeleteTBar(int i)
Definition: BDT_Reg.cxx:432
void BDT_Reg(const TString &fin="TMVAReg.root")
Definition: BDT_Reg.cxx:363
static std::vector< TControlBar * > BDTReg_Global__cbar
Definition: BDT_Reg.h:104
Float_t GetCutValue(void) const