| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstract fitter class.
This is abstract class, which implement a general behaviour of fitter.
It has a list of all parameters (class inherited from TGo4FitParsList) and function, which should be fitted.
It has a list of action, which may be performed on the fitter.
The specific things, like list of data and list of models, are implemented in inherited TGo4Fitter class.
Field Summary | |
protected Bool_t | fbInitializationDone Flag showing, that initialization was complete. |
protected Bool_t | fbNeedToFinalize Flag, showing, that finalize method should be called before fitter will be destroyed. |
protected Bool_t | fbParsAsResults |
protected Bool_t | fbParsChange Boolean variable, showing that number of parameters is changed. |
protected TObjArray | fxActions Array of actions onkects (inherited from TGo4FitterAction). |
protected TGo4FitterConfig* | fxCurrentConfig Pointer on currently activated config object. |
protected TArrayD | fxResults Array of result values. |
Fields inherited from class TNamed |
fName, fTitle |
Fields inherited from class Go4Fit.TGo4FitSlotList |
fbUpdateSlotList, fxSlotList |
Constructor Summary | |
TGo4FitterAbstract() Default constructor. | |
TGo4FitterAbstract(const char * iName, const char * iTitle) Create TGo4FitterAbstract object with given name and tiile. |
Destructor Summary | |
virtual synchronized | ~TGo4FitterAbstract() Destroy TGo4FitterAbstract object. |
Method Summary | |
void | AddAction(TGo4FitterAction* Action) Add action to action list. |
void | AddActionAt(TGo4FitterAction* Action, Int_t indx) Add action to action list at specified index. |
TGo4FitterOutput* | AddOutputAction(const char * Action, const char * Option) Creates and add TGo4FitterOutput action with given parameters to actions list. |
void | AddSimpleMinuit() Creates and add TGo4FitMinuit object to actions list. |
Bool_t | ApplyConfig(TGo4FitterConfig* Config) Set active configuration object. |
Double_t | CalculateFitFunction(Double_t* pars) Calculates value of fit function. |
protected void | CheckParsListChanging() If appropriate flag sets (via SetParsListChange() method), function recollect all parameters from all objects, associated to fitter. |
virtual void | Clear(Option_t* option) Clear fitter. |
protected virtual void | CollectAllPars() Should collect parameters from all associated to fitter objects. |
void | CopyParsValuesFrom(TGo4FitterAbstract* fitter) If provided fitter has a same list of parameters, their values will be copied to fitter. |
void | DeleteAction(TGo4FitterAction* action) Remove action from actions list and destroy it. |
void | DeleteActions() Remove and delete all actions from actions list. |
void | DeleteOutputActions() Remove and delete all output actions from actions list. |
void | DoAction(TGo4FitterAction* Action) Executes specified action. |
void | DoAction(Int_t indx) Executes specified action from actions list. |
void | DoActions(Bool_t AllowFitterChange, TObjArray* Actions) Executes actions list. |
protected virtual Double_t | DoCalculation() Calculates value of fit function according current values of parameters. |
protected virtual Int_t | DoNDFCalculation() Calculates number of dimensions of freedom; Should be implemented in inherited classes. |
protected void | ExecuteDependencies(Double_t* pars) Execute dependenices in currently associated configuration (if exist). |
protected virtual void | Finalize() Remove all buffer, created in Initialize() routine. |
protected void | FinalizeDependencies(TObjArray& Dependencies) Relese memory, allocated for dependency executions. |
protected virtual void | FinalizeFitterData() Finalize fitter data. |
protected virtual TGo4FitParameter* | Get(Int_t n) Return pointer on parameter of given index. |
TGo4FitterAction* | GetAction(Int_t num) Returns pointer on action with given index. |
Int_t | GetNumActions() Returns number of action in actions list. |
const Int_t | GetNumResults() Return number of result values. |
virtual Bool_t | GetParEpsilon(const char * ParName, Double_t& Epsilon) Return kTRUE, if epsilon value specified for parameter. |
virtual Bool_t | GetParFixed(const char * ParName) Return kTRUE, if parameter should be fixed. |
virtual Bool_t | GetParRange(const char * ParName, Double_t& RangeMin, Double_t& RangeMax) Return kTRUE, if range condition specified for parameter and range boundaries. |
const Double_t | GetResultFF() Return result value of fit function. |
const Int_t | GetResultNDF() Return result value of number of degree of freedom. |
const const TArrayD* | GetResults() Returns pointer on array of result values. |
const Double_t | GetResultValue(Int_t n) Return value of result with given index. |
protected virtual Bool_t | InitFitterData() Initialize fitter data. |
protected virtual Bool_t | Initialize() Initialize fitter. |
protected Bool_t | InitializeDependencies(TObjArray& Dependencies, Bool_t BlockPars, Bool_t DoInit) Initialize a list of dependencies (TGo4FitDependecy object), which used in configuration. |
protected Bool_t | IsInitialized() Return kTRUE, if Initialize() was done. |
Bool_t | IsParsAsResults() Return kTRUE, if parameters were taken as result values. |
Bool_t | IsSuitableConfig(TGo4FitterConfig* Config) Checks, if config object corresponds to fitter parameters. |
Int_t | NeedPadsNumber() Returns required number of TPad for actions output. |
virtual Int_t | NumPars() Return total number of parameters, which should be fitted. |
virtual const void | Print(Option_t* option) Print information about fitter to standar output. |
const void | PrintResults() Print result values to standard output. |
TObjArray* | ProcessObjects(TObjArray* objs, Bool_t CloneFitter, Bool_t OnlyRequired, TObjArray* rownames, TObjArray* colnames) |
void | ReplaceAction(TGo4FitterAction* action, Int_t dir) Shift action in action list upward (dir=-1) or downward (dir=+1). |
protected void | RunDependenciesList(TObjArray& Dependencies, Double_t* pars) Execute dependency equations. |
void | SetPad(Int_t indx, TVirtualPad* pad) Set pad, which will be used for output of TGo4FitterOutput object. |
void | SetParsListChange() Should be used, when number of parameters are changed. |
Methods inherited from class Go4Fit.TGo4FitParsList |
AddPar, CanRollbackPars, ClearPars, ClearParsBlocking, CollectParsTo, CreatePar, Find, Find, Find, FindPar, FindPar, FindPar, GetPar, GetParError, GetParFullName, GetParIndex, GetParName, 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=, 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 fbInitializationDone
protected Bool_t fbNeedToFinalize
protected Bool_t fbParsAsResults
protected Bool_t fbParsChange
protected TObjArray fxActions
protected TGo4FitterConfig* fxCurrentConfig
protected TArrayD fxResults
Constructor Detail |
public TGo4FitterAbstract()
public TGo4FitterAbstract(const char * iName, const char * iTitle)
Method Detail |
public virtual synchronized ~TGo4FitterAbstract()
Method Detail |
public void AddAction(TGo4FitterAction* Action)
public void AddActionAt(TGo4FitterAction* Action, Int_t indx)
public TGo4FitterOutput* AddOutputAction(const char * Action, const char * Option)
public void AddSimpleMinuit()
public Bool_t ApplyConfig(TGo4FitterConfig* Config)
public Double_t CalculateFitFunction(Double_t* pars)
protected void CheckParsListChanging()
public virtual void Clear(Option_t* option)
protected virtual void CollectAllPars()
public void CopyParsValuesFrom(TGo4FitterAbstract* fitter)
public void DeleteAction(TGo4FitterAction* action)
public void DeleteActions()
public void DeleteOutputActions()
public void DoAction(TGo4FitterAction* Action)
public void DoAction(Int_t indx)
public void DoActions(Bool_t AllowFitterChange, TObjArray* Actions)
protected virtual Double_t DoCalculation()
protected virtual Int_t DoNDFCalculation()
protected void ExecuteDependencies(Double_t* pars)
protected virtual void Finalize()
protected void FinalizeDependencies(TObjArray& Dependencies)
protected virtual void FinalizeFitterData()
protected virtual TGo4FitParameter* Get(Int_t n)
public TGo4FitterAction* GetAction(Int_t num)
public Int_t GetNumActions()
public const Int_t GetNumResults()
public virtual Bool_t GetParEpsilon(const char * ParName, Double_t& Epsilon)
public virtual Bool_t GetParFixed(const char * ParName)
public virtual Bool_t GetParRange(const char * ParName, Double_t& RangeMin, Double_t& RangeMax)
public const Double_t GetResultFF()
public const Int_t GetResultNDF()
public const const TArrayD* GetResults()
public const Double_t GetResultValue(Int_t n)
protected virtual Bool_t InitFitterData()
protected virtual Bool_t Initialize()
protected Bool_t InitializeDependencies(TObjArray& Dependencies, Bool_t BlockPars, Bool_t DoInit)
protected Bool_t IsInitialized()
public Bool_t IsParsAsResults()
public Bool_t IsSuitableConfig(TGo4FitterConfig* Config)
public Int_t NeedPadsNumber()
public virtual Int_t NumPars()
public virtual const void Print(Option_t* option)
public const void PrintResults()
public TObjArray* ProcessObjects(TObjArray* objs, Bool_t CloneFitter, Bool_t OnlyRequired, TObjArray* rownames, TObjArray* colnames)
public void ReplaceAction(TGo4FitterAction* action, Int_t dir)
protected void RunDependenciesList(TObjArray& Dependencies, Double_t* pars)
public void SetPad(Int_t indx, TVirtualPad* pad)
public void SetParsListChange()
Association Links |
to Class TArrayD
to Class TGo4FitterConfig
to Class TGo4FitterAction
| 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 |