GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4FitLinearTrans.h>
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 |
Public Member Functions inherited from TGo4FitAxisTrans | |
TGo4FitAxisTrans () | |
TGo4FitAxisTrans (const char *iName, const char *iTitle) | |
virtual | ~TGo4FitAxisTrans () |
Public Member Functions inherited from TGo4FitParsList | |
TGo4FitParsList () | |
TGo4FitParsList (Bool_t IsParsOwned) | |
TGo4FitParsList (const char *Name, const char *Title, Bool_t IsParsOwned) | |
virtual | ~TGo4FitParsList () |
virtual Int_t | NumPars () |
TGo4FitParameter * | GetPar (Int_t n) |
Int_t | GetParIndex (const TGo4FitParameter *par) |
TGo4FitParameter * | FindPar (const char *ParName) |
TGo4FitParameter * | FindPar (const char *OwnerFullName, const char *ParName) |
TGo4FitParameter * | FindPar (TGo4FitParameter *par) |
Double_t | GetParValue (const char *ParName) |
Bool_t | SetParValue (const char *ParName, Double_t iValue) |
void | GetParsValues (Double_t *pars) |
void | SetParsValues (Double_t *pars) |
Double_t | GetParError (const char *ParName) |
Bool_t | SetParError (const char *ParName, Double_t iError) |
virtual Bool_t | SetParFixed (const char *ParName, Bool_t iFixed=kTRUE) |
virtual Bool_t | GetParFixed (const char *ParName) |
Int_t | NumFixedPars () |
Int_t | NumFreePars () |
virtual Bool_t | SetParRange (const char *ParName, Double_t RangeMin, Double_t RangeMax) |
virtual Bool_t | GetParRange (const char *ParName, Double_t &RangeMin, Double_t &RangeMax) |
virtual Bool_t | SetParEpsilon (const char *ParName, Double_t Epsilon) |
virtual Bool_t | GetParEpsilon (const char *ParName, Double_t &Epsilon) |
void | SetParName (Int_t n, const char *name) |
const char * | GetParName (Int_t n) |
const char * | GetParFullName (Int_t n) |
void | SetParsNames (const char *name0="Par0", const char *name1="Par1", const char *name2="Par2", const char *name3="Par3", const char *name4="Par4", const char *name5="Par5", const char *name6="Par6", const char *name7="Par7", const char *name8="Par8", const char *name9="Par9") |
void | SetParsValues (Double_t par0=0., Double_t par1=0., Double_t par2=0., Double_t par3=0., Double_t par4=0., Double_t par5=0., Double_t par6=0., Double_t par7=0., Double_t par8=0., Double_t par9=0.) |
virtual void | MemorizePars () |
virtual bool | CanRollbackPars () |
virtual void | RememberPars () |
Bool_t | IsAllParsFixed () |
TGo4FitParameter * | CreatePar (const char *ParName, const char *Title, Double_t iValue=0) |
Bool_t | RemovePar (const char *name) |
Bool_t | RemovePar (TGo4FitParameter *par) |
void | PrintPars () const |
virtual void | CollectParsTo (TGo4FitParsList &list) |
void | ClearPars () |
Public Member Functions inherited from TGo4FitNamed | |
TGo4FitNamed () | |
TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=0) | |
virtual | ~TGo4FitNamed () |
const char * | GetFullName () |
const char * | GetOwnerFullName () |
void | SetOwner (TNamed *iOwner) |
TNamed * | GetOwner () |
void | Print (Option_t *option) const |
Protected Attributes | |
Int_t | fiAxis |
Double_t | fdCoefK |
Double_t | fdCoefB |
Additional Inherited Members | |
Protected Member Functions inherited from TGo4FitParsList | |
TGo4FitParameter * | AddPar (TGo4FitParameter *par) |
TGo4FitParameter * | InsertPar (TGo4FitParameter *par, Int_t indx) |
void | SetParsOwner (TGo4FitNamed *iOwner) |
void | ClearParsBlocking () |
virtual TGo4FitParameter * | Get (Int_t n) |
TGo4FitParameter * | Find (const char *ParName) |
TGo4FitParameter * | Find (const char *OwnerFullName, const char *ParName) |
TGo4FitParameter * | Find (TGo4FitParameter *par) |
Bool_t | RemoveParByIndex (Int_t indx) |
The linear transfromation of selected data axis.
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 36 of file TGo4FitLinearTrans.h.
TGo4FitLinearTrans::TGo4FitLinearTrans | ( | ) |
Definition at line 19 of file TGo4FitLinearTrans.cxx.
TGo4FitLinearTrans::TGo4FitLinearTrans | ( | const char * | iName, |
const char * | iTitle, | ||
Int_t | iAxis = 0 |
||
) |
Definition at line 21 of file TGo4FitLinearTrans.cxx.
References TGo4FitParsList::AddPar(), and TGo4FitParameter::SetFixed().
|
virtual |
Definition at line 33 of file TGo4FitLinearTrans.cxx.
|
inline |
Definition at line 42 of file TGo4FitLinearTrans.h.
References fiAxis.
Referenced by QFitLinearTransWidget::FillSpecificData(), and Transformation().
|
inline |
Definition at line 46 of file TGo4FitLinearTrans.h.
References TGo4FitParsList::GetPar(), and TGo4FitParameter::GetValue().
Referenced by Transformation().
|
inline |
Definition at line 44 of file TGo4FitLinearTrans.h.
References TGo4FitParsList::GetPar(), and TGo4FitParameter::GetValue().
Referenced by Transformation().
|
virtual |
Default print method. Call print method for every parameter object in list.
Reimplemented from TGo4FitParsList.
Definition at line 52 of file TGo4FitLinearTrans.cxx.
References fiAxis, and TGo4FitParsList::Print().
|
inline |
Definition at line 43 of file TGo4FitLinearTrans.h.
References fiAxis.
Referenced by QFitLinearTransWidget::NumAxisSpin_valueChanged().
|
inline |
Definition at line 49 of file TGo4FitLinearTrans.h.
References TGo4FitParsList::GetPar(), and TGo4FitParameter::SetValue().
Referenced by SetCoefByPoints(), and SetCoefByRange().
|
inline |
Definition at line 47 of file TGo4FitLinearTrans.h.
References TGo4FitParsList::GetPar(), and TGo4FitParameter::SetValue().
void TGo4FitLinearTrans::SetCoefByPoints | ( | Double_t | n1, |
Double_t | y1, | ||
Double_t | n2, | ||
Double_t | y2 | ||
) |
Definition at line 41 of file TGo4FitLinearTrans.cxx.
void TGo4FitLinearTrans::SetCoefByRange | ( | Int_t | nbins, |
Double_t | y1, | ||
Double_t | y2 | ||
) |
Definition at line 36 of file TGo4FitLinearTrans.cxx.
References SetCoef().
Referenced by ConstructTrans().
|
inline |
Definition at line 45 of file TGo4FitLinearTrans.h.
References TGo4FitParsList::GetPar(), and TGo4FitParameter::SetValue().
|
virtual |
Implements TGo4FitAxisTrans.
Definition at line 47 of file TGo4FitLinearTrans.cxx.
References GetAxis(), GetCoefB(), and GetCoefK().
|
protected |
Definition at line 61 of file TGo4FitLinearTrans.h.
|
protected |
Definition at line 60 of file TGo4FitLinearTrans.h.
Referenced by SetCoefByPoints().
|
protected |
Definition at line 59 of file TGo4FitLinearTrans.h.