#include <MatrixOfHistograms.h>
Inheritance diagram for MatrixOfHistograms:
A MatrixOfHistograms contains a set of 1-dimensional TH1F 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 MatrixOfHistograms 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 63 of file MatrixOfHistograms.h.
Public Member Functions | |
MatrixOfHistograms (const char *name_, const char *title_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_) | |
Constructor for an empty set of histograms. | |
MatrixOfHistograms (const char *name_, const char *title_, Int_t nbinsx, Axis_t xlow, Axis_t xup, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms with equidistant axis binning. | |
MatrixOfHistograms (const char *name_, const char *title_, Int_t nbinsx, const Double_t *xbins, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms with non-equidistant axis binning, taking doubles. | |
MatrixOfHistograms (const char *name_, const char *title_, Int_t nbinsx, const Float_t *xbins, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms with non-equidistant axis binning, taking floats. | |
MatrixOfHistograms (const char *name_, const char *title_, const Binning &axisbinning_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms taking a Binning object. | |
MatrixOfHistograms (const char *name_, const char *title_, TFile &file, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_) | |
Constructor for a set of histograms to be read from a file. | |
virtual | ~MatrixOfHistograms () |
Virtual destructor. | |
RegH1F * | getSummary (Option_t *option, const ROListPoR &rol) |
Returns a summary histogram. | |
SetOfHistograms * | getSummarySet (const char *name, const char *title, int idim, Option_t *option, const ROListPoR &rol, const Float_t *xbinmargins=0) |
Returns a set of summary histograms. | |
virtual SetOfHistograms * | getSet (const char *name, const char *title, int idim, const ROListPoR &rol, int lowbin=0, int highbin=0) |
Returns a histo set, where histos are summed over one dimension of the matrix. | |
RegH1F * | getHisto (IndexType i, IndexType j) |
virtual void | initHisto (IndexType i, IndexType j) |
Books and registers one histogram with number i. | |
Private Member Functions | |
MatrixOfHistograms (const MatrixOfHistograms &source) | |
Private copy constructor, left unimplemented: No copying! | |
MatrixOfHistograms & | operator= (const MatrixOfHistograms &source) |
Private assignment, left unimplemented: No assignment! | |
Private Attributes | |
Binning | axisbinning |
The axis binning. |
|
Constructor for an empty set of histograms.
Definition at line 31 of file MatrixOfHistograms.C. |
|
Constructor for a set of histograms with equidistant axis binning.
Definition at line 40 of file MatrixOfHistograms.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant axis binning, taking doubles.
Definition at line 54 of file MatrixOfHistograms.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant axis binning, taking floats.
Definition at line 67 of file MatrixOfHistograms.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms taking a Binning object.
Definition at line 80 of file MatrixOfHistograms.C. References MatrixOfH::initHistos(). |
|
Constructor for a set of histograms to be read from a file.
Definition at line 92 of file MatrixOfHistograms.C. References MatrixOfH::genBinName(), SetOfH::getBinning(), ROList::getEntries(), SetOfH::getName(), SetOfH::getTitle(), ROList::IndexType, ROListPoR::prol, and ROList::registerObject(). |
|
Returns a summary histogram. The histogram contains on the x-axis a bin number and has as contents the contents or the mean of the individula histograms
Definition at line 142 of file MatrixOfHistograms.C. References SetOfH::getBinning(), RegH1F::getHistInfo(), getHisto(), SetOfH::getName(), SetOfH::getTitle(), and ROList::IndexType. |
|
Returns a set of summary histograms. Each histogram contains on the x-axis a bin number and has as contents the contents or the mean of the individula histograms. One can summarize over the first or second dimension of the matrix.
Definition at line 258 of file MatrixOfHistograms.C. References SetOfH::getBinning(), RegH1F::getHistInfo(), getHisto(), SetOfHistograms::getHisto(), and ROList::IndexType. |
|
Returns a histo set, where histos are summed over one dimension of the matrix.
Definition at line 207 of file MatrixOfHistograms.C. References SetOfH::genBinName(), SetOfH::genBinTitle(), SetOfH::getBinning(), getHisto(), and ROList::IndexType. |
|
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 137 of file MatrixOfHistograms.C. References MatrixOfH::getBinNumber(), and ROList::getEntry(). Referenced by getSet(), getSummary(), and getSummarySet(). |
|
Books and registers one histogram with number i.
Implements MatrixOfH. Definition at line 123 of file MatrixOfHistograms.C. References axisbinning, MatrixOfH::genBinName(), MatrixOfH::genBinTitle(), MatrixOfH::getBinNumber(), and ROList::registerObject(). |