v2.10-0 (21000JUN2005)

Go4Fit
Class TGo4FitLinearTrans


class TGo4FitLinearTrans
derived from TGo4FitAxisTrans

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.


Field Summary
 protected Double_tfdCoefB
           
 protected Double_tfdCoefK
           
 protected Int_tfiAxis
           

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4FitLinearTrans()
           
TGo4FitLinearTrans(const char * iName, const char * iTitle, Int_t iAxis)
           

Destructor Summary
 virtual synchronized ~TGo4FitLinearTrans()
           

Method Summary
 Int_tGetAxis()
           
 Double_tGetCoefB()
           
 Double_tGetCoefK()
           
 virtual const voidPrint(Option_t* option)
           
 voidSetAxis(Int_t iAxis)
           
 voidSetCoef(Double_t iCoefK, Double_t iCoefB)
           
 voidSetCoefB(Double_t b)
           
 voidSetCoefByPoints(Double_t n1, Double_t y1, Double_t n2, Double_t y2)
           
 voidSetCoefByRange(Int_t nbins, Double_t y1, Double_t y2)
           
 voidSetCoefK(Double_t k)
           
 virtual voidTransformation(Double_t* scales, Int_t naxis)
           

Methods inherited from class Go4Fit.TGo4FitParsList
AddPar, CanRollbackPars, ClearPars, ClearParsBlocking, CollectParsTo, CreatePar, Find, Find, Find, FindPar, FindPar, FindPar, Get, GetPar, GetParEpsilon, GetParError, GetParFixed, GetParFullName, GetParIndex, GetParName, GetParRange, GetParsValues, GetParValue, InsertPar, IsAllParsFixed, MemorizePars, NumFixedPars, NumFreePars, NumPars, PrintPars, RememberPars, RemovePar, RemovePar, RemoveParByIndex, SetParEpsilon, SetParError, SetParFixed, SetParName, SetParRange, SetParsNames, SetParsOwner, SetParsValues, SetParsValues, SetParValue

Methods inherited from class Go4Fit.TGo4FitNamed
GetFullName, GetOwner, GetOwnerFullName, SetOwner

Methods inherited from class TNamed
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fdCoefB

protected Double_t fdCoefB

fdCoefK

protected Double_t fdCoefK

fiAxis

protected Int_t fiAxis
Constructor Detail

TGo4FitLinearTrans

public TGo4FitLinearTrans()

TGo4FitLinearTrans

public TGo4FitLinearTrans(const char * iName, const char * iTitle, Int_t iAxis)
Method Detail

~TGo4FitLinearTrans

public virtual synchronized ~TGo4FitLinearTrans()
Method Detail

GetAxis

public Int_t GetAxis()

GetCoefB

public Double_t GetCoefB()

GetCoefK

public Double_t GetCoefK()

Print

public virtual const void Print(Option_t* option)

SetAxis

public void SetAxis(Int_t iAxis)

SetCoef

public void SetCoef(Double_t iCoefK, Double_t iCoefB)

SetCoefB

public void SetCoefB(Double_t b)

SetCoefByPoints

public void SetCoefByPoints(Double_t n1, Double_t y1, Double_t n2, Double_t y2)

SetCoefByRange

public void SetCoefByRange(Int_t nbins, Double_t y1, Double_t y2)

SetCoefK

public void SetCoefK(Double_t k)

Transformation

public virtual void Transformation(Double_t* scales, Int_t naxis)

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005