22 cout <<
"--- Open CorrGui for input file: " <<
fin <<
" and type: " <<
dirName << endl;
29 extension.ReplaceAll(
"InputVariables",
"" );
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()) ) {
73 if (
hname.Contains(
"__Signal") || (
hname.Contains(
"__Regression") && !
hname.Contains(
"__Regression_target"))) {
75 hname.ReplaceAll(
"__Signal",
"");
76 hname.ReplaceAll(
"__Regression",
"");
82 cout <<
"found histos for "<< it <<
" variables='" << endl;
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 ),
93 cbar->SetTextColor(
"blue");
101 gROOT->SaveContext();
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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...
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.
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.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
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)