27 Int_t ncls = (isRegression ? 1 : 2 );
28 TString hName[2] = {
"CorrelationMatrixS",
"CorrelationMatrixB" };
29 if (isRegression) hName[0]=
"CorrelationMatrix";
31 for (
Int_t ic=0; ic<ncls; ic++) {
33 TH2* h2 =
dynamic_cast<TH2*
> (
file->GetDirectory(dataset.
Data())->Get( hName[ic] ));
35 cout <<
"Did not find histogram " << hName[ic] <<
" in " << fin << endl;
40 Form(
"Correlations between MVA input variables (%s)",
41 (isRegression ?
"" : (ic==0 ?
"signal" :
"background"))),
45 if (
gConfig().fVariablePlotting.fUsePaperStyle) newMargin2 = 0.13;
49 c->SetLeftMargin ( newMargin2 );
50 c->SetBottomMargin( newMargin2 );
51 c->SetRightMargin ( newMargin1 );
52 c->SetTopMargin ( newMargin1 );
77 TText* t =
new TText( 0.53, 0.88,
"Linear correlation coefficients in %" );
85 TString fname = dataset+
"/plots/";
include TDocParser_001 C image html pict1_TDocParser_001 png width
char * Form(const char *fmt,...)
R__EXTERN TStyle * gStyle
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
virtual void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis' labels.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Set option(s) to draw axis with labels.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
TList * GetListOfFunctions() const
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Service class for 2-Dim histogram classes.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
The palette painting class.
virtual void SetLabelSize(Float_t labelsize)
Double_t GetX1NDC() const
virtual void SetX1NDC(Double_t x1)
const char * Data() const
void SetPaintTextFormat(const char *format="g")
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
Base class for several text objects.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
void Initialize(Bool_t useTMVAStyle=kTRUE)
TFile * OpenFile(const TString &fin)
void imgconv(TCanvas *c, const TString &fname)
void correlations(TString dataset, TString fin="TMVA.root", Bool_t isRegression=kFALSE, Bool_t greyScale=kFALSE, Bool_t useTMVAStyle=kTRUE)