Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

MatrixOfHProf Class Reference

#include <MatrixOfHProf.h>

Inheritance diagram for MatrixOfHProf:

Inheritance graph
[legend]
Collaboration diagram for MatrixOfHProf:

Collaboration graph
[legend]
List of all members.

Detailed Description

A 2-dimensional collection of 1-dimensional histograms that have the same axis.

A MatrixOfHProf contains a set of 1-dimensional THProfile 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 MatrixOfHProf 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

Date
2005/11/26 13:51:01
Author
blist

Changelog:

Definition at line 53 of file MatrixOfHProf.h.

Public Member Functions

 MatrixOfHProf (const char *name_, const char *title_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for an empty set of histograms.

 MatrixOfHProf (const char *name_, const char *title_, Int_t nbinsx, Axis_t xlow, Axis_t xup, Option_t *option_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for a set of histograms with equidistant axis binning.

 MatrixOfHProf (const char *name_, const char *title_, Int_t nbinsx, Axis_t xlow, Axis_t xup, Axis_t ylow_, Axis_t yup_, Option_t *option_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for a set of histograms with equidistant axis binning.

 MatrixOfHProf (const char *name_, const char *title_, Int_t nbinsx, const Double_t *xbins, Option_t *option_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for a set of histograms with non-equidistant axis binning, taking doubles.

 MatrixOfHProf (const char *name_, const char *title_, Int_t nbinsx, const Double_t *xbins, Axis_t ylow_, Axis_t yup_, Option_t *option_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for a set of histograms with non-equidistant axis binning, taking doubles.

 MatrixOfHProf (const char *name_, const char *title_, Int_t nbinsx, const Float_t *xbins, Option_t *option_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for a set of histograms with non-equidistant axis binning, taking floats.

 MatrixOfHProf (const char *name_, const char *title_, Int_t nbinsx, const Float_t *xbins, Axis_t ylow_, Axis_t yup_, Option_t *option_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for a set of histograms with non-equidistant axis binning, taking floats.

 MatrixOfHProf (const char *name_, const char *title_, const Binning &axisbinning_, Option_t *option_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for a set of histograms taking a Binning object.

 MatrixOfHProf (const char *name_, const char *title_, const Binning &axisbinning_, Axis_t ylow_, Axis_t yup_, Option_t *option_, const ROListPoR &rol, const BinningFunPoR &binning1_, const BinningFunPoR &binning2_)
 Constructor for a set of histograms taking a Binning object.

virtual ~MatrixOfHProf ()
 Virtual destructor.

RegHProfgetHisto (IndexType i, IndexType j)
virtual void initHisto (IndexType i, IndexType j)
 Books and registers one histogram with number i.


Private Member Functions

 MatrixOfHProf (const MatrixOfHProf &source)
 Private copy constructor, left unimplemented: No copying!

MatrixOfHProfoperator= (const MatrixOfHProf &source)
 Private assignment, left unimplemented: No assignment!


Private Attributes

Binning axisbinning
 The axis binning.

Axis_t ylow
 Minimum y value (as for TProfile).

Axis_t yup
 Maximum y value (as for TProfile).


Constructor & Destructor Documentation

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for an empty set of histograms.

Parameters:
name_  Common histogram name
title_  Common histogram title
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 31 of file MatrixOfHProf.C.

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
Axis_t  xlow,
Axis_t  xup,
Option_t *  option_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for a set of histograms with equidistant axis binning.

Parameters:
name_  Common histogram name
title_  Common histogram title
nbinsx  Number of bins (as for TProfile)
xlow  Lower edge (as for TProfile)
xup  Upper edge (as for TProfile)
option_  Option string (as for TProfile)
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 40 of file MatrixOfHProf.C.

References MatrixOfH::initHistos().

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
Axis_t  xlow,
Axis_t  xup,
Axis_t  ylow_,
Axis_t  yup_,
Option_t *  option_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for a set of histograms with equidistant axis binning.

Parameters:
name_  Common histogram name
title_  Common histogram title
nbinsx  Number of bins (as for TProfile)
xlow  Lower edge (as for TProfile)
xup  Upper edge (as for TProfile)
ylow_  Minimum y value (as for TProfile)
yup_  Maximum y value (as for TProfile)
option_  Option string (as for TProfile)
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 57 of file MatrixOfHProf.C.

References MatrixOfH::initHistos().

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
const Double_t *  xbins,
Option_t *  option_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for a set of histograms with non-equidistant axis binning, taking doubles.

Parameters:
name_  Common histogram name
title_  Common histogram title
nbinsx  Number of bins (as for TProfile)
xbins  Bin edges (as for TProfile)
option_  Option string (as for TProfile)
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 76 of file MatrixOfHProf.C.

References MatrixOfH::initHistos().

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
const Double_t *  xbins,
Axis_t  ylow_,
Axis_t  yup_,
Option_t *  option_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for a set of histograms with non-equidistant axis binning, taking doubles.

Parameters:
name_  Common histogram name
title_  Common histogram title
nbinsx  Number of bins (as for TProfile)
xbins  Bin edges (as for TProfile)
ylow_  Minimum y value (as for TProfile)
yup_  Maximum y value (as for TProfile)
option_  Option string (as for TProfile)
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 92 of file MatrixOfHProf.C.

References MatrixOfH::initHistos().

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
const Float_t *  xbins,
Option_t *  option_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for a set of histograms with non-equidistant axis binning, taking floats.

Parameters:
name_  Common histogram name
title_  Common histogram title
nbinsx  Number of bins (as for TProfile)
xbins  Bin edges (as for TProfile)
option_  Option string (as for TProfile)
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 110 of file MatrixOfHProf.C.

References MatrixOfH::initHistos().

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
const Float_t *  xbins,
Axis_t  ylow_,
Axis_t  yup_,
Option_t *  option_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for a set of histograms with non-equidistant axis binning, taking floats.

Parameters:
name_  Common histogram name
title_  Common histogram title
nbinsx  Number of bins (as for TProfile)
xbins  Bin edges (as for TProfile)
ylow_  Minimum y value (as for TProfile)
yup_  Maximum y value (as for TProfile)
option_  Option string (as for TProfile)
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 126 of file MatrixOfHProf.C.

References MatrixOfH::initHistos().

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
const Binning &  axisbinning_,
Option_t *  option_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for a set of histograms taking a Binning object.

Parameters:
name_  Common histogram name
title_  Common histogram title
axisbinning_  Defines the histogram binning
option_  Option string (as for TProfile)
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 144 of file MatrixOfHProf.C.

References MatrixOfH::initHistos().

MatrixOfHProf::MatrixOfHProf const char *  name_,
const char *  title_,
const Binning &  axisbinning_,
Axis_t  ylow_,
Axis_t  yup_,
Option_t *  option_,
const ROListPoR rol,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for a set of histograms taking a Binning object.

Parameters:
name_  Common histogram name
title_  Common histogram title
axisbinning_  Defines the histogram binning
ylow_  Minimum y value (as for TProfile)
yup_  Maximum y value (as for TProfile)
option_  Option string (as for TProfile)
rol  ROList object where "this" will be registered
binning1_  The 1st BinningFun that assigns entries to histograms
binning2_  The 2nd BinningFun that assigns entries to histograms

Definition at line 159 of file MatrixOfHProf.C.

References MatrixOfH::initHistos().


Member Function Documentation

RegHProf * MatrixOfHProf::getHisto IndexType  i,
IndexType  j
 

Returns a pointer to the histogram corresponding to bin i of the 1st and bin j of the 2nd binning

Parameters:
i  Bin number of 1st binning
j  Bin number of 2nd binning

Reimplemented from MatrixOfH.

Definition at line 222 of file MatrixOfHProf.C.

References MatrixOfH::getBinNumber(), and ROList::getEntry().

void MatrixOfHProf::initHisto IndexType  i,
IndexType  j
[virtual]
 

Books and registers one histogram with number i.

Parameters:
i  Bin of 1st dimension
j  Bin of 2nd dimension

Implements MatrixOfH.

Definition at line 208 of file MatrixOfHProf.C.

References axisbinning, MatrixOfH::genBinName(), MatrixOfH::genBinTitle(), MatrixOfH::getBinNumber(), SetOfH::getOption(), ROList::registerObject(), ylow, and yup.


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 12:54:52 2006 for SFH by doxygen 1.3.2