GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Protected Attributes | List of all members
TGo4FitDataRidge Class Reference

#include <TGo4FitDataRidge.h>

+ Inheritance diagram for TGo4FitDataRidge:

Public Member Functions

 TGo4FitDataRidge ()
 
 TGo4FitDataRidge (const char *iName, TGo4FitData *Data=nullptr, Int_t SelectedAxis=1)
 
virtual ~TGo4FitDataRidge ()
 
void SetData (TGo4FitData *iData, Bool_t Owned)
 
TGo4FitDataGetData () const
 
void SetSelectedAxis (Int_t naxis)
 
Int_t GetSelectedAxis () const
 
std::unique_ptr< TGo4FitDataIterMakeIter () override
 
void FillSlotList (TSeqCollection *list) override
 
virtual void Print (Option_t *option="") const override
 
- Public Member Functions inherited from TGo4FitData
 TGo4FitData ()
 
 TGo4FitData (const char *iName, const char *iTitle, Int_t iDataType=dtHistogram, Bool_t AddAmpl=kFALSE)
 
virtual ~TGo4FitData ()
 
Int_t GetDataType () const
 
Bool_t GetUseBinScale () const
 
void SetUseBinScale (Bool_t iUseBinScale)
 
Bool_t CanAmplTouch () override
 
Int_t GetSigmaSource () const
 
Double_t GetSigmaValue () const
 
void SetSigmaSource (Int_t TakeFrom, Double_t SigmaValue=1.)
 
void SetSigmaValue (Double_t SigmaValue)
 
void SetExcludeLessThen (Double_t limit=0.)
 
Double_t GetExcludeLessThen () const
 
Bool_t SetNumberOfTransSlots (Int_t nslots)
 
Int_t GetNumberOfTransSlots () const
 
TGo4FitSlotGetAxisTransSlot (Int_t nslot) const
 
TGo4FitAxisTransGetAxisTrans (Int_t nslot) const
 
void SetAxisTrans (Int_t nslot, TGo4FitAxisTrans *Trans, Bool_t TransOwned=kFALSE)
 
void AddAxisTrans (TGo4FitAxisTrans *Trans, Bool_t TransOwned=kFALSE)
 
void SetAxisTransNeeded (Int_t nslot, Bool_t iNeeded=kFALSE)
 
virtual Bool_t IsAnyDataTransform () const
 
TObject * CreateDrawObject (const char *ObjName)
 
Bool_t DefineScaleMinMax (Int_t naxis, Double_t &min, Double_t &max)
 
Int_t DefineDimensions ()
 
Int_t DefineBinsSize ()
 
Bool_t IsCompatibleData (TGo4FitData *data)
 
void ApplyRangesForModelMask (TGo4FitComponent *model, Char_t *ModelMask)
 
void Print (Option_t *option="") const override
 
- Public Member Functions inherited from TGo4FitComponent
 TGo4FitComponent ()
 
 TGo4FitComponent (const char *iName, const char *iTitle)
 
virtual ~TGo4FitComponent ()
 
TGo4FitParameterGetAmplPar ()
 
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 ()
 
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 () const
 
Bool_t GetRangeMin (Int_t naxis, Double_t &value) const
 
Bool_t GetRangeMax (Int_t naxis, Double_t &value) const
 
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) const
 
void SetRangeCutExcluding (Int_t n, Bool_t exclude=kTRUE)
 
void RemoveRangeCut (Int_t n)
 
Bool_t CheckRangeConditions (const Double_t *values, Int_t numaxis)
 
void CollectParsTo (TGo4FitParsList &list) override
 
void SetUseBuffers (Bool_t iUse)
 
Bool_t GetUseBuffers () const
 
void Print (Option_t *option="") const override
 
- Public Member Functions inherited from TGo4FitParsList
 TGo4FitParsList ()
 
 TGo4FitParsList (Bool_t IsParsOwned)
 
 TGo4FitParsList (const char *Name, const char *Title, Bool_t IsParsOwned)
 
virtual ~TGo4FitParsList ()
 
virtual Int_t NumPars ()
 
TGo4FitParameterGetPar (Int_t n)
 
Int_t GetParIndex (const TGo4FitParameter *par)
 
TGo4FitParameterFindPar (const char *ParName)
 
TGo4FitParameterFindPar (const char *OwnerFullName, const char *ParName)
 
TGo4FitParameterFindPar (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 ()
 
TGo4FitParameterCreatePar (const char *ParName, const char *Title, Double_t iValue=0)
 
Bool_t RemovePar (const char *name)
 
Bool_t RemovePar (TGo4FitParameter *par)
 
void Print (Option_t *option="") const override
 
void PrintPars () const
 
void ClearPars ()
 
- Public Member Functions inherited from TGo4FitNamed
 TGo4FitNamed ()
 
 TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=nullptr)
 
