GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4FitModelGauss2.h>
Public Member Functions | |
TGo4FitModelGauss2 () | |
TGo4FitModelGauss2 (const char *iName, Double_t iPos1=1., Double_t iPos2=1., Double_t iWidth1=1., Double_t iWidth2=1., Double_t iCov12=0., Int_t iNaxis1=0, Int_t iNaxis2=1) | |
virtual | ~TGo4FitModelGauss2 () |
Int_t | GetNumAxis1 () |
Int_t | GetNumAxis2 () |
Int_t | SetNumAxis1 (Int_t n) |
Int_t | SetNumAxis2 (Int_t n) |
virtual void | Print (Option_t *option) const |
virtual Bool_t | BeforeEval (Int_t ndim) |
virtual Double_t | EvalN (const Double_t *v) |
Public Member Functions inherited from TGo4FitModel | |
TGo4FitModel () | |
TGo4FitModel (const char *iName, const char *iTitle, Bool_t MakeAmplitude=kFALSE) | |
virtual | ~TGo4FitModel () |
void | SetGroupIndex (Int_t index=-1) |
void | SetBackgroundGroupIndex () |
Int_t | GetGroupIndex () const |
Int_t | NumAssigments () const |
const char * | AssignmentName (Int_t n) |
void | AssignToData (const char *DataName, Double_t RatioValue=1., Bool_t FixRatio=kFALSE) |
Bool_t | IsAssignTo (const char *DataName) const |
void | ChangeDataNameInAssignments (const char *oldname, const char *newname) |
void | ClearAssignmentTo (const char *DataName) |
void | ClearAssigmentTo (const char *DataName) |
void | ClearAssignments () |
void | ConnectToDataIfAssigned (TGo4FitData *data) |
Double_t | GetRatioValueFor (const char *DataName) |
virtual Double_t | Evaluate (Double_t x) |
virtual Double_t | Evaluate (Double_t x, Double_t y) |
virtual Double_t | Evaluate (Double_t x, Double_t y, Double_t z) |
virtual Double_t | Evaluate (Double_t *v, Int_t ndim) |
virtual Double_t | Integral () |
virtual Bool_t | GetPosition (Int_t naxis, Double_t &pos) |
virtual Bool_t | SetPosition (Int_t naxis, Double_t pos) |
virtual Bool_t | GetWidth (Int_t naxis, Double_t &width) |
virtual Bool_t | SetWidth (Int_t naxis, Double_t width) |
void | SetIntegrationsProperty (Int_t iMinIntegrDepth, Int_t iMaxIntegrDepth=0, Double_t iIntegrEps=0., Bool_t iAbsoluteEps=kFALSE, Bool_t iIntegrScaling=kFALSE) |
Bool_t | NeedIntegration () |
virtual void | AfterEval () |
virtual Double_t | EvaluateAtPoint (TGo4FitData *data, Int_t nbin, Bool_t UseRanges=kTRUE) |
virtual Double_t | EvaluateAtPoint (TGo4FitDataIter *iter, Bool_t UseRanges=kTRUE) |
Bool_t | AddModelToDataResult (TGo4FitData *data) |
virtual Int_t | NumPars () |
Public Member Functions inherited from TGo4FitComponent | |
TGo4FitComponent () | |
TGo4FitComponent (const char *iName, const char *iTitle) | |
virtual | ~TGo4FitComponent () |
TGo4FitParameter * | GetAmplPar () |
const char * | GetAmplName () |
const char * | GetAmplFullName () |
Double_t | GetAmplValue () |
void | SetAmplValue (Double_t iAmpl) |
Double_t | GetAmplError () |
void | SetAmplError (Double_t iError) |
Bool_t | MakeAmpl (Bool_t isFixed=kFALSE) |
Bool_t | RemoveAmpl () |
virtual Bool_t | CanAmplTouch () |
void | SetRange (Int_t naxis, Double_t min, Double_t max) |
void | ExcludeRange (Int_t naxis, Double_t min, Double_t max) |
void | SetRangeMin (Int_t naxis, Double_t value) |
void | SetRangeMax (Int_t naxis, Double_t value) |
void | AddRangeCut (TCutG *cut, Bool_t exclude=kFALSE) |
void | ClearRanges (Int_t naxis=-1) |
Bool_t | IsAnyRangeLimits () |
Bool_t | GetRangeMin (Int_t naxis, Double_t &value) |
Bool_t | GetRangeMax (Int_t naxis, Double_t &value) |
Int_t | GetNumRangeCondition () const |
void | GetRangeCondition (Int_t n, Int_t &typ, Int_t &naxis, Double_t &left, Double_t &right) const |
void | SetRangeCondition (Int_t n, Int_t typ, Int_t naxis, Double_t left, Double_t right) |
void | AddRangeCondition (Int_t typ, Int_t naxis, Double_t left, Double_t right) |
void | RemoveRangeCondition (Int_t n) |
Int_t | GetNumRangeCut () const |
TCutG * | GetRangeCut (Int_t n) const |
Bool_t | IsRangeCutExcluding (Int_t n) |
void | SetRangeCutExcluding (Int_t n, Bool_t exclude=kTRUE) |
void | RemoveRangeCut (Int_t n) |
Bool_t | CheckRangeConditions (const Double_t *values, Int_t numaxis) |
virtual void | CollectParsTo (TGo4FitParsList &list) |
void | SetUseBuffers (Bool_t iUse) |
Bool_t | GetUseBuffers () |
Public Member Functions inherited from TGo4FitParsList | |
TGo4FitParsList () | |
TGo4FitParsList (Bool_t IsParsOwned) | |
TGo4FitParsList (const char *Name, const char *Title, Bool_t IsParsOwned) | |
virtual | ~TGo4FitParsList () |
TGo4FitParameter * | GetPar (Int_t n) |
Int_t | GetParIndex (const TGo4FitParameter *par) |
TGo4FitParameter * | FindPar (const char *ParName) |
TGo4FitParameter * | FindPar (const char *OwnerFullName, const char *ParName) |
TGo4FitParameter * | FindPar (TGo4FitParameter *par) |
Double_t | GetParValue (const char *ParName) |
Bool_t | SetParValue (const char *ParName, Double_t iValue) |
void | GetParsValues (Double_t *pars) |
void | SetParsValues (Double_t *pars) |
Double_t | GetParError (const char *ParName) |
Bool_t | SetParError (const char *ParName, Double_t iError) |
virtual Bool_t | SetParFixed (const char *ParName, Bool_t iFixed=kTRUE) |
virtual Bool_t | GetParFixed (const char *ParName) |
Int_t | NumFixedPars () |
Int_t | NumFreePars () |
virtual Bool_t | SetParRange (const char *ParName, Double_t RangeMin, Double_t RangeMax) |
virtual Bool_t | GetParRange (const char *ParName, Double_t &RangeMin, Double_t &RangeMax) |
virtual Bool_t | SetParEpsilon (const char *ParName, Double_t Epsilon) |
virtual Bool_t | GetParEpsilon (const char *ParName, Double_t &Epsilon) |
void | SetParName (Int_t n, const char *name) |
const char * | GetParName (Int_t n) |
const char * | GetParFullName (Int_t n) |
void | SetParsNames (const char *name0="Par0", const char *name1="Par1", const char *name2="Par2", const char *name3="Par3", const char *name4="Par4", const char *name5="Par5", const char *name6="Par6", const char *name7="Par7", const char *name8="Par8", const char *name9="Par9") |
void | SetParsValues (Double_t par0=0., Double_t par1=0., Double_t par2=0., Double_t par3=0., Double_t par4=0., Double_t par5=0., Double_t par6=0., Double_t par7=0., Double_t par8=0., Double_t par9=0.) |
virtual void | MemorizePars () |
virtual bool | CanRollbackPars () |
virtual void | RememberPars () |
Bool_t | IsAllParsFixed () |
TGo4FitParameter * | CreatePar (const char *ParName, const char *Title, Double_t iValue=0) |
Bool_t | RemovePar (const char *name) |
Bool_t | RemovePar (TGo4FitParameter *par) |
void | PrintPars () const |
void | ClearPars () |
Public Member Functions inherited from TGo4FitNamed | |
TGo4FitNamed () | |
TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=0) | |
virtual | ~TGo4FitNamed () |
const char * | GetFullName () |
const char * | GetOwnerFullName () |
void | SetOwner (TNamed *iOwner) |
TNamed * | GetOwner () |
void | Print (Option_t *option) const |
Public Member Functions inherited from TGo4FitSlotList | |
TGo4FitSlotList () | |
virtual | ~TGo4FitSlotList () |
virtual void | FillSlotList (TSeqCollection *lst) |
void | SetUpdateSlotList () |
const TObjArray * | GetSlotList (Bool_t ForceUpdate=kFALSE) |
Int_t | NumSlots () |
TGo4FitSlot * | GetSlot (Int_t nslot) |
TGo4FitSlot * | FindSlot (const char *FullSlotName) |
Bool_t | ConnectSlots (TGo4FitSlot *slot1, TGo4FitSlot *slot2) |
Bool_t | ConnectSlots (const char *Slot1FullName, const char *Slot2FullName) |
TGo4FitSlot * | SetObject (TObject *obj, Bool_t iOwned=kFALSE) |
TGo4FitSlot * | SetObject (const char *PlaceName, TObject *obj, Bool_t iOwned=kFALSE) |
TGo4FitSlot * | IsObjectInSlots (TObject *obj) |
Bool_t | CheckObjects (Bool_t MakeOut=kTRUE) |
Bool_t | IsEmptySlots () |
void | ClearObjects (const char *PlaceName=0, Bool_t NonOwned=kTRUE) |
void | ClearSlot (TGo4FitSlot *slot, Bool_t NonOwned) |
void | SetSaveFlagForObjects (Int_t iSaveFlag, const char *PlaceName=0) |
Protected Member Functions | |
virtual Int_t | GetPosParIndex (Int_t naxis) |
virtual Int_t | GetWidthParIndex (Int_t naxis) |
Protected Member Functions inherited from TGo4FitModel | |
virtual TGo4FitParameter * | Get (Int_t n) |
Double_t | EvaluateAndIntegrate (Int_t NumScales, const Double_t *Scales, const Double_t *Widths) |
virtual Bool_t | Initialize (Int_t UseBuffers=-1) |
virtual void | Finalize () |
TGo4FitData * | GetAssignedConnection (Int_t n) |
Bool_t | BuffersAllocated () const |
void | RebuildShape (Bool_t ForceBuild=kFALSE) |
Double_t * | GetModelBins (const char *DataName) const |
void | SetNeedToRebuild () |
virtual Double_t | UserFunction (Double_t *, Double_t *) |
virtual TGo4FitParameter * | GetPosPar (Int_t naxis=0) |
virtual TGo4FitParameter * | GetWidthPar (Int_t naxis=0) |
const Int_t * | GetDataFullIndex (TGo4FitData *data, Int_t nbin) |
Int_t | GetDataIndexesSize (TGo4FitData *data) |
Protected Member Functions inherited from TGo4FitComponent | |
TGo4FitParameter * | NewParameter (const char *Name, const char *Title, Double_t iValue=0., Bool_t Fixed=kFALSE, Int_t AtIndx=-1) |
TGo4FitParameter * | NewAmplitude (const char *Name=0, Double_t iValue=0., Bool_t IsFixed=kFALSE, Int_t AtIndx=0) |
Int_t | GetAmplIndex () |
void | SetAmplIndex (Int_t iAmplIndex=-1) |
Protected Member Functions inherited from TGo4FitParsList | |
TGo4FitParameter * | AddPar (TGo4FitParameter *par) |
TGo4FitParameter * | InsertPar (TGo4FitParameter *par, Int_t indx) |
void | SetParsOwner (TGo4FitNamed *iOwner) |
void | ClearParsBlocking () |
TGo4FitParameter * | Find (const char *ParName) |
TGo4FitParameter * | Find (const char *OwnerFullName, const char *ParName) |
TGo4FitParameter * | Find (TGo4FitParameter *par) |
Bool_t | RemoveParByIndex (Int_t indx) |
Protected Member Functions inherited from TGo4FitSlotList | |
void | CheckDuplicatesOnSlot () |
void | PrepareSlotsForWriting () |
ClassDef (TGo4FitSlotList, 1) | |
Protected Attributes | |
Int_t | fiNaxis1 |
Int_t | fiNaxis2 |
Protected Attributes inherited from TGo4FitModel | |
Int_t | fiMinIntegrDepth |
Int_t | fiMaxIntegrDepth |
Double_t | fdIntegrEps |
Bool_t | fbAbsoluteEps |
Bool_t | fbIntegrScaling |
Protected Attributes inherited from TGo4FitSlotList | |
TObjArray * | fxSlotList |
Bool_t | fbUpdateSlotList |
Private Attributes | |
Double_t | Par_mu1 |
Double_t | Par_mu2 |
Double_t | Par_sig1 |
Double_t | Par_sig2 |
Double_t | Par_ro |
Double_t | Par_mult |
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.
Definition at line 39 of file TGo4FitModelGauss2.h.
TGo4FitModelGauss2::TGo4FitModelGauss2 | ( | ) |
Default constructor.
Definition at line 21 of file TGo4FitModelGauss2.cxx.
TGo4FitModelGauss2::TGo4FitModelGauss2 | ( | const char * | iName, |
Double_t | iPos1 = 1. , |
||
Double_t | iPos2 = 1. , |
||
Double_t | iWidth1 = 1. , |
||
Double_t | iWidth2 = 1. , |
||
Double_t | iCov12 = 0. , |
||
Int_t | iNaxis1 = 0 , |
||
Int_t | iNaxis2 = 1 |
||
) |
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).
Definition at line 24 of file TGo4FitModelGauss2.cxx.
References TGo4FitComponent::NewParameter().
|
virtual |
Destroys TGo4FitModelGauss2 object.
Definition at line 35 of file TGo4FitModelGauss2.cxx.
|
virtual |
Prepares (if necessary) some intermediate variables to be able calculate values of model via EvalN() function. Number of axis, which will be used in evaluations, should be specified.
Reimplemented from TGo4FitModel.
Definition at line 39 of file TGo4FitModelGauss2.cxx.
References fiNaxis1, fiNaxis2, TGo4FitParsList::GetPar(), TGo4FitParameter::GetValue(), Par_mu1, Par_mu2, Par_mult, Par_ro, Par_sig1, and Par_sig2.
|
virtual |
Calculates value of model according current parameters values and provided axes values. BeforeEval(), EvalN() & AfterEval() virtual methods provides general interface, where user-specific code should be situated.
Reimplemented from TGo4FitModel.
Definition at line 56 of file TGo4FitModelGauss2.cxx.
References fiNaxis1, fiNaxis2, Par_mu1, Par_mu2, Par_mult, Par_ro, Par_sig1, and Par_sig2.
|
inline |
Return number of first selected axis.
Definition at line 64 of file TGo4FitModelGauss2.h.
References fiNaxis1.
Referenced by QFitModelGauss2Widget::Axis2Spin_valueChanged().
|
inline |
Return number of second selcted axis.
Definition at line 69 of file TGo4FitModelGauss2.h.
References fiNaxis2.
Referenced by QFitModelGauss2Widget::Axis1Spin_valueChanged().
|
inlineprotectedvirtual |
Return index of parameter (if exist), which represent position of model for given axis.
Reimplemented from TGo4FitModel.
Definition at line 90 of file TGo4FitModelGauss2.h.
|
inlineprotectedvirtual |
Return index of parameter (if exist), which represent width of model component for given axis.
Reimplemented from TGo4FitModel.
Definition at line 91 of file TGo4FitModelGauss2.h.
|
virtual |
Prints information to standard output.
Reimplemented from TGo4FitModel.
Definition at line 63 of file TGo4FitModelGauss2.cxx.
References fiNaxis1, fiNaxis2, and TGo4FitModel::Print().
|
inline |
Sets number of first selected axis.
Definition at line 74 of file TGo4FitModelGauss2.h.
References fiNaxis1.
Referenced by QFitModelGauss2Widget::Axis1Spin_valueChanged(), and QFitModelGauss2Widget::Axis2Spin_valueChanged().
|
inline |
Sets number of second selected axis.
Definition at line 79 of file TGo4FitModelGauss2.h.
References fiNaxis2.
Referenced by QFitModelGauss2Widget::Axis1Spin_valueChanged(), and QFitModelGauss2Widget::Axis2Spin_valueChanged().
|
protected |
Number of first selected axis.
Definition at line 97 of file TGo4FitModelGauss2.h.
Referenced by BeforeEval(), EvalN(), GetNumAxis1(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis1().
|
protected |
Number of second selected axis.
Definition at line 102 of file TGo4FitModelGauss2.h.
Referenced by BeforeEval(), EvalN(), GetNumAxis2(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis2().
|
private |
Temporary variable for EvalN() function.
Definition at line 109 of file TGo4FitModelGauss2.h.
Referenced by BeforeEval(), and EvalN().
|
private |
Temporary variable for EvalN() function.
Definition at line 115 of file TGo4FitModelGauss2.h.
Referenced by BeforeEval(), and EvalN().
|
private |
Temporary variable for EvalN() function.
Definition at line 139 of file TGo4FitModelGauss2.h.
Referenced by BeforeEval(), and EvalN().
|
private |
Temporary variable for EvalN() function.
Definition at line 133 of file TGo4FitModelGauss2.h.
Referenced by BeforeEval(), and EvalN().
|
private |
Temporary variable for EvalN() function.
Definition at line 121 of file TGo4FitModelGauss2.h.
Referenced by BeforeEval(), and EvalN().
|
private |
Temporary variable for EvalN() function.
Definition at line 127 of file TGo4FitModelGauss2.h.
Referenced by BeforeEval(), and EvalN().