16 static int icanvas = -1;
20 100 + (icanvas)*40, 0 + (icanvas+1)*20, 600, 580*0.8 );
22 TH1* estimatorHistTrain = (
TH1*)lhdir->
Get(
"estimatorHistTrain" );
23 TH1* estimatorHistTest = (
TH1*)lhdir->
Get(
"estimatorHistTest" );
31 estimatorHistTrain->
SetMaximum( max + 0.1*(max - min) );
32 estimatorHistTrain->
SetMinimum( min - 0.1*(max - min) );
45 estimatorHistTrain->
Draw(
"hist");
46 estimatorHistTest ->
Draw(
"samehist");
49 TLegend *legend=
new TLegend( 1 -
c->GetRightMargin() - 0.45, 1-
c->GetTopMargin() - 0.20,
50 1 -
c->GetRightMargin() - 0.05, 1-
c->GetTopMargin() - 0.05 );
52 legend->
AddEntry(estimatorHistTrain,
"Training Sample",
"l");
53 legend->
AddEntry(estimatorHistTest,
"Test sample",
"l");
61 TString fname = dataset+
"/plots/annconvergencetest";
78 cout <<
"Could not locate directory 'Method_MLP' in file " << fin << endl;
82 TIter keyIter(&titles);
bool Bool_t
Boolean (0=false, 1=true) (bool)
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
double Double_t
Double 8 bytes.
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.
TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory") override
Find a directory named "apath".
Describe directory structure in memory.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
TH1 is the base class of all histogram classes in ROOT.
void SetTitle(const char *title) override
Change/set the title.
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)
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetMinimum(Double_t minimum=-1111)
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.
void Draw(Option_t *option="") override
Draw this legend with its current attributes.
void SetMargin(Float_t margin)
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
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)