22 extension.ReplaceAll(
"InputVariables",
"" );
27 cout <<
"Called macro \"correlationscattersMultiClass\" for variable: \"" << var
28 <<
"\", transformation type \"" <<
dirName_
29 <<
"\" (extension: \"" <<
extension <<
"\")" << endl;
37 dataset.Data())->Get(
"InputVariables_Id" );
39 cout <<
"ERROR: no such directory: \"InputVariables\"" << endl;
46 cout <<
"No information about " <<
extension <<
" available in " <<
fin << endl;
54 cout <<
"noPlots: " <<
noPlots <<
" --> noVars: " <<
noVars << endl;
56 cout <<
"*** Warning: problem in inferred number of variables ... not an integer *** " << endl;
95 while ( (key = (
TKey*)next()) ) {
120 TString::Format(
"Correlation profiles for '%s'-transformed variables (%s)",
132 bgname.ReplaceAll(
"scat_",
"prof_");
135 cout <<
"ERROR!!! couldn't find profile plot for" <<
hname << endl;
146 scat->Scale( 1.0/
scat->GetSumOfWeights() );
151 scat->SetMarkerColor( 4);
153 prof->SetMarkerColor(
gConfig().fVariablePlotting.fUsePaperStyle ? 1 : 2 );
154 prof->SetMarkerSize( 0.2 );
155 prof->SetLineColor(
gConfig().fVariablePlotting.fUsePaperStyle ? 1 : 2 );
156 prof->SetLineWidth(
gConfig().fVariablePlotting.fUsePaperStyle ? 2 : 1 );
157 prof->SetFillStyle( 3002 );
158 prof->SetFillColor( 46 );
159 prof->Draw(
"samee1");
161 scat->Draw(
"sameaxis");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
const_iterator begin() const
const_iterator end() const
TClass instances represent classes, structs and namespaces in the ROOT type system.
Bool_t InheritsFrom(const char *cl) const override
Return kTRUE if this class inherits from a class with name "classname".
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
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 Bool_t cd()
Change current directory to "this" directory.
virtual TList * GetListOfKeys() const
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.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual const char * GetClassName() const
Short_t GetCycle() const
Return cycle number associated to this key.
virtual TObject * ReadObj()
To read a TObject* from the file.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void Initialize(Bool_t useTMVAStyle=kTRUE)
Int_t GetNumberOfInputVariablesMultiClass(TDirectory *dir)
void plot_logo(Float_t v_scale=1.0, Float_t skew=1.0)
void SetSignalAndBackgroundStyle(TH1 *sig, TH1 *bkg, TH1 *all=nullptr)
TFile * OpenFile(const TString &fin)
void SetFrameStyle(TH1 *frame, Float_t scale=1.0)
std::vector< TString > GetClassNames(TDirectory *dir)
void imgconv(TCanvas *c, const TString &fname)
void correlationscattersMultiClass(TString dataset, TString fin="TMVA.root", TString var="var3", TString dirName_="InputVariables_Id", TString title="TMVA Input Variable", Bool_t isRegression=kFALSE, Bool_t useTMVAStyle=kTRUE)