115 class iterator :
public std::iterator<std::bidirectional_iterator_tag,
116 TObject, std::ptrdiff_t,
117 TObject **, TObject *&>{
389 TH3*
CreateTH3(
const char *name,
const char *
title,
int nbinsx,
double xmin,
double xmax,
int nbinsy,
double ymin,
double ymax,
int nbinsz,
double zmin,
double zmax,
Option_t *opt =
"");
539 void FillTH1(
const char *hname,
double x,
double weight = 1.,
Option_t *opt =
"");
552 void FillTH1(
const char *name,
const char *label,
double weight = 1.,
Option_t *opt =
"");
565 void FillTH2(
const char *hname,
double x,
double y,
double weight = 1.,
Option_t *opt =
"");
577 void FillTH2(
const char *hname,
double *point,
double weight = 1.,
Option_t *opt =
"");
591 void FillTH3(
const char *hname,
double x,
double y,
double z,
double weight = 1.,
Option_t *opt =
"");
601 void FillTH3(
const char *hname,
const double *point,
double weight = 1.,
Option_t *opt =
"");
622 void FillProfile(
const char *name,
double x,
double y,
double weight = 1.);
629 inline iterator
begin()
const;
636 inline iterator
end()
const;
644 inline iterator
rbegin()
const;
652 inline iterator
rend()
const;
693 THashList *
FindGroup(
const char *dirname)
const;
738 namespace TestTHistManager {
Int_t fNext
Next position in the histmanager.
iterator & operator=(const iterator &rhs)
THashList * CreateHistoGroup(const char *groupname)
Create a new group of histograms within a parent group.
bool fIsOwner
Set the ownership.
THistManager()
Default constructor.
THashList * FindGroup(const char *dirname) const
Find histogram group.
void FillTH2(const char *hname, double x, double y, double weight=1., Option_t *opt="")
Fill a 2D histogram within the container.
void FillTH3(const char *hname, double x, double y, double z, double weight=1., Option_t *opt="")
Fill a 3D histogram within the container.
const THistManager * fkArray
Underlying histmanager to iterate over.
void SetObject(TObject *const o, const char *group="/")
Set a new group into the container into the parent group.
Interface for binnings used by the histogram handler.
THMIDirection_t fDirection
Direction of the iterator.
Bool_t operator!=(const iterator &aIter) const
Comparison operator for unequalness.
void FillTHnSparse(const char *name, const double *x, double weight=1., Option_t *opt="")
~THistManager()
Destructor.
TH2 * CreateTH2(const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, Option_t *opt="")
Create a new TH2 within the container.
TObject * FindObject(const char *name) const
Find an object inside the container.
int TestBuildSimpleHistograms()
void CreateTProfile(const char *name, const char *title, int nbinsX, double xmin, double xmax, Option_t *opt="")
Create a new TProfile within the container.
THistManager & operator=(const THistManager &)
THashList * GetListOfHistograms() const
Get the list of histograms.
virtual ~THistManagerTestSuite()
TH1 * CreateTH1(const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
Create a new TH1 within the container.
void FillProfile(const char *name, double x, double y, double weight=1.)
int TestBuildGroupedHistograms()
THMIDirection_t
Direction for the iteration.
int TestFillGroupedHistograms()
stl-iterator for the histogram manager
void FillTH1(const char *hname, double x, double weight=1., Option_t *opt="")
Fill a 1D histogram within the container.
iterator rbegin() const
Create backward iterator starting behind the end of the container.
iterator & operator++()
Prefix increment operator.
int TestRunBuildGrouped()
iterator begin() const
Create forward iterator starting at the beginning of the container.
TString basename(const TString &path) const
Extracting the basename from a given histogram path.
Collection of tests for the THistManager.
iterator & operator--()
Prefix decrement operator.
TString histname(const TString &path) const
Extracting the histogram name from a given histogram path.
TObject * operator*() const
Dereferncing operator.
iterator end() const
Create forward iterator starting at the end of the container.
Container class for histograms.
iterator rend() const
Create backward iterator starting before the beginning of the container.
THnSparse * CreateTHnSparse(const char *name, const char *title, int ndim, const int *nbins, const double *min, const double *max, Option_t *opt="")
Create a new THnSparse within the container.
THashList * fHistos
List of histograms.
TH3 * CreateTH3(const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, int nbinsz, double zmin, double zmax, Option_t *opt="")
Create a new TH2 within the container.
Int_t fCurrentPos
Current position of the iterator in the histmanager.
int TestFillSimpleHistograms()