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

MatrixOfH2F Class Reference

#include <MatrixOfH2F.h>

Inheritance diagram for MatrixOfH2F:

Inheritance graph
[legend]
Collaboration diagram for MatrixOfH2F:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

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

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

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.

RegH2FgetHisto (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!

MatrixOfH2Foperator= (const MatrixOfH2F &source)
 Private assignment, left unimplemented: No assignment!


Private Attributes

Binning xaxisbinning
 The x axis binning.

Binning yaxisbinning
 The y axis binning.


Constructor & Destructor Documentation

MatrixOfH2F::MatrixOfH2F const char *  name_,
const char *  title_,
const ROListPoR hhl,
const BinningFunPoR binning1_,
const BinningFunPoR binning2_
 

Constructor for an empty set histograms.

Parameters:
name_  Common histogram name
title_  Common histogram title
hhl  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 28 of file MatrixOfH2F.C.

References MatrixOfH::initHistos().

MatrixOfH2F::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.

Parameters:
name_  TH2F name
title_  TH2F title
nbinsx  Number of x bins (as for TH2F)
xlow  Lower x edge (as for TH2F)
xup  Upper x edge (as for TH2F)
nbinsy  Number of y bins (as for TH2F)
ylow  Lower y edge (as for TH2F)
yup  Upper y edge (as for TH2F)
hhl  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 38 of file MatrixOfH2F.C.

References MatrixOfH::initHistos().

MatrixOfH2F::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.

Parameters:
name_  TH2F name
title_  TH2F title
nbinsx  Number of x bins (as for TH2F)
xbins  Bin edges in x (as for TH2F)
nbinsy  Number of y bins (as for TH2F)
ylow  Lower y edge (as for TH2F)
yup  Upper y edge (as for TH2F)
hhl  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 56 of file MatrixOfH2F.C.

References MatrixOfH::initHistos().

MatrixOfH2F::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.

Parameters:
name_  TH2F name
title_  TH2F title
nbinsx  Number of x bins (as for TH2F)
xlow  Lower x edge (as for TH2F)
xup  Upper x edge (as for TH2F)
nbinsy  Number of y bins (as for TH2F)
ybins  Bin edges in y (as for TH2F)
hhl  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 73 of file MatrixOfH2F.C.

References MatrixOfH::initHistos().

MatrixOfH2F::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.

Parameters:
name_  TH2F name
title_  TH2F title
nbinsx  Number of x bins (as for TH2F)
xbins  Bin edges in x (as for TH2F)
nbinsy  Number of y bins (as for TH2F)
ybins  Bin edges in y (as for TH2F)
hhl  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 90 of file MatrixOfH2F.C.

References MatrixOfH::initHistos().

MatrixOfH2F::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.

Parameters:
name_  TH2F name
title_  TH2F title
nbinsx  Number of x bins (as for TH2F)
xbins  Bin edges in x (as for TH1F)
nbinsy  Number of y bins (as for TH2F)
ybins  Bin edges in x (as for TH1F)
hhl  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 106 of file MatrixOfH2F.C.

References MatrixOfH::initHistos().

MatrixOfH2F::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.

Parameters:
name_  TH2F name
title_  TH2F title
xbinning  Defines the histogram x binning
ybinning  Defines the histogram y binning
hhl  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 122 of file MatrixOfH2F.C.

References MatrixOfH::initHistos().


Member Function Documentation

RegH2F * MatrixOfH2F::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 148 of file MatrixOfH2F.C.

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

void MatrixOfH2F::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 138 of file MatrixOfH2F.C.

References MatrixOfH::genBinName(), MatrixOfH::genBinTitle(), MatrixOfH::getBinNumber(), ROList::registerObject(), xaxisbinning, and yaxisbinning.


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