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") ?
87 Form(
" Variable: %s ",
Var[ic].Data())),
88 Form(
"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();
char * Form(const char *fmt,...)
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.
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.:
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 a suite of consecutive data records (TKey instances) with a well defined format.
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.
virtual const char * GetName() const
Returns name of object.
TString & ReplaceAll(const TString &s1, const TString &s2)
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)