| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Central class of Go4Fit package.
Inner Class Summary | |
public class | TGo4Fitter._enum_TGo4Fitter_h_43 |
Field Summary | |
protected Int_t | fiFitFunctionType Defines type of fitted function. |
protected Int_t | fiMemoryUsage Defines use of memory during actions executions. |
protected TObjArray | fxDatas Container for data objects. |
private TObjArray* | fxDrawObjs |
protected TObjArray | fxModels Container for model components. |
private TUserFitFunction | fxUserFitFunction Pointer on user fit function. |
Fields inherited from class Go4Fit.TGo4FitterAbstract |
fbInitializationDone, fbNeedToFinalize, fbParsAsResults, fbParsChange, fxActions, fxCurrentConfig, fxResults |
Fields inherited from class TNamed |
fName, fTitle |
Fields inherited from class Go4Fit.TGo4FitSlotList |
fbUpdateSlotList, fxSlotList |
Constructor Summary | |
TGo4Fitter() Default constructor. | |
TGo4Fitter(const char * iName, const char * iTitle) Creates TGo4Fitter object and sets name and title. | |
TGo4Fitter(const char * iName, Int_t iFitFunctionType, Bool_t IsAddStandardActions) Creates TGo4Fitter object and set type of fit function. |
Destructor Summary | |
virtual synchronized | ~TGo4Fitter() Destructor. |
Method Summary | |
void | AddAmplEstimation(Int_t NumIters) Add amplitude estimation to actions list. |
TGo4FitData* | AddData(TGo4FitData* d) Add data object to fitter. |
TGo4FitModelGauss1* | AddGauss1(const char * DataName, const char * ModelName, Double_t iPosition, Double_t iWidth, Double_t iAmpl, Int_t Axis) Add 1-dim gaussian model to fitter. |
TGo4FitDataGraph* | AddGraph(const char * DataName, TGraph* gr, Bool_t Owned, Double_t lrange, Double_t rrange) Create TGo4FitDataGraph object and adds its to fitter. |
TGo4FitDataHistogram* | AddH1(const char * DataName, TH1* histo, Bool_t Owned, Double_t lrange, Double_t rrange) Create TGo4FitDataHistogram object and adds its to fitter. |
TGo4FitModel* | AddModel(TGo4FitModel* m) Add model component to fitter. |
TGo4FitModel* | AddModel(const char * DataName, TGo4FitModel* m) Add model component to fitter and assign it to specified data object. |
void | AddPolynoms(const char * DataName, const char * NamePrefix, Int_t MaxOrder, Int_t NumAxis, Int_t GroupIndex) Construct full polynom for specified data object. |
void | AddPolynomX(const char * DataName, const char * NamePrefix, Int_t MaxOrder, Int_t GroupIndex, Double_t lrange, Double_t rrange) Construct 1-dim polynom for specified data object for x scale. |
void | AddPolynomX(const char * DataName, const char * NamePrefix, TArrayD& Coef, Int_t GroupIndex) Construct 1-dim polynom with specified polynom coefficients NamePrefix sets prefix of model name for each polynom component. |
void | AddStandardActions() Add list of standard actions to fitter. |
void | AssignModelTo(const char * ModelName, const char * DataName, Double_t RatioValue, Bool_t FixRatio) Assign model to specified data object. |
protected Double_t | CalculateFCN(Int_t FitFunctionType, TGo4FitData* selectdata) |
Double_t | CalculateFitFunction(Double_t* pars, Int_t FitFunctionType, const char * DataName) Calculate value of fit function for given set of parameters and specified type of fit function (it can not correspond to minimized fit function type). |
Int_t | CalculateNDF(const char * DataName) Calculates number of degree of freedom (NDF). |
Double_t | CalculatesIntegral(const char * DataName, const char * ModelName, Bool_t OnlyCounts) Calculates integral for data or model (if ModelName is specified) if OnlyCounts specified, only sum of values in bins position are calculated |
Double_t | CalculatesModelIntegral(const char * ModelName, Bool_t OnlyCounts) Calculates integral of model (if ModelName is specified) if OnlyCounts specified, only sum of values in bins position are calculated |
Bool_t | CalculatesMomentums(const char * DataName, Bool_t UseRanges, Bool_t SubstractModels, Double_t& first, Double_t& second) Calculates first and second momentum for specified data Usage of ranges and substraction of model can be specified |
void | ChangeDataNameInAssignments(const char * oldname, const char * newname) Change data name in model component assignments. |
private void | CheckSlotsBeforeDelete(TGo4FitComponent* comp) |
virtual void | Clear(Option_t* option) Remove all data, all models and all actions |
void | ClearModelAssignmentTo(const char * ModelName, const char * DataName) Remove assignment to given data (if exists). |
protected virtual void | CollectAllPars() |
TObject* | CreateDrawObject(const char * ObjName, const char * DataName, Bool_t IsModel, const char * ModelName) Create object (TH1 or TGraph), which can be drawn. |
protected Bool_t | DataBuffersAllocated(TGo4FitData* data) |
void | DeleteAllData() Delete all data objects from fitter. |
void | DeleteAllModels() Delete all model objects from fitter. |
void | DeleteModelsAssosiatedTo(const char * DataName) Remove models assosiated with specific data. |
protected virtual Double_t | DoCalculation() |
protected virtual Int_t | DoNDFCalculation() |
virtual void | Draw(Option_t* option) Draw fitter on current canvas. |
void | EstimateAmplitudes(Int_t NumIters) Estimate amplitude of all model components. |
virtual void | FillSlotList(TSeqCollection* list) Collect all TGo4FitSlot objects, situated in fitter, data and models to givven TObjArray. |
protected virtual void | FinalizeFitterData() |
TGo4FitData* | FindData(const char * DataName) Return data object with given name. if no corresponding objects, return 0. |
TGo4FitModel* | FindModel(const char * ModelName) Return model component with given name. |
TString | FindNextName(const char * Head, Int_t start, Bool_t isModel) |
TGo4FitComponent* | GetComp(Int_t n) Return TGo4FitComponent object with given index. |
TGo4FitData* | GetData(Int_t n) Return data object with given index. |
protected Double_t* | GetDataBinsDevs(TGo4FitData* data) |
protected Double_t* | GetDataBinsResult(TGo4FitData* data) |
protected Int_t | GetDataBinsSize(TGo4FitData* data) |
protected Double_t* | GetDataBinsValues(TGo4FitData* data) |
const const char * | GetDataName(Int_t n) Return name of data object with given index. |
Int_t | GetFitFunctionType() Return type of fitted function. |
Int_t | GetMemoryUsage() Retrurn value of memory usage parameter. |
TGo4FitModel* | GetModel(Int_t n) Return model component with given index. |
protected Double_t* | GetModelBinsValues(TGo4FitModel* model, const char * DataName) |
const Int_t | GetNumComp() Return total number of TGo4FitComponent (data and model) objects in fitter. |
const Int_t | GetNumData() Return number of data objects in fitter. |
const Int_t | GetNumModel() Return number of model component in fitter. |
protected virtual Bool_t | InitFitterData() |
protected Bool_t | ModelBuffersAllocated(TGo4FitModel* model) |
private void | MoveDrawObjectsToROOT() |
Int_t | NumModelsAssosiatedTo(const char * DataName) Counts models assosiated with specific data. |
protected Double_t | PointFitFunction(Int_t FitFunctionType, Double_t value, Double_t modelvalue, Double_t standdev) |
virtual const void | Print(Option_t* option) Print containment of fitter. |
const void | PrintAmpls() Print value of all amplitude parameters. |
const void | PrintLines() Print amplitude, position and width for each model components |
void | ProvideLastDrawObjects(TObjArray& lst) Copy pointer on drawn object after last command to specified TObjArray. |
protected void | RebuildAll(Bool_t ForceBuild) Update all data objects and model components acording to current parameters values. |
TGo4FitData* | RemoveData(const char * DataName, Bool_t IsDel) Remove data object from fitter. |
TGo4FitModel* | RemoveModel(const char * ModelName, Bool_t IsDel) Remove model component from fitter. |
void | SetFitFunctionType(Int_t iFitFunctionType) Set fitted function type for minimization. |
TGo4FitDataGraph* | SetGraph(const char * DataName, TGraph* gr, Bool_t Owned) Set graph to existing TGo4FitDataGraph object |
TGo4FitDataHistogram* | SetH1(const char * DataName, TH1* histo, Bool_t Owned) Set histogram to existing TGo4FitDataHistogram object |
void | SetMemoryUsage(Int_t iMemoryUsage) Set value of memory usage. |
void | SetUserFitFunction(TUserFitFunction iFunc) Set user-defined fitted function. |
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, FindSlot, GetSlot, GetSlotList, IsEmptySlots, IsObjectInSlots, NumSlots, PrepareSlotsForWriting, SetObject, SetObject, SetSaveFlagForObjects, SetUpdateSlotList |
Field Detail |
protected Int_t fiFitFunctionType
protected Int_t fiMemoryUsage
protected TObjArray fxDatas
private TObjArray* fxDrawObjs
protected TObjArray fxModels
private TUserFitFunction fxUserFitFunction
Constructor Detail |
public TGo4Fitter()
public TGo4Fitter(const char * iName, const char * iTitle)
public TGo4Fitter(const char * iName, Int_t iFitFunctionType, Bool_t IsAddStandardActions)
Method Detail |
public virtual synchronized ~TGo4Fitter()
Method Detail |
public void AddAmplEstimation(Int_t NumIters)
public TGo4FitData* AddData(TGo4FitData* d)
public TGo4FitModelGauss1* AddGauss1(const char * DataName, const char * ModelName, Double_t iPosition, Double_t iWidth, Double_t iAmpl, Int_t Axis)
public TGo4FitDataGraph* AddGraph(const char * DataName, TGraph* gr, Bool_t Owned, Double_t lrange, Double_t rrange)
public TGo4FitDataHistogram* AddH1(const char * DataName, TH1* histo, Bool_t Owned, Double_t lrange, Double_t rrange)
public TGo4FitModel* AddModel(TGo4FitModel* m)
public TGo4FitModel* AddModel(const char * DataName, TGo4FitModel* m)
public void AddPolynoms(const char * DataName, const char * NamePrefix, Int_t MaxOrder, Int_t NumAxis, Int_t GroupIndex)
public void AddPolynomX(const char * DataName, const char * NamePrefix, Int_t MaxOrder, Int_t GroupIndex, Double_t lrange, Double_t rrange)
public void AddPolynomX(const char * DataName, const char * NamePrefix, TArrayD& Coef, Int_t GroupIndex)
public void AddStandardActions()
public void AssignModelTo(const char * ModelName, const char * DataName, Double_t RatioValue, Bool_t FixRatio)
protected Double_t CalculateFCN(Int_t FitFunctionType, TGo4FitData* selectdata)
public Double_t CalculateFitFunction(Double_t* pars, Int_t FitFunctionType, const char * DataName)
public Int_t CalculateNDF(const char * DataName)
public Double_t CalculatesIntegral(const char * DataName, const char * ModelName, Bool_t OnlyCounts)
public Double_t CalculatesModelIntegral(const char * ModelName, Bool_t OnlyCounts)
public Bool_t CalculatesMomentums(const char * DataName, Bool_t UseRanges, Bool_t SubstractModels, Double_t& first, Double_t& second)
public void ChangeDataNameInAssignments(const char * oldname, const char * newname)
private void CheckSlotsBeforeDelete(TGo4FitComponent* comp)
public virtual void Clear(Option_t* option)
public void ClearModelAssignmentTo(const char * ModelName, const char * DataName)
protected virtual void CollectAllPars()
public TObject* CreateDrawObject(const char * ObjName, const char * DataName, Bool_t IsModel, const char * ModelName)
protected Bool_t DataBuffersAllocated(TGo4FitData* data)
public void DeleteAllData()
public void DeleteAllModels()
public void DeleteModelsAssosiatedTo(const char * DataName)
protected virtual Double_t DoCalculation()
protected virtual Int_t DoNDFCalculation()
public virtual void Draw(Option_t* option)
public void EstimateAmplitudes(Int_t NumIters)
public virtual void FillSlotList(TSeqCollection* list)
protected virtual void FinalizeFitterData()
public TGo4FitData* FindData(const char * DataName)
public TGo4FitModel* FindModel(const char * ModelName)
public TString FindNextName(const char * Head, Int_t start, Bool_t isModel)
public TGo4FitComponent* GetComp(Int_t n)
public TGo4FitData* GetData(Int_t n)
protected Double_t* GetDataBinsDevs(TGo4FitData* data)
protected Double_t* GetDataBinsResult(TGo4FitData* data)
protected Int_t GetDataBinsSize(TGo4FitData* data)
protected Double_t* GetDataBinsValues(TGo4FitData* data)
public const const char * GetDataName(Int_t n)
public Int_t GetFitFunctionType()
public Int_t GetMemoryUsage()
public TGo4FitModel* GetModel(Int_t n)
protected Double_t* GetModelBinsValues(TGo4FitModel* model, const char * DataName)
public const Int_t GetNumComp()
public const Int_t GetNumData()
public const Int_t GetNumModel()
protected virtual Bool_t InitFitterData()
protected Bool_t ModelBuffersAllocated(TGo4FitModel* model)
private void MoveDrawObjectsToROOT()
public Int_t NumModelsAssosiatedTo(const char * DataName)
protected Double_t PointFitFunction(Int_t FitFunctionType, Double_t value, Double_t modelvalue, Double_t standdev)
public virtual const void Print(Option_t* option)
public const void PrintAmpls()
public const void PrintLines()
public void ProvideLastDrawObjects(TObjArray& lst)
protected void RebuildAll(Bool_t ForceBuild)
public TGo4FitData* RemoveData(const char * DataName, Bool_t IsDel)
public TGo4FitModel* RemoveModel(const char * ModelName, Bool_t IsDel)
public void SetFitFunctionType(Int_t iFitFunctionType)
public TGo4FitDataGraph* SetGraph(const char * DataName, TGraph* gr, Bool_t Owned)
public TGo4FitDataHistogram* SetH1(const char * DataName, TH1* histo, Bool_t Owned)
public void SetMemoryUsage(Int_t iMemoryUsage)
public void SetUserFitFunction(TUserFitFunction iFunc)
Association Links |
to Class TObjArray
to Class TObjArray
to Class TGo4FitModel
to Class TGo4FitData
| 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 |