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

SetOfH2F Class Reference

#include <SetOfH2F.h>

Inheritance diagram for SetOfH2F:

Inheritance graph
[legend]
Collaboration diagram for SetOfH2F:

Collaboration graph
[legend]
List of all members.

Detailed Description

A collection of profile histograms that have the same axis.

A SetOfH2F contains a set of 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 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 SetOfH2F 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: Benno List

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

Changelog:

Definition at line 49 of file SetOfH2F.h.

Public Member Functions

 SetOfH2F (const char *name_, const char *title_, const ROListPoR &hhl, const BinningFunPoR &binning_)
 Constructor for an empty set histograms.

 SetOfH2F (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 &binning_)
 Constructor for a set of histograms with equidistant x and y binnings.

 SetOfH2F (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 &binning_)
 Constructor for a set of histograms with non-equidistant x and equidistant y binnings.

 SetOfH2F (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 &binning_)
 Constructor for a set of histograms with equidistant x and non-equidistant y binnings.

 SetOfH2F (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 &binning_)
 Constructor for a set of histograms with non-equidistant x and y binnings taking doubles.

 SetOfH2F (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 &binning_)
 Constructor for a set of histograms with non-equidistant x and y binnings taking floats.

 SetOfH2F (const char *name_, const char *title_, const Binning &xbinning, const Binning &ybinning, const ROListPoR &hhl, const BinningFunPoR &binning_)
 Constructor for a set of histograms, taking 2 Binning objects.

virtual ~SetOfH2F ()
 Destructor.

RegH2FgetHisto (IndexType i)
 Returns histogram number i (corresponding to bin i of the BinningFun).

void initHisto (IndexType i)
 Books and registers one histogram with number i.


Protected Member Functions

void initialize (ROList &hhl)

Protected Attributes

Binning xaxisbinning
 The x axis binning.

Binning yaxisbinning
 The y axis binning.


Private Member Functions

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

SetOfH2Foperator= (const SetOfH2F &source)
 Private assignment operator, left unimplemented: No assignment!


Constructor & Destructor Documentation

SetOfH2F::SetOfH2F const char *  name_,
const char *  title_,
const ROListPoR hhl,
const BinningFunPoR binning_
 

Constructor for an empty set histograms.

Parameters:
name_  Common histogram name
title_  Common histogram title
hhl  ROList object where "this" will be registered
binning_  The BinningFun that assigns entries to histograms

Definition at line 28 of file SetOfH2F.C.

References SetOfH::initHistos().

SetOfH2F::SetOfH2F 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 binning_
 

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
binning_  The BinningFun that assigns entries to histograms

Definition at line 37 of file SetOfH2F.C.

References SetOfH::initHistos().

SetOfH2F::SetOfH2F 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 binning_
 

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
binning_  The BinningFun that assigns entries to histograms

Definition at line 54 of file SetOfH2F.C.

References SetOfH::initHistos().

SetOfH2F::SetOfH2F 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 binning_
 

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
binning_  The BinningFun that assigns entries to histograms

Definition at line 70 of file SetOfH2F.C.

References SetOfH::initHistos().

SetOfH2F::SetOfH2F 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 binning_
 

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
binning_  The BinningFun that assigns entries to histograms

Definition at line 86 of file SetOfH2F.C.

References SetOfH::initHistos().

SetOfH2F::SetOfH2F 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 binning_
 

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
binning_  The BinningFun that assigns entries to histograms

Definition at line 101 of file SetOfH2F.C.

References SetOfH::initHistos().

SetOfH2F::SetOfH2F const char *  name_,
const char *  title_,
const Binning &  xbinning,
const Binning &  ybinning,
const ROListPoR hhl,
const BinningFunPoR binning_
 

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
binning_  The BinningFun that assigns entries to histograms

Definition at line 116 of file SetOfH2F.C.

References SetOfH::initHistos().


Member Function Documentation

RegH2F * SetOfH2F::getHisto IndexType  i  ) 
 

Returns histogram number i (corresponding to bin i of the BinningFun).

Parameters:
i  The number of the histogram to be returned

Definition at line 142 of file SetOfH2F.C.

References ROList::getEntry().

void SetOfH2F::initHisto IndexType  i  )  [virtual]
 

Books and registers one histogram with number i.

Parameters:
i  The number under which to register

Implements SetOfH.

Definition at line 130 of file SetOfH2F.C.

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


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