GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
TGo4FitLinearTrans Class Reference

#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
 
- 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 ()
 
TGo4FitParameterGetPar (Int_t n)
 
Int_t GetParIndex (const TGo4FitParameter *par)
 
TGo4FitParameterFindPar (const char *ParName)
 
TGo4FitParameterFindPar (const char *OwnerFullName, const char *ParName)
 
TGo4FitParameterFindPar (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 ()
 
TGo4FitParameterCreatePar (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
TGo4FitParameterAddPar (TGo4FitParameter *par)
 
TGo4FitParameterInsertPar (TGo4FitParameter *par, Int_t indx)
 
void SetParsOwner (TGo4FitNamed *iOwner)
 
void ClearParsBlocking ()
 
virtual TGo4FitParameterGet (Int_t n)
 
TGo4FitParameterFind (const char *ParName)
 
TGo4FitParameterFind (const char *OwnerFullName, const char *ParName)
 
TGo4FitParameterFind (TGo4FitParameter *par)
 
Bool_t RemoveParByIndex (Int_t indx)
 

Detailed Description

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.

Constructor & Destructor Documentation

TGo4FitLinearTrans::TGo4FitLinearTrans ( )

Definition at line 19 of file TGo4FitLinearTrans.cxx.

TGo4FitLinearTrans::TGo4FitLinearTrans ( const char *  iName,
const char *  iTitle,
Int_t  iAxis = 0 
)
TGo4FitLinearTrans::~TGo4FitLinearTrans ( )
virtual

Definition at line 33 of file TGo4FitLinearTrans.cxx.

Member Function Documentation

Int_t TGo4FitLinearTrans::GetAxis ( )
inline

Definition at line 42 of file TGo4FitLinearTrans.h.

References fiAxis.

Referenced by QFitLinearTransWidget::FillSpecificData(), and Transformation().

Double_t TGo4FitLinearTrans::GetCoefB ( )
inline

Definition at line 46 of file TGo4FitLinearTrans.h.

References TGo4FitParsList::GetPar(), and TGo4FitParameter::GetValue().

Referenced by Transformation().

Double_t TGo4FitLinearTrans::GetCoefK ( )
inline

Definition at line 44 of file TGo4FitLinearTrans.h.

References TGo4FitParsList::GetPar(), and TGo4FitParameter::GetValue().

Referenced by Transformation().

void TGo4FitLinearTrans::Print ( Option_t *  option) const
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().

void TGo4FitLinearTrans::SetAxis ( Int_t  iAxis)
inline

Definition at line 43 of file TGo4FitLinearTrans.h.

References fiAxis.

Referenced by QFitLinearTransWidget::NumAxisSpin_valueChanged().

void TGo4FitLinearTrans::SetCoef ( Double_t  iCoefK,
Double_t  iCoefB 
)
inline

Definition at line 49 of file TGo4FitLinearTrans.h.

References TGo4FitParsList::GetPar(), and TGo4FitParameter::SetValue().

Referenced by SetCoefByPoints(), and SetCoefByRange().

void TGo4FitLinearTrans::SetCoefB ( Double_t  b)
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.

References fdCoefK, and SetCoef().

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().

void TGo4FitLinearTrans::SetCoefK ( Double_t  k)
inline

Definition at line 45 of file TGo4FitLinearTrans.h.

References TGo4FitParsList::GetPar(), and TGo4FitParameter::SetValue().

void TGo4FitLinearTrans::Transformation ( Double_t *  scales,
Int_t  naxis 
)
virtual

Implements TGo4FitAxisTrans.

Definition at line 47 of file TGo4FitLinearTrans.cxx.

References GetAxis(), GetCoefB(), and GetCoefK().

Member Data Documentation

Double_t TGo4FitLinearTrans::fdCoefB
protected

Definition at line 61 of file TGo4FitLinearTrans.h.

Double_t TGo4FitLinearTrans::fdCoefK
protected

Definition at line 60 of file TGo4FitLinearTrans.h.

Referenced by SetCoefByPoints().

Int_t TGo4FitLinearTrans::fiAxis
protected

Definition at line 59 of file TGo4FitLinearTrans.h.

Referenced by GetAxis(), Print(), and SetAxis().


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