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

SetOfHProf Class Reference

#include <SetOfHProf.h>

Inheritance diagram for SetOfHProf:

Inheritance graph
[legend]
Collaboration diagram for SetOfHProf:

Collaboration graph
[legend]
List of all members.

Detailed Description

A collection of profile histograms that have the same axis.

A SetOfHProf contains a set of 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 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 SetOfHProf 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 51 of file SetOfHProf.h.

Public Member Functions

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

 SetOfHProf (const char *name_, const char *title_, Int_t nbinsx, Axis_t xlow, Axis_t xup, Option_t *option_, const ROListPoR &hhl, const BinningFunPoR &binning_)
 Constructor for a set of histograms with equidistant binning.

 SetOfHProf (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 &hhl, const BinningFunPoR &binning_)
 Constructor for a set of histograms with equidistant binning and limited y range.

 SetOfHProf (const char *name_, const char *title_, Int_t nbinsx, const Float_t *xbins, Option_t *option_, const ROListPoR &hhl, const BinningFunPoR &binning_)
 Constructor for a set of histograms with non-equidistant binning, taking float bin edges.

 SetOfHProf (const char *name_, const char *title_, Int_t nbinsx, const Double_t *xbins, Option_t *option_, const ROListPoR &hhl, const BinningFunPoR &binning_)
 Constructor for a set of histograms with non-equidistant binning, taking double bin edges.

 SetOfHProf (const char *name_, const char *title_, Int_t nbinsx, const Double_t *xbins, Axis_t ylow_, Axis_t yup_, Option_t *option_, const ROListPoR &hhl, const BinningFunPoR &binning_)
 Constructor for a set of histograms with non-equidistant binning and limited y range.

 SetOfHProf (const char *name_, const char *title_, const Binning &axisbinning_, Option_t *option_, const ROListPoR &hhl, const BinningFunPoR &binning_)
 Constructor for a set of histograms with Binning object.

 SetOfHProf (const char *name_, const char *title_, const Binning &axisbinning_, Axis_t ylow_, Axis_t yup_, Option_t *option_, const ROListPoR &hhl, const BinningFunPoR &binning_)
 Constructor for a set of histograms with Binning object and limited y range.

virtual ~SetOfHProf ()
 Destructor.

RegHProfgetHisto (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 axisbinning
 The axis binning.

Axis_t ylow
 Minimum y value (as for TProfile).

Axis_t yup
 Maximum y value (as for TProfile).


Private Member Functions

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

SetOfHProfoperator= (const SetOfHProf &source)
 Private assignment operator, left unimplemented: No assignment!


Constructor & Destructor Documentation

SetOfHProf::SetOfHProf 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 31 of file SetOfHProf.C.

References SetOfH::initHistos().

SetOfHProf::SetOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
Axis_t  xlow,
Axis_t  xup,
Option_t *  option_,
const ROListPoR hhl,
const BinningFunPoR binning_
 

Constructor for a set of histograms with equidistant binning.

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

Definition at line 42 of file SetOfHProf.C.

References SetOfH::initHistos().

SetOfHProf::SetOfHProf 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 hhl,
const BinningFunPoR binning_
 

Constructor for a set of histograms with equidistant binning and limited y range.

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

Definition at line 57 of file SetOfHProf.C.

References SetOfH::initHistos().

SetOfHProf::SetOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
const Float_t *  xbins,
Option_t *  option_,
const ROListPoR hhl,
const BinningFunPoR binning_
 

Constructor for a set of histograms with non-equidistant binning, taking float bin edges.

Parameters:
name_  Common histogram name
title_  Common histogram title
nbinsx  Number of x bins (as for TProfile)
xbins  Bin edges in x (as for TProfile)
option_  Option string (as for TProfile)
hhl  ROList object where "this" will be registered
binning_  The BinningFun that assigns entries to histograms

Definition at line 74 of file SetOfHProf.C.

References SetOfH::initHistos().

SetOfHProf::SetOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
const Double_t *  xbins,
Option_t *  option_,
const ROListPoR hhl,
const BinningFunPoR binning_
 

Constructor for a set of histograms with non-equidistant binning, taking double bin edges.

Parameters:
name_  Common histogram name
title_  Common histogram title
nbinsx  Number of x bins (as for TProfile)
xbins  Bin edges in x (as for TProfile)
option_  Option string (as for TProfile)
hhl  ROList object where "this" will be registered
binning_  The BinningFun that assigns entries to histograms

Definition at line 88 of file SetOfHProf.C.

References SetOfH::initHistos().

SetOfHProf::SetOfHProf const char *  name_,
const char *  title_,
Int_t  nbinsx,
const Double_t *  xbins,
Axis_t  ylow_,
Axis_t  yup_,
Option_t *  option_,
const ROListPoR hhl,
const BinningFunPoR binning_
 

Constructor for a set of histograms with non-equidistant binning and limited y range.

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

Definition at line 102 of file SetOfHProf.C.

References SetOfH::initHistos().

SetOfHProf::SetOfHProf const char *  name_,
const char *  title_,
const Binning &  axisbinning_,
Option_t *  option_,
const ROListPoR hhl,
const BinningFunPoR binning_
 

Constructor for a set of histograms with Binning object.

Parameters:
name_  Common histogram name
title_  Common histogram title
axisbinning_  Defines the histogram binning
option_  Option string (as for TProfile)
hhl  ROList object where "this" will be registered
binning_  The BinningFun that assigns entries to histograms

Definition at line 118 of file SetOfHProf.C.

References SetOfH::initHistos().

SetOfHProf::SetOfHProf const char *  name_,
const char *  title_,
const Binning &  axisbinning_,
Axis_t  ylow_,
Axis_t  yup_,
Option_t *  option_,
const ROListPoR hhl,
const BinningFunPoR binning_
 

Constructor for a set of histograms with Binning object and limited y range.

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)
hhl  ROList object where "this" will be registered
binning_  The BinningFun that assigns entries to histograms

Definition at line 131 of file SetOfHProf.C.

References SetOfH::initHistos().


Member Function Documentation

RegHProf * SetOfHProf::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 160 of file SetOfHProf.C.

References ROList::getEntry().

void SetOfHProf::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 148 of file SetOfHProf.C.

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


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