Go4Fit
Class TGo4FitModelGauss2
- class TGo4FitModelGauss2
- derived from TGo4FitModel
Two dimensional gaussian peak.
Has following parameters:
"Ampl" - amplitude;
"Pos0" - line position on first coordinate;
"Pos1" - line position on second coordinate;
"Width0" - line width on first coordinate;
"Width1" - line width on second coordinate;
"Cov0_1" - covariation between first and second coordinate.
By default, first coordinate associated with x axis, second - with y axis. To create instance of this model:
TGo4FitModelGauss2 *g = new TGo4FitModelGauss2("Gauss", 5., 5., 1., 1., 0.5);
where first parameter - name of model component, then initial value for positions, widths and covariation parameters are defined. To assigned coordinates to another axis, two more parameters should be used in the constructor:
TGo4FitModelGauss2 *g = new TGo4FitModelGauss2("Gauss", 5., 5., 1., 1., 0.5, 1, 2);
where 1 - assignment of first coordinate to y axis , 2 - assignment of second coordinate to z axis.
Field Summary |
protected Int_t | fiNaxis1 Number of first selected axis. |
protected Int_t | fiNaxis2 Number of second selected axis. |
private Double_t | mu1 Temporary variable for EvalN() function. |
private Double_t | mu2 Temporary variable for EvalN() function. |
private Double_t | mult Temporary variable for EvalN() function. |
private Double_t | ro Temporary variable for EvalN() function. |
private Double_t | sig1 Temporary variable for EvalN() function. |
private Double_t | sig2 Temporary variable for EvalN() function. |
Fields inherited from class TNamed |
fName, fTitle |
Constructor Summary |
TGo4FitModelGauss2() Default constructor. |
TGo4FitModelGauss2(const char * iName, Double_t iPos1, Double_t iPos2, Double_t iWidth1, Double_t iWidth2, Double_t iCov12, Int_t iNaxis1, Int_t iNaxis2) Creates TGo4FitModelGauss2 with specified name.
|
Destructor Summary |
virtual synchronized | ~TGo4FitModelGauss2() Destroys TGo4FitModelGauss2 object. |
Method Summary |
virtual Bool_t | BeforeEval(Int_t ndim) |
virtual Double_t | EvalN(const Double_t* v) |
Int_t | GetNumAxis1() Return number of first selected axis. |
Int_t | GetNumAxis2() Return number of second selcted axis. |
protected virtual Int_t | GetPosParIndex(Int_t naxis) |
protected virtual Int_t | GetWidthParIndex(Int_t naxis) |
virtual const void | Print(Option_t* option) Prints information to standard output. |
Int_t | SetNumAxis1(Int_t n) Sets number of first selected axis. |
Int_t | SetNumAxis2(Int_t n) Sets number of second selected axis. |
Methods inherited from class Go4Fit.TGo4FitModel |
AddModelToDataResult, AfterEval, AssignmentName, AssignToData, BuffersAllocated, ChangeDataNameInAssignments, ClearAssigmentTo, ClearAssignments, ClearAssignmentTo, ConnectToDataIfAssigned, Evaluate, Evaluate, Evaluate, Evaluate, EvaluateAndIntegrate, EvaluateAtPoint, EvaluateAtPoint, Finalize, Get, GetAssignedConnection, GetDataFullIndex, GetDataIndexesSize, GetGroupIndex, GetModelBins, GetPosition, GetPosPar, GetRatioValueFor, GetWidth, GetWidthPar, Initialize, Integral, IsAssignTo, NeedIntegration, NumAssigments, NumPars, RebuildShape, SetBackgroundGroupIndex, SetGroupIndex, SetIntegrationsProperty, SetNeedToRebuild, SetPosition, SetWidth, UserFunction |
Methods inherited from class Go4Fit.TGo4FitComponent |
AddRangeCondition, AddRangeCut, CanAmplTouch, CheckRangeConditions, ClearRanges, CollectParsTo, ExcludeRange, GetAmplError, GetAmplFullName, GetAmplIndex, GetAmplName, GetAmplPar, GetAmplValue, GetNumRangeCondition, GetNumRangeCut, GetRangeCondition, GetRangeCut, GetRangeMax, GetRangeMin, GetUseBuffers, IsAnyRangeLimits, IsRangeCutExcluding, MakeAmpl, NewAmplitude, NewParameter, RemoveAmpl, RemoveRangeCondition, RemoveRangeCut, SetAmplError, SetAmplIndex, SetAmplValue, SetRange, SetRangeCondition, SetRangeCutExcluding, SetRangeMax, SetRangeMin, SetUseBuffers |
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 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 |
fiNaxis1
protected Int_t fiNaxis1
- Number of first selected axis.
fiNaxis2
protected Int_t fiNaxis2
- Number of second selected axis.
mu1
private Double_t mu1
- Temporary variable for EvalN() function.
mu2
private Double_t mu2
- Temporary variable for EvalN() function.
mult
private Double_t mult
- Temporary variable for EvalN() function.
ro
private Double_t ro
- Temporary variable for EvalN() function.
sig1
private Double_t sig1
- Temporary variable for EvalN() function.
sig2
private Double_t sig2
- Temporary variable for EvalN() function.
TGo4FitModelGauss2
public TGo4FitModelGauss2()
- Default constructor.
TGo4FitModelGauss2
public TGo4FitModelGauss2(const char * iName, Double_t iPos1, Double_t iPos2, Double_t iWidth1, Double_t iWidth2, Double_t iCov12, Int_t iNaxis1, Int_t iNaxis2)
- Creates TGo4FitModelGauss2 with specified name.
Initial value for positions, widths and covariation parameters can be specified.
Also number of selected axis, where 2-dim gaussian will be build, can be specified (default 0 and 1).
~TGo4FitModelGauss2
public virtual synchronized ~TGo4FitModelGauss2()
- Destroys TGo4FitModelGauss2 object.
BeforeEval
public virtual Bool_t BeforeEval(Int_t ndim)
EvalN
public virtual Double_t EvalN(const Double_t* v)
GetNumAxis1
public Int_t GetNumAxis1()
- Return number of first selected axis.
GetNumAxis2
public Int_t GetNumAxis2()
- Return number of second selcted axis.
GetPosParIndex
protected virtual Int_t GetPosParIndex(Int_t naxis)
GetWidthParIndex
protected virtual Int_t GetWidthParIndex(Int_t naxis)
Print
public virtual const void Print(Option_t* option)
- Prints information to standard output.
SetNumAxis1
public Int_t SetNumAxis1(Int_t n)
- Sets number of first selected axis.
SetNumAxis2
public Int_t SetNumAxis2(Int_t n)
- Sets number of second selected axis.
30-06-2005