40 inline Int_t getSigColorF () {
return TColor::GetColor(
"#0000FF" );}
41 inline Int_t getBkgColorF () {
return TColor::GetColor(
"#FF0000" );}
42 inline Int_t getIntColorF () {
return TColor::GetColor(
"#33aa77" );}
45 inline Int_t getSigColorT () {
return 10;}
46 inline Int_t getBkgColorT () {
return 10;}
47 inline Int_t getIntColorT () {
return 10;}
53 RQ_OBJECT(
"StatDialogBDT")
57 StatDialogBDT(TString dataset, const TGWindow* p, TString wfile,
58 TString methName = "BDT", Int_t itree = 0 );
59 virtual ~StatDialogBDT() {
60 TMVA::DecisionTreeNode::fgIsTraining=
false;
64 if(gROOT->GetListOfCanvases()->FindObject(fCanvas))
69 void DrawTree(Int_t itree );
71 void RaiseDialog() {
if (fMain) { fMain->RaiseWindow(); fMain->Layout(); fMain->MapWindow(); } }
81 TGNumberEntry* fInput;
83 TGHorizontalFrame* fButtons;
84 TGTextButton* fDrawButton;
85 TGTextButton* fCloseButton;
87 void UpdateCanvases();
90 TMVA::DecisionTree* ReadTree( TString * &vars, Int_t itree );
91 void DrawNode( TMVA::DecisionTreeNode *n,
92 Double_t x, Double_t y, Double_t xscale, Double_t yscale, TString* vars );
103 static void Delete() {
if (fThis != 0) {
delete fThis; fThis = 0; } }
112 static StatDialogBDT* fThis;
117 extern std::vector<TControlBar*> BDT_Global__cbar;
120 void BDT(TString dataset,
const TString& fin =
"TMVA.root" );
121 void BDT_DeleteTBar(
int i);
122 void BDT(TString dataset, Int_t itree, TString wfile , TString methName =
"BDT", Bool_t useTMVAStyle = kTRUE ) ;