26 cout <<
"Could not locate directory 'Method_Boost' in file " << fin << endl;
30 TIter keyIter(&titles);
41 const Int_t nPlots = 6;
47 sprintf( cn,
"cv_%s", titName.
Data() );
55 TString hname[nPlots]={
"BoostWeight",
"MethodWeight",
"ErrFraction",
"SoverBtotal",
"SeparationGain",
"SeparationGain"};
60 for (
Int_t i=0; i<nPlots; i++){
77 TString hname_roctest[2] ={
"ROCIntegral_test",
"ROCIntegralBoosted_test"};
78 TString hname_roctrain[2]={
"ROCIntegral_train",
"ROCIntegralBoosted_train"};
79 TString htitle[2] = {
"ROC integral of single classifier",
"ROC integral of boosted method"};
81 for (
Int_t i=0; i<2; i++){
84 TH1 *htest = (
TH1*) boostdir->
Get(hname_roctest[i]);
85 TH1 *htrain = (
TH1*) boostdir->
Get(hname_roctrain[i]);
89 Bool_t histFilled = (htest && htrain);
91 if (!htest) htest =
new TH1F(
"htest",
"",2,0,1);
92 if (!htrain) htrain =
new TH1F(
"htrain",
"",2,0,1);
110 htrain->
Draw(
"same");
118 legend->
AddEntry(htrain,
TString(
"training sample (orig. weights)"),
"L");
122 legend->
Draw(
"same");
128 t->
DrawTextNDC( .2, 0.6,
"Use MethodBoost option: \"Boost_DetailedMonitoring\" " );
129 t->
DrawTextNDC( .2, 0.51,
"to fill this histograms" );
virtual void SetLineWidth(Width_t lwidth)
void BoostControlPlots(TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)
void imgconv(TCanvas *c, const TString &fname)
virtual void SetMaximum(Double_t maximum=-1111)
This class displays a legend box (TPaveText) containing several legend entries.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
TFile * OpenFile(const TString &fin)
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
virtual void SetMinimum(Double_t minimum=-1111)
1-D histogram with a float per channel (see TH1 documentation)}
void SetMargin(Float_t margin)
virtual void SetFillStyle(Style_t fstyle)
TKey * NextKey(TIter &keyIter, TString className)
const char * Data() const
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
Float_t GetBottomMargin() const
virtual TText * DrawTextNDC(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates in NDC.
virtual void SetMarkerColor(Color_t mcolor=1)
Base class for several text objects.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual void SetLineColor(Color_t lcolor)
void Initialize(Bool_t useTMVAStyle=kTRUE)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
The most important graphics class in the ROOT system.
char * Form(const char *fmt,...)
virtual const char * GetName() const
Returns name of object.
virtual void SetMarkerStyle(Style_t mstyle=1)
virtual void SetMarkerSize(Size_t msize=1)
Float_t GetLeftMargin() const
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
Describe directory structure in memory.
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual void SetTextColor(Color_t tcolor=1)
void boostcontrolplots(TDirectory *boostdir)
virtual void SetTitle(const char *title)
Change (i.e.
virtual void SetTextSize(Float_t tsize=1)
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...
virtual void SetBorderSize(Int_t bordersize=4)
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)