47 : fTreeType(
Types::kTraining),
49 fStorage( new
TList() ),
73 while (
void* p = (
void*)
l()) {
75 *fLogger <<
kFATAL <<
"Histogram pointer " << p <<
" already exists in results storage" <<
Endl;
80 if (fHistAlias->find(
as) != fHistAlias->end()) {
82 *fLogger <<
kFATAL <<
"Alias " <<
as <<
" already exists in results storage" <<
Endl;
85 ((
TH1*)obj)->SetDirectory(0);
88 fHistAlias->insert(std::pair<TString, TObject*>(
as,obj));
95 std::map<TString, TObject*>::iterator it = fHistAlias->find(alias);
97 if (it != fHistAlias->end())
return it->second;
116 if (!out)
Log() <<
kWARNING <<
"You have asked for histogram " << alias <<
" which does not seem to exist in *Results* .. better don't use it " <<
Endl;
125 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;
MsgLogger & Endl(MsgLogger &ml)
TH1 * GetHist(const TString &alias) const
Results(const DataSetInfo *dsi, TString resultsName)
constructor
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual ~Results()
destructor
TH2 * GetHist2D(const TString &alias) const
TObject * GetObject(const TString &alias) const
std::vector< std::vector< double > > Data
void Delete()
delete all stored histograms
Service class for 2-Dim histogram classes.
Bool_t DoesExist(const TString &alias) const
TList * fStorage
a pointer to the datasetinfo-object
char * Form(const char *fmt,...)
TGraph * GetGraph(const TString &alias) const
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
A Graph is a graphics object made of two arrays X and Y with npoints each.
void Store(TObject *obj, const char *alias=0)