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

RegH1F Class Reference

#include <RegH1F.h>

Inheritance diagram for RegH1F:

Inheritance graph
[legend]
Collaboration diagram for RegH1F:

Collaboration graph
[legend]
List of all members.

Detailed Description

A registered 1-dimensional TH1F histogram.

Author: Benno List, Jenny Böhme

Date
2005/11/11 17:21:16
Author
rweber

Changelog:

Definition at line 36 of file RegH1F.h.

Public Member Functions

 RegH1F (const char *name, const char *title, Int_t nbinsx, Axis_t xlow, Axis_t xup, const ROListPoR &hhl=0)
 Constructor with equidistant binning.

 RegH1F (const char *name, const char *title, Int_t nbinsx, const Float_t *xbins, const ROListPoR &hhl=0)
 Constructor with non-equidistant binning, taking float bin edges.

 RegH1F (const char *name, const char *title, Int_t nbinsx, const Double_t *xbins, const ROListPoR &hhl=0)
 Constructor with non-equidistant binning, taking double bin edges.

 RegH1F (const char *name, const char *title, const Binning &binning, const ROListPoR &hhl=0)
 Constructor taking a Binning object.

 RegH1F (const char *name, TFile &file, const ROListPoR &hhl)
 Constructor reading histogram from a file.

 RegH1F (const char *name, const char *title, const TH1F &source, const ROListPoR &hhl=0)
 Sort of "renaming copy constructor".

virtual ~RegH1F ()
 Virtual destructor.

virtual Stat_t GetSumOfErrors2 () const
 Returns the sum of error squares excluding under/overflow bins.

void getHistInfo (Option_t *option, Stat_t &content, Stat_t &error2) const
 Return content or mean and error.

virtual void Divide (TF1 *f1, Double_t c1=1)
 Divide by a function (as for TH1): this = this/(c1*f1).

virtual void Divide (const TH1 *h1)
 Divide by a histogram (as for TH1): this = this/h1.

virtual void Divide (const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option=0)
 Replace contents by the division of h1 by h2: this = c1*h1/(c2*h2).

virtual void Divide (const TH1 *h1, const TH1 *h2, const TH1 *h3, Double_t c1=1, Double_t c2=1)
 Replace contents by the division of h1 by h2, with h3 as overlap histogram: this = c1*h1/(c2*h2).

virtual void DrawFunc (Option_t *option, const char *fname)
 Enable a specific Fit Function to be plotted with the Histogram.


Private Member Functions

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

RegH1Foperator= (const RegH1F &source)
 Private assignment operator, left unimplemented: No assignment!


Constructor & Destructor Documentation

RegH1F::RegH1F const char *  name,
const char *  title,
Int_t  nbinsx,
Axis_t  xlow,
Axis_t  xup,
const ROListPoR hhl = 0
 

Constructor with equidistant binning.

Parameters:
name  TH1F name
title  TH1F title
nbinsx  Number of bins (as for TH1F)
xlow  Lower edge (as for TH1F)
xup  Upper edge (as for TH1F)
hhl  ROList object where "this" will be registered

Definition at line 49 of file RegH1F.C.

RegH1F::RegH1F const char *  name,
const char *  title,
Int_t  nbinsx,
const Float_t *  xbins,
const ROListPoR hhl = 0
 

Constructor with non-equidistant binning, taking float bin edges.

Parameters:
name  TH1F name
title  TH1F title
nbinsx  Number of bins (as for TH1F)
xbins  Bin edges (as for TH1F)
hhl  ROList object where "this" will be registered

Definition at line 60 of file RegH1F.C.

RegH1F::RegH1F const char *  name,
const char *  title,
Int_t  nbinsx,
const Double_t *  xbins,
const ROListPoR hhl = 0
 

Constructor with non-equidistant binning, taking double bin edges.

Parameters:
name  TH1F name
title  TH1F title
nbinsx  Number of bins (as for TH1F)
xbins  Bin edges (as for TH1F)
hhl  ROList object where "this" will be registered

