#include <TGo4FitLinearTrans.h>
Inheritance diagram for TGo4FitLinearTrans:
Public Member Functions | |
TGo4FitLinearTrans () | |
TGo4FitLinearTrans (const char *iName, const char *iTitle, Int_t iAxis=0) | |
virtual | ~TGo4FitLinearTrans () |
Int_t | GetAxis () |
void | SetAxis (Int_t iAxis) |
Double_t | GetCoefK () |
void | SetCoefK (Double_t k) |
Double_t | GetCoefB () |
void | SetCoefB (Double_t b) |
void | SetCoef (Double_t iCoefK, Double_t iCoefB) |
void | SetCoefByRange (Int_t nbins, Double_t y1, Double_t y2) |
void | SetCoefByPoints (Double_t n1, Double_t y1, Double_t n2, Double_t y2) |
virtual void | Transformation (Double_t *scales, Int_t naxis) |
virtual void | Print (Option_t *option) const |
Default print method. | |
Protected Attributes | |
Int_t | fiAxis |
Double_t | fdCoefK |
Double_t | fdCoefB |
It has two coefficients to transfrom axis values like:
scale[naxis] = CoefK * scale[naxis] + CoefB
After linear transformation object is constructed, the coefficients can be defined by three ways:
SetCalibration() - just setting these coefficients;
SetCalibrationByRange() - coefficients defines from range and number of points in this range;
SetCalibrationByPoints() - coefficients calculates from coordinates of two points, where first coordinate is channel number and second - axis value.
Definition at line 38 of file TGo4FitLinearTrans.h.
|
Definition at line 22 of file TGo4FitLinearTrans.cxx. |
|
Definition at line 25 of file TGo4FitLinearTrans.cxx. References TGo4FitParsList::AddPar(), and TGo4FitParameter::SetFixed(). |
|
Definition at line 36 of file TGo4FitLinearTrans.cxx. |
|
Definition at line 44 of file TGo4FitLinearTrans.h. References fiAxis. Referenced by Transformation(). |
|
Definition at line 45 of file TGo4FitLinearTrans.h. References fiAxis. |
|
Definition at line 46 of file TGo4FitLinearTrans.h. References TGo4FitParsList::GetPar(). Referenced by Transformation(). |
|
Definition at line 47 of file TGo4FitLinearTrans.h. References TGo4FitParsList::GetPar(). |
|
Definition at line 48 of file TGo4FitLinearTrans.h. References TGo4FitParsList::GetPar(). Referenced by Transformation(). |
|
Definition at line 49 of file TGo4FitLinearTrans.h. References TGo4FitParsList::GetPar(). |
|
Definition at line 51 of file TGo4FitLinearTrans.h. References TGo4FitParsList::GetPar(). Referenced by SetCoefByPoints(), and SetCoefByRange(). |
|
Definition at line 39 of file TGo4FitLinearTrans.cxx. References SetCoef(). Referenced by ConstructTrans(). |
|
Definition at line 44 of file TGo4FitLinearTrans.cxx. |
|
Implements TGo4FitAxisTrans. Definition at line 50 of file TGo4FitLinearTrans.cxx. References GetAxis(), GetCoefB(), and GetCoefK(). |
|
Default print method. Call print method for every parameter object in list. Reimplemented from TGo4FitParsList. Definition at line 55 of file TGo4FitLinearTrans.cxx. References fiAxis, and TGo4FitParsList::Print(). |
|
Definition at line 61 of file TGo4FitLinearTrans.h. |
|
Definition at line 62 of file TGo4FitLinearTrans.h. Referenced by SetCoefByPoints(). |
|
Definition at line 63 of file TGo4FitLinearTrans.h. |