virtual ~TGo4FitNamed ()
 
const char * GetFullName ()
 
const char * GetOwnerFullName ()
 
void SetOwner (TNamed *iOwner)
 
TNamed * GetOwner ()
 
void Print (Option_t *option="") const override
 
- Public Member Functions inherited from TGo4FitSlotList
 TGo4FitSlotList ()
 
virtual ~TGo4FitSlotList ()
 
void SetUpdateSlotList ()
 
const TObjArray * GetSlotList (Bool_t ForceUpdate=kFALSE)
 
Int_t NumSlots ()
 
TGo4FitSlotGetSlot (Int_t nslot)
 
TGo4FitSlotFindSlot (const char *FullSlotName)
 
Bool_t ConnectSlots (TGo4FitSlot *slot1, TGo4FitSlot *slot2)
 
Bool_t ConnectSlots (const char *Slot1FullName, const char *Slot2FullName)
 
TGo4FitSlotSetObject (TObject *obj, Bool_t iOwned=kFALSE)
 
TGo4FitSlotSetObject (const char *PlaceName, TObject *obj, Bool_t iOwned=kFALSE)
 
TGo4FitSlotIsObjectInSlots (TObject *obj)
 
Bool_t CheckObjects (Bool_t MakeOut=kTRUE)
 
Bool_t IsEmptySlots ()
 
void ClearObjects (const char *PlaceName=nullptr, Bool_t NonOwned=kTRUE)
 
void ClearSlot (TGo4FitSlot *slot, Bool_t NonOwned)
 
void SetSaveFlagForObjects (Int_t iSaveFlag, const char *PlaceName=nullptr)
 

Protected Attributes

TGo4FitSlot fxData
 
Int_t fiSelectedAxis {0}
 
- Protected Attributes inherited from TGo4FitData
Int_t fiDataType {0}
 
Bool_t fbUseBinScale {kFALSE}
 
Int_t fiTakeSigmasFrom {0}
 
Double_t fdSigmaValue {0}
 
Double_t fdExcludeLessThen {0}
 
TObjArray fxAxisTrans
 
- Protected Attributes inherited from TGo4FitSlotList
TObjArray * fxSlotList {nullptr}
 
Bool_t fbUpdateSlotList {kFALSE}
 

Additional Inherited Members

- Public Types inherited from TGo4FitData
enum  { dtHistogram = 1, dtGraph = 2 }
 
- Protected Member Functions inherited from TGo4FitData
virtual Bool_t Initialize (Int_t UseBuffers=-1)
 
virtual void Finalize ()
 
Bool_t BuffersAllocated () const
 
Int_t GetBinsSize () const
 
Int_t GetScalesSize () const
 
Double_t * GetBinsValues () const
 
Double_t * GetBinsDevs () const
 
Double_t * GetBinsResult () const
 
const Double_t * GetScaleValues (Int_t nbin) const
 
const Double_t * GetWidthValues (Int_t nbin) const
 
const Int_t * GetFullIndex (Int_t nbin) const
 
Int_t GetIndexesSize () const
 
- Protected Member Functions inherited from TGo4FitComponent
TGo4FitParameterNewParameter (const char *Name, const char *Title, Double_t iValue=0., Bool_t Fixed=kFALSE, Int_t AtIndx=-1)
 
TGo4FitParameterNewAmplitude (const char *Name=nullptr, Double_t iValue=0., Bool_t IsFixed=kFALSE, Int_t AtIndx=0)
 
Int_t GetAmplIndex () const
 
void SetAmplIndex (Int_t iAmplIndex=-1)
 
- Protected Member Functions inherited from TGo4FitParsList
TGo4FitParameterAddPar (TGo4FitParameter *par)
 
TGo4FitParameterInsertPar (TGo4FitParameter *par, Int_t indx)
 
void SetParsOwner (TGo4FitNamed *iOwner)
 
void ClearParsBlocking ()
 
virtual TGo4FitParameterGet (Int_t n)
 
TGo4FitParameterFind (const char *ParName)
 
TGo4FitParameterFind (const char *OwnerFullName, const char *ParName)
 
TGo4FitParameterFind (TGo4FitParameter *par)
 
Bool_t RemoveParByIndex (Int_t indx)
 
- Protected Member Functions inherited from TGo4FitSlotList
void CheckDuplicatesOnSlot ()
 
void PrepareSlotsForWriting ()
 
 ClassDef (TGo4FitSlotList, 1)
 

Detailed Description

Special object to approximate ridges on multi-dimensional histograms.

Ridge means that some coordinate in multidimensional histograms can be represented as function of another coordinate(s) like y = f(x). If one has histogram, build in (x,y) space, one can try to approximate function f by several way.

First simplest way, which works for two-dimensional way is to build TProfile from TH2 object, averaging data along y axis. Then TGo4FitDataProfile can be used to approximate TProfile by any kind of functional dependency.

