24 cout <<
"--- No TestTree saved in ROOT file. Parallel coordinates will not be plotted" << endl;
36 if (leafName !=
"type" && leafName !=
"weight" && leafName !=
"boostweight" &&
37 leafName !=
"class" && leafName !=
"className" && leafName !=
"classID" &&
41 mvas.push_back( leafName );
44 vars.push_back( leafName );
50 cout <<
"--- Found: " << vars.size() <<
" variables" << endl;
51 cout <<
"--- Found: " <<
mvas.size() <<
" MVA(s)" << endl;
55 for (
UInt_t imva=0; imva<
mvas.size(); imva++) {
56 cout <<
"--- Plotting parallel coordinates for : " <<
mvas[imva] <<
" & input variables" << endl;
58 for (
Int_t itype=0; itype<2; itype++) {
62 for (
UInt_t ivar=0; ivar<vars.size(); ivar++) varstr += vars[ivar] +
":";
68 TString::Format(
"Parallel coordinate representation for %s and input variables (%s events)",
69 mvashort.
Data(),
type[itype].Data() ),
70 50*(itype), 50*(itype), 750, 500 );
91 width = 0.2*(maxrange - minrange);
95 case 1: {
x1 = 0.5*(maxrange + minrange -
width)*0.02;
x2 =
x1 +
width*0.02;
break; }
100 parrange->
SetLineColor( ivar == 0 ? 2 : ivar == 1 ? 5 : 6 );
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
R__EXTERN TStyle * gStyle
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory") override
Find a directory named "apath".
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
const char * GetName() const override
Returns name of object.
TObject * At(Int_t idx) const override
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
A TParallelCoordRange is a range used for parallel coordinates plots.
void SetLineColor(Color_t col) override
Set the selection line color.
void AddRange(TParallelCoordRange *range)
Add a range to the current selection on the axis.
Parallel Coordinates class.
void AddSelection(const char *title)
Add a selection.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
void Resize(Ssiz_t n)
Resize the string. Truncate or add blanks as necessary.
Ssiz_t Last(char c) const
Find last occurrence of a character c.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void SetOptTitle(Int_t tit=1)
A TTree represents a columnar dataset.
void Initialize(Bool_t useTMVAStyle=kTRUE)
TFile * OpenFile(const TString &fin)
Bool_t ExistMethodName(TString name, TDirectory *dir=nullptr)
void imgconv(TCanvas *c, const TString &fname)
void paracoor(TString dataset, TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)
void mvas(TString dataset, TString fin="TMVA.root", HistType htype=kMVAType, Bool_t useTMVAStyle=kTRUE)
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.