53 : fTreeType(
Types::kTraining),
55 fStorage( new
TList() ),
90 while (
void* p = (
void*)
l()) {
92 *
fLogger << kFATAL <<
"Histogram pointer " << p <<
" already exists in results storage" <<
Endl;
99 *
fLogger << kFATAL <<
"Alias " <<
as <<
" already exists in results storage" <<
Endl;
102 ((
TH1*)obj)->SetDirectory(0);
105 fHistAlias->insert(std::pair<TString, TObject*>(
as,obj));
112 std::map<TString, TObject*>::iterator it =
fHistAlias->find(alias);
114 if (it !=
fHistAlias->end())
return it->second;
133 if (!out)
Log() <<kWARNING <<
"You have asked for histogram " << alias <<
" which does not seem to exist in *Results* .. better don't use it " <<
Endl;
142 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;
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
MsgLogger & Endl(MsgLogger &ml)
Singleton class for Global types used by TMVA.
virtual void Delete(Option_t *option="")
delete all stored histograms
std::map< TString, TObject * > * fHistAlias
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual ~Results()
destructor
std::vector< std::vector< double > > Data
Bool_t DoesExist(const TString &alias) const
Class that contains all the data information.
Service class for 2-Dim histogram classes.
TGraph * GetGraph(const TString &alias) const
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
char * Form(const char *fmt,...)
TH1 * GetHist(const TString &alias) const
ostringstream derivative to redirect and format output
Mother of all ROOT objects.
TObject * GetObject(const TString &alias) const
Abstract ClassifierFactory template that handles arbitrary types.
TH2 * GetHist2D(const TString &alias) const
Types::ETreeType fTreeType
virtual void Add(TObject *obj)
A Graph is a graphics object made of two arrays X and Y with npoints each.
void Store(TObject *obj, const char *alias=0)
virtual const char * GetName() const
Returns name of object.
MsgLogger & Log() const
message logger