| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Basic abstract class for represnting model components of fitted data.
Field Summary | |
protected Bool_t | fbAbsoluteEps States, if integration precision absolute or relative. |
protected Bool_t | fbIntegrScaling Scale integral to integration volume. |
private Bool_t | fbNeedToRebuild Internal flag. |
protected Double_t | fdIntegrEps Integration precision. |
private Int_t | fiGroupIndex Store group index of specified model. |
protected Int_t | fiMaxIntegrDepth Maximum intergration depth. |
protected Int_t | fiMinIntegrDepth Minimum depth of integration. |
private TGo4FitParsList* | fxAllPars List of all parameters, associated not only with component directly but also with incapsulated objects. |
private TArrayD* | fxAllParsValues |
private TObjArray | fxAssigments List of TGo4FitAssignment objects. |
private TArrayD | fxCurrentPars Array of values of parameters. |
private Double_t* | fxCurrentParsArray Pointer on array of parameters values. |
Fields inherited from class TNamed |
fName, fTitle |
Fields inherited from class Go4Fit.TGo4FitSlotList |
fbUpdateSlotList, fxSlotList |
Constructor Summary | |
TGo4FitModel() Default constructor. | |
TGo4FitModel(const char * iName, const char * iTitle, Bool_t MakeAmplitude) Creates TGo4FitModel object with given name. |
Destructor Summary | |
virtual synchronized | ~TGo4FitModel() Delete TGo4FitModel object. |
Method Summary | |
Bool_t | AddModelToDataResult(TGo4FitData* data) Evaluate model values for all data point and add them to result buffer. |
virtual void | AfterEval() Clear buffers, which were created by BeforeEval() method. |
const const char * | AssignmentName(Int_t n) Returns name of data, to which model object is assigned. |
void | AssignToData(const char * DataName, Double_t RatioValue, Bool_t FixRatio) Assign model to specified data object. |
virtual Bool_t | BeforeEval(Int_t ndim) Prepares (if necesary) some intermediate variables to be able calculate values of model via EvalN() function. |
protected const Bool_t | BuffersAllocated() Checks if model allocate buffers for calculations |
void | ChangeDataNameInAssignments(const char * oldname, const char * newname) Change name of data in assignments. |
void | ClearAssigmentTo(const char * DataName) |
void | ClearAssignments() Remove all assignments. |
void | ClearAssignmentTo(const char * DataName) Remove assignment to given data (if exists). |
void | ConnectToDataIfAssigned(TGo4FitData* data) Check, if model assigned to such a data (via name) and store pointer on this data object. |
virtual Double_t | EvalN(const Double_t* v) Calculates value of model according current parameters values and provided axes values. |
virtual Double_t | Evaluate(Double_t x) Calculates value of model for given x value. |
virtual Double_t | Evaluate(Double_t x, Double_t y) Calculates value of model for given x,y values. |
virtual Double_t | Evaluate(Double_t x, Double_t y, Double_t z) Calculates value of model for given x,y,z values. |
virtual Double_t | Evaluate(Double_t* v, Int_t ndim) Calculates value of model for given axis values. |
protected Double_t | EvaluateAndIntegrate(Int_t NumScales, const Double_t* Scales, const Double_t* Widths) Make integration of model inside given point, if integration specified. |
virtual Double_t | EvaluateAtPoint(TGo4FitData* data, Int_t nbin, Bool_t UseRanges) Evaluate model value for specified data point. |
virtual Double_t | EvaluateAtPoint(TGo4FitDataIter* iter, Bool_t UseRanges) Evaluate model value for point, specified by current values of iterator. |
protected virtual void | Finalize() Deletes all buffers, created during initialization. |
private const TGo4FitAssignment* | FindAssigment(const char * DataName) Find assignment to given data. |
protected virtual TGo4FitParameter* | Get(Int_t n) |
private TGo4FitAssignment* | GetAssigment(Int_t n) Return TGo4FitAssignment object with given index. |
private const TGo4FitAssignment* | GetAssigment(Int_t n) |
protected TGo4FitData* | GetAssignedConnection(Int_t n) Return pointer on assigned data. |
protected const const Int_t* | GetDataFullIndex(TGo4FitData* data, Int_t nbin) |
protected Int_t | GetDataIndexesSize(TGo4FitData* data) |
const Int_t | GetGroupIndex() Returns group index of model. |
protected const Double_t* | GetModelBins(const char * DataName) Get model bins for specified data (if exists) |
virtual Bool_t | GetPosition(Int_t naxis, Double_t& pos) Return position of model, if exists. |
protected virtual TGo4FitParameter* | GetPosPar(Int_t naxis) Return parameter (if exist), which represent position of model for given axis. |
protected virtual Int_t | GetPosParIndex(Int_t ) Return index of parameter (if exist), which represent position of model for given axis. |
private TString | GetRatioName(Int_t n) Set name of ratio parameter. |
Double_t | GetRatioValueFor(const char * DataName) Returns ratio value for specified data object. |
virtual Bool_t | GetWidth(Int_t naxis, Double_t& width) Returns with of model component, if exists. |
protected virtual TGo4FitParameter* | GetWidthPar(Int_t naxis) Return parameter (if exist), which represent width of model component for given axis. |
protected virtual Int_t | GetWidthParIndex(Int_t ) Return index of parameter (if exist), which represent width of model component for given axis. |
protected virtual Bool_t | Initialize(Int_t UseBuffers) Initialize model object. |
virtual Double_t | Integral() Calculates intagral of model component |
const Bool_t | IsAssignTo(const char * DataName) Checks, if model assigned to given data. |
Bool_t | NeedIntegration() Returns kTRUE, if integration properties were specified. |
const Int_t | NumAssigments() Returns number of assignment for this model. |
virtual Int_t | NumPars() |
virtual const void | Print(Option_t* option) Print information about model object on standard output. |
protected void | RebuildShape(Bool_t ForceBuild) Recalculates shape of object. |
private void | RemoveAllPars() Clear all buffers, allocated during initialization. |
void | SetBackgroundGroupIndex() Set group index to background (index=0). |
void | SetGroupIndex(Int_t index) Set group index of model. |
void | SetIntegrationsProperty(Int_t iMinIntegrDepth, Int_t iMaxIntegrDepth, Double_t iIntegrEps, Bool_t iAbsoluteEps, Bool_t iIntegrScaling) Set integration properties. |
protected void | SetNeedToRebuild() Sets flag, that shape bins should be refilled next time, when RebuildShape() routine will be called. |
virtual Bool_t | SetPosition(Int_t naxis, Double_t pos) Sets position of model component, if possible. |
virtual Bool_t | SetWidth(Int_t naxis, Double_t width) Sets width of model component, if possible. |
protected virtual Double_t | UserFunction(Double_t* , Double_t* ) Another place, where user specific code can be placed for model values calculation. |
Methods inherited from class Go4Fit.TGo4FitParsList |
AddPar, CanRollbackPars, ClearPars, ClearParsBlocking, CreatePar, Find, Find, Find, FindPar, FindPar, FindPar, GetPar, GetParEpsilon, GetParError, GetParFixed, GetParFullName, GetParIndex, GetParName, GetParRange, GetParsValues, GetParValue, InsertPar, IsAllParsFixed, MemorizePars, NumFixedPars, NumFreePars, 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 |
Methods inherited from class Go4Fit.TGo4FitSlotList |
CheckDuplicatesOnSlot, CheckObjects, ClearObjects, ClearSlot, ConnectSlots, ConnectSlots, FillSlotList, FindSlot, GetSlot, GetSlotList, IsEmptySlots, IsObjectInSlots, NumSlots, PrepareSlotsForWriting, SetObject, SetObject, SetSaveFlagForObjects, SetUpdateSlotList |
Field Detail |
protected Bool_t fbAbsoluteEps
protected Bool_t fbIntegrScaling
private Bool_t fbNeedToRebuild
protected Double_t fdIntegrEps
private Int_t fiGroupIndex
protected Int_t fiMaxIntegrDepth
protected Int_t fiMinIntegrDepth
private TGo4FitParsList* fxAllPars
private TArrayD* fxAllParsValues
private TObjArray fxAssigments
private TArrayD fxCurrentPars
private Double_t* fxCurrentParsArray
Constructor Detail |
public TGo4FitModel()
public TGo4FitModel(const char * iName, const char * iTitle, Bool_t MakeAmplitude)
Method Detail |
public virtual synchronized ~TGo4FitModel()
Method Detail |
public Bool_t AddModelToDataResult(TGo4FitData* data)
public virtual void AfterEval()
public const const char * AssignmentName(Int_t n)
public void AssignToData(const char * DataName, Double_t RatioValue, Bool_t FixRatio)
public virtual Bool_t BeforeEval(Int_t ndim)
protected const Bool_t BuffersAllocated()
public void ChangeDataNameInAssignments(const char * oldname, const char * newname)
public void ClearAssigmentTo(const char * DataName)
public void ClearAssignments()
public void ClearAssignmentTo(const char * DataName)
public void ConnectToDataIfAssigned(TGo4FitData* data)
public virtual Double_t EvalN(const Double_t* v)
public virtual Double_t Evaluate(Double_t x)
public virtual Double_t Evaluate(Double_t x, Double_t y)
public virtual Double_t Evaluate(Double_t x, Double_t y, Double_t z)
public virtual Double_t Evaluate(Double_t* v, Int_t ndim)
protected Double_t EvaluateAndIntegrate(Int_t NumScales, const Double_t* Scales, const Double_t* Widths)
public virtual Double_t EvaluateAtPoint(TGo4FitData* data, Int_t nbin, Bool_t UseRanges)
public virtual Double_t EvaluateAtPoint(TGo4FitDataIter* iter, Bool_t UseRanges)
protected virtual void Finalize()
private const TGo4FitAssignment* FindAssigment(const char * DataName)
protected virtual TGo4FitParameter* Get(Int_t n)
private TGo4FitAssignment* GetAssigment(Int_t n)
private const TGo4FitAssignment* GetAssigment(Int_t n)
protected TGo4FitData* GetAssignedConnection(Int_t n)
protected const const Int_t* GetDataFullIndex(TGo4FitData* data, Int_t nbin)
protected Int_t GetDataIndexesSize(TGo4FitData* data)
public const Int_t GetGroupIndex()
protected const Double_t* GetModelBins(const char * DataName)
public virtual Bool_t GetPosition(Int_t naxis, Double_t& pos)
protected virtual TGo4FitParameter* GetPosPar(Int_t naxis)
protected virtual Int_t GetPosParIndex(Int_t )
private TString GetRatioName(Int_t n)
public Double_t GetRatioValueFor(const char * DataName)
public virtual Bool_t GetWidth(Int_t naxis, Double_t& width)
protected virtual TGo4FitParameter* GetWidthPar(Int_t naxis)
protected virtual Int_t GetWidthParIndex(Int_t )
protected virtual Bool_t Initialize(Int_t UseBuffers)
public virtual Double_t Integral()
public const Bool_t IsAssignTo(const char * DataName)
public Bool_t NeedIntegration()
public const Int_t NumAssigments()
public virtual Int_t NumPars()
public virtual const void Print(Option_t* option)
protected void RebuildShape(Bool_t ForceBuild)
private void RemoveAllPars()
public void SetBackgroundGroupIndex()
public void SetGroupIndex(Int_t index)
public void SetIntegrationsProperty(Int_t iMinIntegrDepth, Int_t iMaxIntegrDepth, Double_t iIntegrEps, Bool_t iAbsoluteEps, Bool_t iIntegrScaling)
protected void SetNeedToRebuild()
public virtual Bool_t SetPosition(Int_t naxis, Double_t pos)
public virtual Bool_t SetWidth(Int_t naxis, Double_t width)
protected virtual Double_t UserFunction(Double_t* , Double_t* )
Association Links |
to Class TArrayD
to Class TGo4FitParsList
to Class TArrayD
to Class TGo4FitAssignment
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |