115 class iterator :
public std::iterator<std::bidirectional_iterator_tag,
116 TObject, std::ptrdiff_t,
117 TObject **, TObject *&>{
349 TH2*
CreateTH2(
const char *name,
const char *title,
int nbinsx,
const double *xbins,
int nbinsy,
const double *ybins,
Option_t *
opt =
"");
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 =
"");
405 TH3*
CreateTH3(
const char *name,
const char *title,
int nbinsx,
const double *xbins,
int nbinsy,
const double *ybins,
int nbinsz,
const double *zbins,
Option_t *
opt =
"");
445 THnSparse*
CreateTHnSparse(
const char *name,
const char *title,
int ndim,
const int *nbins,
const double *min,
const double *max,
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 =
"");
578 void FillTH2(
const char *name,
const char *labelX,
const char *labelY,
double weight = 1.,
Option_t *
opt =
"");
590 void FillTH2(
const char *hname,
double *point,
double weight = 1.,
Option_t *
opt =
"");
604 void FillTH3(
const char *hname,
double x,
double y,
double z,
double weight = 1.,
Option_t *
opt =
"");
614 void FillTH3(
const char *hname,
const double *point,
double weight = 1.,
Option_t *
opt =
"");
635 void FillProfile(
const char *name,
double x,
double y,
double weight = 1.);
706 THashList *
FindGroup(
const char *dirname)
const;
793 int TestBuildSimpleHistograms();
812 int TestBuildGroupedHistograms();
831 int TestFillSimpleHistograms();
847 int TestFillGroupedHistograms();
Collection of simple test for the THistManager.
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.
void CreateTProfile(const char *name, const char *title, int nbinsX, double xmin, double xmax, Option_t *opt="")
Create a new TProfile within the container.
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.)
THMIDirection_t
Direction for the iteration.
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.