Definition at line 70 of file RegH1F.C.

RegH1F::RegH1F const char *  name,
const char *  title,
const Binning &  binning,
const ROListPoR hhl = 0
 

Constructor taking a Binning object.

Parameters:
name  TH1F name
title  TH1F title
binning  Defines the histogram binning
hhl  ROList object where "this" will be registered

Definition at line 80 of file RegH1F.C.

RegH1F::RegH1F const char *  name,
TFile &  file,
const ROListPoR hhl
 

Constructor reading histogram from a file.

Parameters:
name  TH1F name
file  File to read from
hhl  ROList object where "this" will be registered

Definition at line 110 of file RegH1F.C.

RegH1F::RegH1F const char *  name,
const char *  title,
const TH1F &  source,
const ROListPoR hhl = 0
 

Sort of "renaming copy constructor".

Parameters:
name  New TH1F name
title  New TH1F title
source  Histogram to be copied
hhl  ROList object where "this" will be registered

Definition at line 127 of file RegH1F.C.


Member Function Documentation

void RegH1F::getHistInfo Option_t *  option,
Stat_t &  content,
Stat_t &  error2
const
 

Return content or mean and error.

Parameters:
option  An option. "M" means "return mean" instead of contents
content  The content (return value)
error2  The squared error (return value)

Definition at line 155 of file RegH1F.C.

References GetSumOfErrors2().

Referenced by SetOfHistograms::getSummary(), MatrixOfHistograms::getSummary(), and MatrixOfHistograms::getSummarySet().

void RegH1F::Divide TF1 *  f1,
Double_t  c1 = 1
[virtual]
 

Divide by a function (as for TH1): this = this/(c1*f1).

Parameters:
f1  The function f1
c1  An optional multiplier to f1

Definition at line 177 of file RegH1F.C.

Referenced by SetOfH::Divide().

void RegH1F::Divide const TH1 *  h1  )  [virtual]
 

Divide by a histogram (as for TH1): this = this/h1.

Parameters:
h1  The histogram h1

Definition at line 181 of file RegH1F.C.

void RegH1F::Divide const TH1 *  h1,
const TH1 *  h2,
Double_t  c1 = 1,
Double_t  c2 = 1,
Option_t *  option = 0
[virtual]
 

Replace contents by the division of h1 by h2: this = c1*h1/(c2*h2).

Parameters:
h1  The first histogram h1
h2  The second histogram h2
c1  An optional multiplier to h1
c2  An optional multiplier to h2
option  An option. "B" means binomial errors, "S" means subset, i.e. binomial errors for weighted events

Definition at line 185 of file RegH1F.C.

void RegH1F::Divide const TH1 *  h1,
const TH1 *  h2,
const TH1 *  h3,
Double_t  c1 = 1,
Double_t  c2 = 1
[virtual]
 

Replace contents by the division of h1 by h2, with h3 as overlap histogram: this = c1*h1/(c2*h2).

In the most general case where h1 contains a sum of event weights w_i and h2 a sum of event weights v_i, h3 should contain the sum w_i*v_i for those events which fall into the same x bin; h3 is the overlap histogram.

Parameters:
h1  The first histogram h1
h2  The second histogram h2
h3  The third histogram h3
c1  An optional multiplier to h1
c2  An optional multiplier to h2

Definition at line 289 of file RegH1F.C.

void RegH1F::DrawFunc Option_t *  option,
const char *  fname
[virtual]
 

Enable a specific Fit Function to be plotted with the Histogram.

If the Histogram was fitted with the Option "0", the Fit Function is globally disabled for drawing. This function enables it for the active drawing and disables it again afterwards. Note: The Draw is done via DrawCopy ! Author: Ronnie Weber

Parameters:
option  Draw Options for Histogram
fname  Name of the function

Definition at line 379 of file RegH1F.C.


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