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");
51 legend->
AddEntry(estimatorHistTrain,
"Training Sample",
"l");
52 legend->
AddEntry(estimatorHistTest,
"Test sample",
"l");
60 TString fname =
"plots/annconvergencetest";
78 cout <<
"Could not locate directory 'Method_MLP' in file " << fin << endl;
82 TIter keyIter(&titles);
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)
void imgconv(TCanvas *c, const TString &fname)
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
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.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void SetMinimum(Double_t minimum=-1111)
Short_t Min(Short_t a, Short_t b)
void SetMargin(Float_t margin)
TKey * NextKey(TIter &keyIter, TString className)
const char * Data() const
Float_t GetTopMargin() const
Float_t GetRightMargin() const
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.
char * Form(const char *fmt,...)
virtual const char * GetName() const
Returns name of object.
void plot_logo(Float_t v_scale=1.0, Float_t skew=1.0)
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
Describe directory structure in memory.
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
virtual TObject * ReadObj()
To read a TObject* from the file.
Short_t Max(Short_t a, Short_t b)
virtual void SetTitle(const char *title)
Change (i.e.
virtual void Update()
Update canvas pad buffers.
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 SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
void annconvergencetest(TDirectory *lhdir)
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...
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)