#include <SetOfH2F.h>
Inheritance diagram for SetOfH2F:
A SetOfH2F contains a set of TH2F histograms; these histograms are (normally) all created by the constructor. The histograms share the same axis binning, and their names and titles are created using a BinningFun object that at the same time defines the number of histograms.
The histogram names will a concatenation of the name given by the user, and the bin name given by the BinningFun. The same applies to the title.
A SetOfH2F is a convenient tool to create a large set of histograms at the same time.
Functions exist to add, multiply, and divide sets of histograms. These operations are performed on pairs of corresponding histograms, if possible.
Author: Benno List
Changelog:
Definition at line 49 of file SetOfH2F.h.
Public Member Functions | |
SetOfH2F (const char *name_, const char *title_, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for an empty set histograms. | |
SetOfH2F (const char *name_, const char *title_, Int_t nbinsx, Axis_t xlow, Axis_t xup, Int_t nbinsy, Axis_t ylow, Axis_t yup, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms with equidistant x and y binnings. | |
SetOfH2F (const char *name_, const char *title_, Int_t nbinsx, const Double_t *xbins, Int_t nbinsy, Axis_t ylow, Axis_t yup, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms with non-equidistant x and equidistant y binnings. | |
SetOfH2F (const char *name_, const char *title_, Int_t nbinsx, Axis_t xlow, Axis_t xup, Int_t nbinsy, const Double_t *ybins, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms with equidistant x and non-equidistant y binnings. | |
SetOfH2F (const char *name_, const char *title_, Int_t nbinsx, const Double_t *xbins, Int_t nbinsy, const Double_t *ybins, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms with non-equidistant x and y binnings taking doubles. | |
SetOfH2F (const char *name_, const char *title_, Int_t nbinsx, const Float_t *xbins, Int_t nbinsy, const Float_t *ybins, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms with non-equidistant x and y binnings taking floats. | |
SetOfH2F (const char *name_, const char *title_, const Binning &xbinning, const Binning &ybinning, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms, taking 2 Binning objects. | |
virtual | ~SetOfH2F () |
Destructor. | |
RegH2F * | getHisto (IndexType i) |
Returns histogram number i (corresponding to bin i of the BinningFun). | |
void | initHisto (IndexType i) |
Books and registers one histogram with number i. | |
Protected Member Functions | |
void | initialize (ROList &hhl) |
Protected Attributes | |
Binning | xaxisbinning |
The x axis binning. | |
Binning | yaxisbinning |
The y axis binning. | |
Private Member Functions | |
SetOfH2F (const SetOfH2F &source) | |
Private copy constructor, left unimplemented: No copying! | |
SetOfH2F & | operator= (const SetOfH2F &source) |
Private assignment operator, left unimplemented: No assignment! |
|
Constructor for an empty set histograms.
Definition at line 28 of file SetOfH2F.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms with equidistant x and y binnings.
Definition at line 37 of file SetOfH2F.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant x and equidistant y binnings.
Definition at line 54 of file SetOfH2F.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms with equidistant x and non-equidistant y binnings.
Definition at line 70 of file SetOfH2F.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant x and y binnings taking doubles.
Definition at line 86 of file SetOfH2F.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant x and y binnings taking floats.
Definition at line 101 of file SetOfH2F.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms, taking 2 Binning objects.
Definition at line 116 of file SetOfH2F.C. References SetOfH::initHistos(). |
|
Returns histogram number i (corresponding to bin i of the BinningFun).
Definition at line 142 of file SetOfH2F.C. References ROList::getEntry(). |
|
Books and registers one histogram with number i.
Implements SetOfH. Definition at line 130 of file SetOfH2F.C. References SetOfH::genBinName(), SetOfH::genBinTitle(), ROList::registerObject(), xaxisbinning, and yaxisbinning. |