22 cout <<
"--- Open CorrGui for input file: " << fin <<
" and type: " << dirName << endl;
35 const char* buttonType =
"button";
40 if (!file || !file->
IsOpen()) {
41 file =
new TFile(fin);
47 cout <<
"Could not locate directory '" << dirName <<
"' in file: " << fin << endl;
48 cout <<
" Try again .. " <<endl;
53 cout <<
"Nope ..Could not locate directory '" << dirName <<
"' in file: " << fin << endl;
61 cout <<
"found number of variables='" << noVar<< endl;
62 std::vector<TString> Var(noVar);
85 cout <<
"found histos for "<< it <<
" variables='" << endl;
87 for (
Int_t ic=0;ic<it;ic++) {
88 cbar->
AddButton( (Var[ic].Contains(
"_target") ?
90 Form(
" Variable: %s ", Var[ic].
Data())),
91 Form(
"TMVA::correlationscatters(\"%s\",\"%s\",\"%s\",\"%s\",%i)",
97 #if ROOT_VERSION_CODE < ROOT_VERSION(5,19,0)
98 cbar->
AddButton(
"Close",
"CorrGui_DeleteTBar()",
"Close this control bar",
"button" );
111 gROOT->SaveContext();
void Show()
Show control bar.
void AddButton(TControlBarButton *button)
Add button.
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
void SetTextColor(const char *colorName)
Sets text color for control bar buttons, e.g.
virtual TList * GetListOfKeys() const
Int_t GetNumberOfInputVariables(TDirectory *dir)
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
TString & ReplaceAll(const TString &s1, const TString &s2)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual const char * GetClassName() const
const char * Data() const
virtual Bool_t IsOpen() const
Returns kTRUE in case file is open and kFALSE if file is not open.
std::vector< std::vector< double > > Data
Book space in a file, create I/O buffers, to fill them, (un)compress them.
void CorrGui(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)
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
char * Form(const char *fmt,...)
virtual const char * GetName() const
Returns name of object.
The ROOT global object gROOT contains a list of all defined classes.
Describe directory structure in memory.
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".