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++){
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");
virtual const char * GetName() const
Returns name of object.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual Double_t GetMaximum(Double_t maxval=FLT_MAX) const
Return maximum value smaller than maxval of bins in the range, unless the value has been overridden b...
void imgconv(TCanvas *c, const TString &fname)
virtual TList * GetListOfKeys() const
virtual void SetMaximum(Double_t maximum=-1111)
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
void GetObject(const char *namecycle, T *&ptr)
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
TFile * OpenFile(const TString &fin)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual void SetMinimum(Double_t minimum=-1111)
1-D histogram with a float per channel (see TH1 documentation)}
TKey * NextKey(TIter &keyIter, TString className)
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
void BDTControlPlots(TString dataset, TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
void Initialize(Bool_t useTMVAStyle=kTRUE)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
char * Form(const char *fmt,...)
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory named "apath".
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
Describe directory structure in memory.
void bdtcontrolplots(TString dataset, TDirectory *)
Mother of all ROOT objects.
virtual const char * GetTitle() const
Returns title of object.
virtual TObject * ReadObj()
To read a TObject* from the file.
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
const char * Data() const
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)