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");
60 TString fname = dataset+
"/plots/annconvergencetest";
77 cout <<
"Could not locate directory 'Method_MLP' in file " << fin << endl;
81 TIter keyIter(&titles);
char * Form(const char *fmt,...)
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
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.
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
static constexpr double m2
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)
void Initialize(Bool_t useTMVAStyle=kTRUE)
TKey * NextKey(TIter &keyIter, TString className)
void plot_logo(Float_t v_scale=1.0, Float_t skew=1.0)
TFile * OpenFile(const TString &fin)
void imgconv(TCanvas *c, const TString &fname)
void annconvergencetest(TString dataset, TDirectory *lhdir)
Short_t Max(Short_t a, Short_t b)
Short_t Min(Short_t a, Short_t b)