21 cout <<
"--- Open CorrGui for input file: " << fin <<
" and type: " << dirName << endl;
33 const char* buttonType =
"button";
41 cout <<
"Could not locate directory '" << dirName <<
"' in file: " << fin << endl;
48 cout <<
"found number of variables='" << names.end() - names.begin() << endl;
50 std::vector<TString>::const_iterator iter = names.begin();
51 for (; iter != names.end(); ++iter) {
53 Form(
"TMVA::correlationscattersMultiClass(\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",%i)",
59 #if ROOT_VERSION_CODE < ROOT_VERSION(5,19,0) 60 cbar->
AddButton(
"Close",
"CorrGui_DeleteTBar()",
"Close this control bar",
"button" );
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.
std::vector< TString > GetInputVariableNames(TDirectory *dir)
TString & ReplaceAll(const TString &s1, const TString &s2)
TFile * OpenFile(const TString &fin)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
void CorrGuiMultiClass(TString dataset, TString fin="TMVA.root", TString dirName="InputVariables_Id", TString title="TMVA Input Variable", Bool_t isRegression=kFALSE)
char * Form(const char *fmt,...)
virtual TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory named "apath".
void CorrGuiMultiClass_DeleteTBar()
Describe directory structure in memory.
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
const char * Data() const