BaseCalib is a tool class. More...
#include <BaseCalib.h>
Public Member Functions | |
void | AddPoint (const Double_t channel, const Double_t energy) |
void | AlignMax (TH1 *histo, TF1 *function, const Double_t AlignValue, const Bool_t invert=false, const Double_t xmin=0, const Double_t xmax=0) |
Perform alignment of the maximum of a TH1 on a value. More... | |
void | AlignMax (TH1 *histo, TF1 *function, const Double_t AlignValue, const Double_t ProportionalCoef, const Bool_t invert=false, const Double_t xmin=0, const Double_t xmax=0) |
Perform alignment of the maximum of a TH1 on a AlignValue with a coefficient of proportionality. More... | |
BaseCalib () | |
void | Calibrate (TF1 *function) const |
void | Calibrate (const char *filename, TF1 *function) |
void | Calibrate (TF1 *function, const Int_t nbpoints, const Double_t *raw, const Double_t *tabulated) |
void | Calibrate (Int_t dimension) |
void | DrawResults (const TF1 *function) const |
Double_t | GetChannel (const Int_t index) const |
Double_t | GetEnergy (const Int_t index) const |
void | SetChannel (const Int_t index, const Double_t channel) |
void | SetEnergy (const Int_t index, const Double_t energy) |
Get/Set energy/channel. More... | |
void | SetPoint (const Int_t index, const Double_t channel, const Double_t energy) |
virtual | ~BaseCalib () |
Static Public Member Functions | |
static void | CheckCalibration (TH1 *histo, const Double_t value, Double_t xmin=-1111, Double_t xmax=-1111, const Int_t color=2) |
static void | CheckCalibration (TH1 *histo, const Int_t nbvalue, const Double_t *values, Double_t xmin=-1111, Double_t xmax=-1111, const Int_t color=2) |
static void | CheckCalibration (TH1 *histo, const char *SourceName, Double_t xmin=-1111, Double_t xmax=-1111, const Int_t color=2) |
Protected Member Functions | |
ClassDef (BaseCalib, 0) | |
rootcint dictionary More... | |
Protected Attributes | |
H1Calibrator | fCalibrator |
TArrayD | fRaw |
TArrayD | fTabulated |
BaseCalib is a tool class.
It provides basic method to perform a calibration of a Germanium spectrum. Basically, BaseCalib class is composed by 2 TArrayD (one for raw positions of peaks and one for tabulated positions). BaseCalib have to find the calibration function, that's why the user have to give a TF1 to calibrate
Definition at line 56 of file BaseCalib.h.