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") ?
86 Form(
" Target: %s ", Var[ic].ReplaceAll(
"_target",
"").Data()) :
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 ),
93 #if ROOT_VERSION_CODE < ROOT_VERSION(5,19,0) 94 cbar->
AddButton(
"Close",
"CorrGui_DeleteTBar()",
"Close this control bar",
"button" );
107 gROOT->SaveContext();
void Show()
Show control bar.
virtual const char * GetName() const
Returns name of object.
void AddButton(TControlBarButton *button)
Add button.
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
virtual TList * GetListOfKeys() const
void SetTextColor(const char *colorName)
Sets text color for control bar buttons, e.g.
Int_t GetNumberOfInputVariables(TDirectory *dir)
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
TString & ReplaceAll(const TString &s1, const TString &s2)
TFile * OpenFile(const TString &fin)
virtual const char * GetClassName() const
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Book space in a file, create I/O buffers, to fill them, (un)compress them.
void CorrGui(TString dataset, TString fin="TMVA.root", TString dirName="InputVariables_Id", TString title="TMVA Input Variable", Bool_t isRegression=kFALSE)
void CorrGui_DeleteTBar()
void Initialize(Bool_t useTMVAStyle=kTRUE)
char * Form(const char *fmt,...)
The ROOT global object gROOT contains a list of all defined classes.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
virtual TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory named "apath".
Describe directory structure in memory.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
const char * Data() const