Another way is usage of TGo4FitDataRidge object. It selects one of histogram coordinate and use histogram as a set of measured points y(x) with different statistical weights, reverse proportinal to bin content of histogram at (x,y). Then this set of points can be again approximate of any kind of functional dependency from one coordinate. This simplest case can be extend to N-dimensions. In this case one of coordinate is a functions of the rest. This means, that this corrdinate can be approximate by function with N-1 coordinates.

To obtain data, TGo4FitDataRidge object internally uses another TGo4FitData, which should provide histogram. Currently only TGo4FitDataHistogram object can be used for this purposes.

Definition at line 31 of file TGo4FitDataRidge.h.

Constructor & Destructor Documentation

◆ TGo4FitDataRidge() [1/2]

TGo4FitDataRidge::TGo4FitDataRidge ( )

Default constructor.

Definition at line 18 of file TGo4FitDataRidge.cxx.

◆ TGo4FitDataRidge() [2/2]

TGo4FitDataRidge::TGo4FitDataRidge ( const char *  iName,
TGo4FitData Data = nullptr,
Int_t  SelectedAxis = 1 
)

Creates TGo4FitDataRidge object with given name. Pointer on TGo4FitData object, which should provide histogramic data, can be specified. Also axis number, which uses as ridge coordinate, can be specified. By default y-axis is used as ridge.

Definition at line 20 of file TGo4FitDataRidge.cxx.

References TGo4FitData::SetExcludeLessThen().

◆ ~TGo4FitDataRidge()

TGo4FitDataRidge::~TGo4FitDataRidge ( )
virtual

Destroys TGo4FitDataRidge object

Definition at line 28 of file TGo4FitDataRidge.cxx.

Member Function Documentation

◆ FillSlotList()

void TGo4FitDataRidge::FillSlotList ( TSeqCollection *  list)
overridevirtual

Add pointer on slot, which should contain TGo4FitData object, to list of slots.

Reimplemented from TGo4FitData.

Definition at line 35 of file TGo4FitDataRidge.cxx.

References TGo4FitData::FillSlotList(), fxData, and GetData().

Referenced by GetSelectedAxis().

◆ GetData()

TGo4FitData* TGo4FitDataRidge::GetData ( ) const
inline

Returns pointer on TGo4FitData object.

Definition at line 59 of file TGo4FitDataRidge.h.

References fxData, and TGo4FitSlot::GetObject().

Referenced by FillSlotList(), Print(), and TGo4FitDataRidgeIter::StartReset().

◆ GetSelectedAxis()

Int_t TGo4FitDataRidge::GetSelectedAxis ( ) const
inline

Returns number of selected axis.

Definition at line 69 of file TGo4FitDataRidge.h.

References FillSlotList(), fiSelectedAxis, MakeIter(), and Print().

Referenced by TGo4FitDataRidgeIter::ReadCurrentPoint().

◆ MakeIter()

std::unique_ptr< TGo4FitDataIter > TGo4FitDataRidge::MakeIter ( )
overridevirtual

Create TGo4FitDataRidgeIter iterator, associated with given data object..

Reimplemented from TGo4FitData.

Definition at line 30 of file TGo4FitDataRidge.cxx.

Referenced by GetSelectedAxis().

◆ Print()

void TGo4FitDataRidge::Print ( Option_t *  option = "") const
overridevirtual

Print information to standard output.

Definition at line 43 of file TGo4FitDataRidge.cxx.

References fiSelectedAxis, GetData(), and TGo4FitData::Print().

Referenced by GetSelectedAxis().

◆ SetData()

void TGo4FitDataRidge::SetData ( TGo4FitData iData,
Bool_t  Owned 
)
inline

Sets pointer on TGo4FitData object and ownership flag.

Definition at line 54 of file TGo4FitDataRidge.h.

References fxData, and TGo4FitSlot::SetObject().

◆ SetSelectedAxis()

void TGo4FitDataRidge::SetSelectedAxis ( Int_t  naxis)
inline

Sets number of axis, which selected as "ridge altitude".

Definition at line 64 of file TGo4FitDataRidge.h.

References fiSelectedAxis.

Member Data Documentation

◆ fiSelectedAxis

Int_t TGo4FitDataRidge::fiSelectedAxis {0}
protected

Number of selected as ridge axis.

Definition at line 96 of file TGo4FitDataRidge.h.

Referenced by GetSelectedAxis(), Print(), and SetSelectedAxis().

◆ fxData

TGo4FitSlot TGo4FitDataRidge::fxData
protected

Slot for TGo4FitData object.

Definition at line 91 of file TGo4FitDataRidge.h.

Referenced by FillSlotList(), GetData(), TGo4FitDataRidgeIter::GetData(), and SetData().


The documentation for this class was generated from the following files: