16 static int icanvas = -1;
19 100 + (icanvas)*40, 0 + (icanvas+1)*20, 600, 580*0.8 );
21 TH1* estimatorHistTrain = (
TH1*)lhdir->
Get(
"estimatorHistTrain" );
22 TH1* estimatorHistTest = (
TH1*)lhdir->
Get(
"estimatorHistTest" );
30 estimatorHistTrain->
SetMaximum( max + 0.1*(max - min) );
31 estimatorHistTrain->
SetMinimum( min - 0.1*(max - min) );
44 estimatorHistTrain->
Draw(
"hist");
45 estimatorHistTest ->
Draw(
"samehist");
48 TLegend *legend=
new TLegend( 1 -
c->GetRightMargin() - 0.45, 1-
c->GetTopMargin() - 0.20,
49 1 -
c->GetRightMargin() - 0.05, 1-
c->GetTopMargin() - 0.05 );
51 legend->
AddEntry(estimatorHistTrain,
"Training Sample",
"l");
52 legend->
AddEntry(estimatorHistTest,
"Test sample",
"l");
57 TMVAGlob::plot_logo();
60 TString fname = dataset+
"/plots/annconvergencetest";
61 TMVAGlob::imgconv(
c, fname );
67 TMVAGlob::Initialize( useTMVAStyle );
75 UInt_t ninst = TMVAGlob::GetListOfTitles(metmlp,titles,
file->GetDirectory(dataset.
Data()));
77 cout <<
"Could not locate directory 'Method_MLP' in file " << fin << endl;
81 TIter keyIter(&titles);
84 while ((key = TMVAGlob::NextKey(keyIter,
"TDirectory"))) {
char * Form(const char *fmt,...)
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
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.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
TH1 is the base class of all histogram classes in ROOT.
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
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 SetMaximum(Double_t maximum=-1111)
virtual void SetMinimum(Double_t minimum=-1111)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual Double_t GetMinimum(Double_t minval=-FLT_MAX) const
Return minimum value larger than minval of bins in the range, unless the value has been overridden by...
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.
This class displays a legend box (TPaveText) containing several legend entries.
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
void SetMargin(Float_t margin)
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual const char * GetName() const
Returns name of object.
const char * Data() const
void annconvergencetest(TString dataset, TDirectory *lhdir)
Short_t Max(Short_t a, Short_t b)
Short_t Min(Short_t a, Short_t b)