19 TMVAGlob::Initialize( useTMVAStyle );
27 cout <<
"Called macro \"correlationscattersMultiClass\" for variable: \"" << var
28 <<
"\", transformation type \"" << dirName_
29 <<
"\" (extension: \"" <<
extension <<
"\")" << endl;
34 TString dirName = dirName_ +
"/CorrelationPlots";
39 cout <<
"ERROR: no such directory: \"InputVariables\"" << endl;
42 Int_t noVars = TMVAGlob::GetNumberOfInputVariablesMultiClass( vardir );
46 cout <<
"No information about " <<
extension <<
" available in " << fin << endl;
52 Int_t noPlots = noVars - 1;
54 cout <<
"noPlots: " << noPlots <<
" --> noVars: " << noVars << endl;
55 if (noVars !=
Int_t(noVars)) {
56 cout <<
"*** Warning: problem in inferred number of variables ... not an integer *** " << endl;
67 xPad = 1; yPad = 1;
width = 400; height =
width;
break;
69 xPad = 2; yPad = 1;
width = 700; height = 0.55*
width;
break;
71 xPad = 3; yPad = 1;
width = 800; height = 0.4*
width;
break;
73 xPad = 2; yPad = 2;
width = 600; height =
width;
break;
75 xPad = 3; yPad = 2;
width = 800; height = 0.55*
width;
break;
77 Int_t noPadPerCanv = xPad * yPad ;
80 Int_t countCanvas = 0;
84 std::vector<TString> classnames = TMVAGlob::GetClassNames(dir);
85 UInt_t ncls = classnames.end()-classnames.begin();
87 for (
UInt_t itype = 0; itype < ncls; itype++) {
95 while ( (key = (
TKey*)next()) ) {
116 if (countPad%noPadPerCanv==0) {
120 Form(
"Correlation profiles for '%s'-transformed variables (%s)",
121 ext.
Data(), classnames[itype].Data()),
122 countCanvas*50+200, countCanvas*20,
width, height );
128 canv->
cd(countPad++%noPadPerCanv+1);
135 cout <<
"ERROR!!! couldn't find profile plot for" << hname << endl;
140 TMVAGlob::SetSignalAndBackgroundStyle( scat, prof );
143 TMVAGlob::SetFrameStyle( scat, 1.2 );
159 prof->
Draw(
"samee1");
161 scat->
Draw(
"sameaxis");
164 if (countPad%noPadPerCanv==0) {
168 TMVAGlob::plot_logo();
169 TMVAGlob::imgconv( canv, fname );
172 if (countPad%noPadPerCanv!=0) {
176 TMVAGlob::plot_logo();
177 TMVAGlob::imgconv( canv, fname );
include TDocParser_001 C image html pict1_TDocParser_001 png width
char * Form(const char *fmt,...)
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
void Update() override
Update canvas pad buffers.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Bool_t InheritsFrom(const char *cl) const
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.
Describe directory structure in memory.
virtual TList * GetListOfKeys() const
virtual Bool_t cd(const char *path=nullptr)
Change current directory to "this" directory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
TH1 is the base class of all histogram classes in ROOT.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void Scale(Double_t c1=1, Option_t *option="")
Multiply this histogram by a constant c1.
virtual Double_t GetSumOfWeights() const
Return the sum of weights excluding under/overflows.
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.
virtual const char * GetName() const
Returns name of object.
virtual void Delete(Option_t *option="")
Delete this object.
void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
Automatic pad generation by division.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
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)