26 Int_t ncls = (isRegression ? 1 : 2 );
27 TString hName[2] = {
"CorrelationMatrixS",
"CorrelationMatrixB" };
28 if (isRegression) hName[0]=
"CorrelationMatrix";
30 for (
Int_t ic=0; ic<ncls; ic++) {
32 TH2* h2 =
dynamic_cast<TH2*
> (
file->GetDirectory(dataset.
Data())->Get( hName[ic] ));
34 cout <<
"Did not find histogram " << hName[ic] <<
" in " << fin << endl;
40 (isRegression ?
"" : (ic==0 ?
"signal" :
"background"))),
44 if (
gConfig().fVariablePlotting.fUsePaperStyle) newMargin2 = 0.13;
48 c->SetLeftMargin ( newMargin2 );
49 c->SetBottomMargin( newMargin2 );
50 c->SetRightMargin ( newMargin1 );
51 c->SetTopMargin ( newMargin1 );
76 TText* t =
new TText( 0.53, 0.88,
"Linear correlation coefficients in %" );
84 TString fname = dataset+
"/plots/";
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 composed of a header, followed by consecutive data records (TKey instances) with a wel...
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")
Sort bins with labels or set option(s) to draw axis with labels.
void Draw(Option_t *option="") override
Draw this histogram with options.
TList * GetListOfFunctions() const
Service class for 2-D histogram classes.
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
void SetGrid(Int_t valuex=1, Int_t valuey=1) override
The palette painting class.
virtual void SetLabelSize(Float_t size=0.035)
Double_t GetX1NDC() const
virtual void SetX1NDC(Double_t x1)
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.
void SetPaintTextFormat(const char *format="g")
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, 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)