90 while (
auto p =
l()) {
92 *
fLogger << kFATAL <<
"Histogram pointer " << (
void *) p <<
" already exists in results storage" <<
Endl;
99 *
fLogger << kFATAL <<
"Alias " << as <<
" already exists in results storage" <<
Endl;
102 ((
TH1*)obj)->SetDirectory(
nullptr);
105 fHistAlias->insert(std::pair<TString, TObject*>(as,obj));
114 std::map<TString, TObject*>::iterator it =
fHistAlias->find(alias);
116 if (it !=
fHistAlias->end())
return it->second;
131 return (test !=
nullptr);
139 if (!out)
Log() <<kWARNING <<
"You have asked for histogram " << alias <<
" which does not seem to exist in *Results* .. better don't use it " <<
Endl;
148 if (!out)
Log() <<kWARNING <<
"You have asked for 2D histogram " << alias <<
" which does not seem to exist in *Results* .. better don't use it " <<
Endl;
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
static char * Format(const char *format, va_list ap)
Format a string in a circular formatting buffer (using a printf style format descriptor).
TH1 is the base class of all histogram classes in ROOT.
Service class for 2-D histogram classes.
Class that contains all the data information.
ostringstream derivative to redirect and format output
TGraph * GetGraph(const TString &alias) const
TList * fStorage
-> stores all the result-histograms
Bool_t DoesExist(const TString &alias) const
Returns true if there is an object stored in the result for a given alias, false otherwise.
void Store(TObject *obj, const char *alias=nullptr)
TH2 * GetHist2D(const TString &alias) const
TObject * GetObject(const TString &alias) const
Returns a stored object if it exists.
std::map< TString, TObject * > * fHistAlias
-> internal map for quick access to stored histograms
TH1 * GetHist(const TString &alias) const
virtual ~Results()
destructor
Types::ETreeType fTreeType
tree type for this result
const DataSetInfo * fDsi
-> a pointer to the datasetinfo-object
MsgLogger * fLogger
! message logger
void Delete(Option_t *option="") override
delete all stored histograms
Singleton class for Global types used by TMVA.
virtual const char * GetName() const
Returns name of object.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
TObject()
TObject constructor.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)