#include <MatrixOfH2F.h>
Inheritance diagram for MatrixOfH2F:
A MatrixOfH2F contains a set of 1-dimensional 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 two BinningFun objects that at the same time define the number of histograms.
The histogram names will a concatenation of the name given by the user, and the bin names given by the BinningFun objects. The same applies to the title.
A MatrixOfH2F 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: Jenny Böhme, Benno List
Changelog:
Definition at line 54 of file MatrixOfH2F.h.
Public Member Functions | |
MatrixOfH2F (const char *name_, const char *title_, const ROListPoR &hhl, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_) | |
Constructor for an empty set histograms. | |
MatrixOfH2F (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 &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms with equidistant x and y binnings. | |
MatrixOfH2F (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 &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms with non-equidistant x and equidistant y binnings. | |
MatrixOfH2F (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 &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms with equidistant x and non-equidistant y binnings. | |
MatrixOfH2F (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 &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms with non-equidistant x and y binnings taking doubles. | |
MatrixOfH2F (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 &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms with non-equidistant x and y binnings taking floats. | |
MatrixOfH2F (const char *name_, const char *title_, const Binning &xbinning, const Binning &ybinning, const ROListPoR &hhl, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms, taking 2 Binning objects. | |
virtual | ~MatrixOfH2F () |
Virtual destructor. | |
RegH2F * | getHisto (IndexType i, IndexType j) |
virtual void | initHisto (IndexType i, IndexType j) |
Books and registers one histogram with number i. | |
Private Member Functions | |
MatrixOfH2F (const MatrixOfH2F &source) | |
Private copy constructor, left unimplemented: No copying! | |
MatrixOfH2F & | operator= (const MatrixOfH2F &source) |
Private assignment, left unimplemented: No assignment! | |
Private Attributes | |
Binning | xaxisbinning |
The x axis binning. | |
Binning | yaxisbinning |
The y axis binning. |
|
Constructor for an empty set histograms.
Definition at line 28 of file MatrixOfH2F.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms with equidistant x and y binnings.
Definition at line 38 of file MatrixOfH2F.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant x and equidistant y binnings.
Definition at line 56 of file MatrixOfH2F.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms with equidistant x and non-equidistant y binnings.
Definition at line 73 of file MatrixOfH2F.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant x and y binnings taking doubles.
Definition at line 90 of file MatrixOfH2F.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant x and y binnings taking floats.
Definition at line 106 of file MatrixOfH2F.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms, taking 2 Binning objects.
Definition at line 122 of file MatrixOfH2F.C. References MatrixOfH::initHistos(). |
|
Returns a pointer to the histogram corresponding to bin i of the 1st and bin j of the 2nd binning
Reimplemented from MatrixOfH. Definition at line 148 of file MatrixOfH2F.C. References MatrixOfH::getBinNumber(), and ROList::getEntry(). |
|
Books and registers one histogram with number i.
Implements MatrixOfH. Definition at line 138 of file MatrixOfH2F.C. References MatrixOfH::genBinName(), MatrixOfH::genBinTitle(), MatrixOfH::getBinNumber(), ROList::registerObject(), xaxisbinning, and yaxisbinning. |