22 cout <<
"--- Open CorrGui for input file: " << fin <<
" and type: " << dirName << endl;
35 const char* buttonType =
"button";
44 cout <<
"Could not locate directory '" << dirName <<
"' in file: " << fin << endl;
45 cout <<
" Try again .. " <<endl;
50 cout <<
"Nope ..Could not locate directory '" << dirName <<
"' in file: " << fin << endl;
58 cout <<
"found number of variables='" << noVar<< endl;
59 std::vector<TString>
Var(noVar);
65 while ( (key = (
TKey*)next()) ) {
82 cout <<
"found histos for "<< it <<
" variables='" << endl;
84 for (
Int_t ic=0;ic<it;ic++) {
85 cbar->
AddButton( (Var[ic].Contains(
"_target") ?
88 TString::
Format(
"TMVA::correlationscatters(\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",%i)",
dataset.Data(),fin.Data(),
Var[ic].Data(), dirName.Data(), title.Data(), (
Int_t)isRegression ),
101 gROOT->SaveContext();
static char * Format(const char *format, va_list ap)
Format a string in a circular formatting buffer (using a printf style format descriptor).
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.
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
void Show()
Show control bar.
void AddButton(TControlBarButton *button)
Add button.
void SetTextColor(const char *colorName)
Sets text color for control bar buttons, e.g.:
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 TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual Bool_t cd()
Change current directory to "this" directory.
virtual TList * GetListOfKeys() const
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
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
virtual TObject * ReadObj()
To read a TObject* from the file.
const char * GetName() const override
Returns name of object.
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.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
double Var(const RVec< T > &v)
Get the variance of the elements of an RVec.
void Initialize(Bool_t useTMVAStyle=kTRUE)
Int_t GetNumberOfInputVariables(TDirectory *dir)
TFile * OpenFile(const TString &fin)
void CorrGui_DeleteTBar()
void CorrGui(TString dataset, TString fin="TMVA.root", TString dirName="InputVariables_Id", TString title="TMVA Input Variable", Bool_t isRegression=kFALSE)