GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Gw::H1Calibrator Class Reference

H1Calibrator is a service class in order to calibrate a TH1 The raw histogram must never be changed The calibrated histogram is just a copy of the raw histogram (same binning). More...

#include <H1Calibrator.h>

Public Member Functions

void Calibrate (const TH1 *, const TF1 *, const Option_t *AxisOption="x")
 
void Calibrate (const TH2 *, const TF1 *, const TF1 *)
 perform calibration with a function - for the axis of your choice More...
 
void Calibrate (const TH3 *, const TF1 *, const TF1 *, const TF1 *)
 perform calibration of a TH3 with 3 TF1 More...
 
void Calibrate (const TH3 *, const TF1 *, const TF1 *, const Option_t *AxisOption="xy")
 
void Calibrate (const TH1 *, const Double_t a, const Double_t b, const Option_t *AxisOption="x")
 perform calibration of a TH3 with 2 TF1 opt = "xy","xz" or "yz" More...
 
void Calibrate (const TH1 *, const Double_t a, const Double_t b, const Double_t c, const Option_t *AxisOption="x")
 
void Calibrate (const TH2 *, const Double_t ax, const Double_t bx, const Double_t cx, const Double_t ay, const Double_t by, const Double_t cy)
 perform calibration with a 2 order polynome (a + b*i + c*i*i) - for the axis of your choice More...
 
void Calibrate (const TH2 *, const Double_t ax, const Double_t bx, const Double_t ay, const Double_t by)
 perform calibration of a TH2 with 4 coefficients More...
 
void Calibrate (const TH3 *, const Double_t ax, const Double_t bx, const Double_t cx, const Double_t ay, const Double_t by, const Double_t cy, const Double_t az, const Double_t bz, const Double_t cz)
 perform calibration of a TH3 with 9 coefficients More...
 
void Calibrate (const TH3 *, const Double_t ax, const Double_t bx, const Double_t ay, const Double_t by, const Double_t az, const Double_t bz)
 perform calibration of a TH3 with 6 coefficients More...
 
void Calibrate (const TH3 *, const Double_t a1, const Double_t b1, const Double_t c1, const Double_t a2, const Double_t b2, const Double_t c2, const Option_t *AxisOption)
 perform calibration of a TH3 with 6 coefficients (i.e. 2 axis) More...
 
void Calibrate (const TH3 *, const Double_t a1, const Double_t b1, const Double_t a2, const Double_t b2, const Option_t *AxisOption)
 perform calibration of a TH3 with 4 coefficients (i.e. 2 axis) More...
 
void DrawResult (const Option_t *opt="") const
 draw the calibrated histogram in the current pad with same range of the raw histogram More...
 
TH1 * GetHistoCal () const
 return the calibrated histogram More...
 
 H1Calibrator ()
 
virtual ~H1Calibrator ()
 

Detailed Description

H1Calibrator is a service class in order to calibrate a TH1 The raw histogram must never be changed The calibrated histogram is just a copy of the raw histogram (same binning).

In case of fixed size of bins : the limits of the axis (xmin and xmax) are changed according to the calibration function or parameters.

Author
Bertrand Rossé

Definition at line 58 of file H1Calibrator.h.


The documentation for this class was generated from the following files: