21 cout <<
"Problems with input file, tried to open " << fin <<
" but somehow did not succeed .." << endl;
27 TString methodName =
"Method_BDT";
30 cout <<
"Could not locate directory 'Method_BDT' in file " << fin << endl;
34 TIter keyIter(&titles);
45 const Int_t nPlots = 6;
49 char cn[100], cn2[100];
51 sprintf( cn,
"cv_%s", titName.
Data() );
59 TString hname[nPlots]={
"BoostMonitor",
"BoostWeight",
"BoostWeightVsTree",
"ErrFractHist",
"NodesBeforePruning",titName+
"_FOMvsIterFrame"};
63 for (
Int_t i=0; i<nPlots; i++){
69 h->SetMaximum(
h->GetMaximum()*1.3);
71 h->SetMarkerColor(color);
72 h->SetMarkerSize( 0.7 );
73 h->SetMarkerStyle( 24 );
75 h->SetLineColor(color);
76 if(hname[i]==
"NodesBeforePruning")
h->SetTitle(
"Nodes before/after pruning");
78 if(hname[i]==
"NodesBeforePruning"){
79 TH1 *h2 = (
TH1*) bdtdir->
Get(
"NodesAfterPruning");
84 if(hname[i]==
"BoostMonitor"){
87 BoostMonitorIsDone =
kTRUE;
89 if(hname[i]==titName+
"_FOMvsIterFrame"){
99 if (BoostMonitorIsDone){
100 sprintf( cn2,
"cv2_%s", titName.
Data() );
109 while ( (key = (
TKey*)keys.Next()) && ipad < 26) {
114 if (hhname_.Contains(
"BoostWeightsInTreeB")){
118 hhname_.ReplaceAll(
"TreeB",
"TreeS");
132 TString fname = dataset+
Form(
"/plots/%s_ControlPlots", titName.
Data() );
136 fname = dataset+
Form(
"/plots/%s_ControlPlots2", titName.
Data() );
141 if (BoostMonitorIsDone){
142 sprintf( cn2,
"cv3_%s", titName.
Data() );
151 while ( (key = (
TKey*)keys.Next()) && ipad < 26) {
156 if (hname_.Contains(
"SigVar0AtTree")){
160 hname_.ReplaceAll(
"Sig",
"Bkg");
include TDocParser_001 C image html pict1_TDocParser_001 png width
char * Form(const char *fmt,...)
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Describe directory structure in memory.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual TList * GetListOfKeys() const
void GetObject(const char *namecycle, T *&ptr)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
A Graph is a graphics object made of two arrays X and Y with npoints each.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)
void Initialize(Bool_t useTMVAStyle=kTRUE)
TKey * NextKey(TIter &keyIter, TString className)
TFile * OpenFile(const TString &fin)
void imgconv(TCanvas *c, const TString &fname)
void bdtcontrolplots(TString dataset, TDirectory *)
void BDTControlPlots(TString dataset, TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)