#include <SetOfHistograms.h>
Inheritance diagram for SetOfHistograms:
A SetOfHistograms 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 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 SetOfHistograms 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 58 of file SetOfHistograms.h.
Public Member Functions | |
SetOfHistograms (const char *name_, const char *title_, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for an empty set histograms. | |
SetOfHistograms (const char *name_, const char *title_, Int_t nbinsx, Axis_t xlow, Axis_t xup, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms with equidistant axis binning. | |
SetOfHistograms (const char *name_, const char *title_, Int_t nbinsx, const Double_t *xbins, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms with non-equidistant axis binning, taking doubles. | |
SetOfHistograms (const char *name_, const char *title_, Int_t nbinsx, const Float_t *xbins, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms with non-equidistant axis binning, taking floats. | |
SetOfHistograms (const char *name_, const char *title_, const Binning &axisbinning_, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor taking a Binning object. | |
SetOfHistograms (const char *name_, const char *title_, TFile &file, const ROListPoR &hhl, const BinningFunPoR &binning_) | |
Constructor for a set of histograms to be read from a file. | |
virtual | ~SetOfHistograms () |
Destructor. | |
RegH1F * | getHisto (IndexType i) |
Returns histogram number i (corresponding to bin i of the BinningFun). | |
RegH1F * | getHisto (iterator i) |
Returns histogram corresponding to an iterator. | |
const RegH1F * | getHisto (const_iterator i) const |
Returns histogram corresponding to an iterator. | |
RegH1F * | getSummary (Option_t *option_, const ROListPoR &hhl) |
Returns a summary histogram,. | |
RegH1F * | getSummary (Option_t *option_, const char *fname, int parnumber, int hnumber, const char *tcomment, const ROListPoR &hhl) |
Returns a summary histogram from fit function parameters. | |
virtual RegH1F * | getSum (const char *name, const char *title, const ROListPoR &hhl, int lowbin=0, int highbin=0) const |
Returns a histogram that is the sum of all histos in the set. | |
virtual void | initHisto (IndexType i) |
Books and registers one histogram with number i. | |
Protected Member Functions | |
void | initialize (ROList &hhl) |
Protected Attributes | |
Binning | axisbinning |
The axis binning. | |
Private Member Functions | |
SetOfHistograms (const SetOfHistograms &source) | |
Private copy constructor, left unimplemented: No copying! | |
SetOfHistograms & | operator= (const SetOfHistograms &source) |
Private assignment operator, left unimplemented: No assignment! |
|
Constructor for an empty set histograms.
Definition at line 35 of file SetOfHistograms.C. |
|
Constructor for a set of histograms with equidistant axis binning.
Definition at line 43 of file SetOfHistograms.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant axis binning, taking doubles.
Definition at line 57 of file SetOfHistograms.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms with non-equidistant axis binning, taking floats.
Definition at line 70 of file SetOfHistograms.C. References SetOfH::initHistos(). |
|
Constructor taking a Binning object.
Definition at line 82 of file SetOfHistograms.C. References SetOfH::initHistos(). |
|
Constructor for a set of histograms to be read from a file.
Definition at line 94 of file SetOfHistograms.C. References SetOfH::genBinName(), SetOfH::getBinning(), and ROList::IndexType. |
|
Returns histogram number i (corresponding to bin i of the BinningFun).
Definition at line 122 of file SetOfHistograms.C. References ROList::getEntry(). Referenced by getSum(), getSummary(), and MatrixOfHistograms::getSummarySet(). |
|
Returns histogram corresponding to an iterator.
Definition at line 126 of file SetOfHistograms.C. References ROList::getEntry(). |
|
Returns histogram corresponding to an iterator.
Definition at line 130 of file SetOfHistograms.C. References ROList::getEntry(). |
|
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 139 of file SetOfHistograms.C. References SetOfH::getBinning(), RegH1F::getHistInfo(), getHisto(), ROList::getIndex(), SetOfH::getName(), and SetOfH::getTitle(). |
|
Returns a summary histogram from fit function parameters. The histogram contains on the x-axis a bin number and has as contents the value of a fit function parameter
Definition at line 185 of file SetOfHistograms.C. References SetOfH::getBinning(), getHisto(), ROList::getIndex(), SetOfH::getName(), and SetOfH::getTitle(). |
|
Returns a histogram that is the sum of all histos in the set.
Definition at line 227 of file SetOfHistograms.C. References ROList::getHighestEntry(), getHisto(), and ROList::IndexType. |
|
Books and registers one histogram with number i.
Implements SetOfH. Definition at line 111 of file SetOfHistograms.C. References axisbinning, SetOfH::genBinName(), SetOfH::genBinTitle(), and ROList::registerObject(). |