Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4FitData Class Reference

Basic abtract class for representing data, which should be fitted. More...

#include <TGo4FitData.h>

Inheritance diagram for TGo4FitData:

TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed TGo4FitDataGraph TGo4FitDataHistogram TGo4FitDataProfile TGo4FitDataRidge List of all members.

Public Types

enum  { dtHistogram = 1, dtGraph = 2 }

Public Methods

 TGo4FitData ()
 Default constructor. More...

 TGo4FitData (const char *iName, const char *iTitle, Int_t iDataType=dtHistogram, Bool_t AddAmpl=kFALSE)
 Creates TGo4FitData object with given name and title. More...

virtual ~TGo4FitData ()
 Destroys TGo4FitData object. More...

const Int_t GetDataType ()
 Returns type of data source. More...

Bool_t GetUseBinScale ()
 Returns kTRUE, if binary numbers used as scale values. More...

void SetUseBinScale (Bool_t iUseBinScale)
 If kTRUE, binary numbers will be used as scale values. More...

virtual Bool_t CanAmplTouch ()
 Always return kTRUE. More...

Int_t GetSigmaSource () const
 Return source of sigma values. More...

Double_t GetSigmaValue () const
 Return constant sigma value. More...

void SetSigmaSource (Int_t TakeFrom, Double_t SigmaValue=1.)
 Sets source of sigma for data. More...

void SetSigmaValue (Double_t SigmaValue)
 Set constant sigma value. More...

void SetExcludeLessThen (Double_t limit=0.)
 Sets limit to exclude bins, which not less then this limit. More...

Double_t GetExcludeLessThen () const
 Returns limit, which uses to exclude bins, less then this limit. More...

Bool_t SetNumberOfTransSlots (Int_t nslots)
 Sets number of slots for scale transformation objects. More...

Int_t GetNumberOfTransSlots ()
 Return number of slots for scale transformation objects. More...

TGo4FitSlotGetAxisTransSlot (Int_t nslot)
 Return slot for transformation object. More...

TGo4FitAxisTransGetAxisTrans (Int_t nslot)
 Return transformation object for given slot. More...

void SetAxisTrans (Int_t nslot, TGo4FitAxisTrans *Trans, Bool_t TransOwned=kFALSE)
 Sets transformation object for given slot. More...

void AddAxisTrans (TGo4FitAxisTrans *Trans, Bool_t TransOwned=kFALSE)
 Add transformation object to data. More...

void SetAxisTransNeeded (Int_t nslot, Bool_t iNeeded=kFALSE)
 Specified, when iNeeded = kTRUE, that trsnaformation object should always be provided to data. More...

virtual Bool_t IsAnyDataTransform ()
 Return kTRUE, if either initial data axis or data bins are transformed by TGo4FitData object. More...

virtual TGo4FitDataIterMakeIter ()
 Creates iterator for data object. More...

TObject * CreateDrawObject (const char *ObjName)
 Creates object, which can be drawn on canvas by ROOT. More...

Bool_t DefineScaleMinMax (Int_t naxis, Double_t &min, Double_t &max)
 Return scales minimum and maximum for specified axis. More...

Int_t DefineDimensions ()
 Define dimension number of data Create iterator and checks number of dimension. More...

Int_t DefineBinsSize ()
 Define number of selected bins in data Create iterator and secuantially checks all points. More...

Bool_t IsCompatibleData (TGo4FitData *data)
 Checks, if data has same dimensions number and size of each dimensions. More...

void ApplyRangesForModelMask (TGo4FitComponent *model, Char_t *ModelMask)
 Exclude points from model according model range conditions. More...

virtual void FillSlotList (TSeqCollection *list)
 Copy pointers on all slots of data object to list. More...

virtual void Print (Option_t *option) const
 Display information about data object on standard output. More...


Protected Methods

virtual Bool_t Initialize (Int_t UseBuffers=-1)
 Initialize data object. More...

virtual void Finalize ()
 Removes all buffers, created in initialize() routine. More...

Bool_t BuffersAllocated () const
 Checks, if buffers allocated for data. More...

Int_t GetBinsSize () const
 Return number of data bins in buffers. More...

Int_t GetScalesSize () const
 Returns number of axis values for each point. More...

Double_t * GetBinsValues ()
 Returns pointer on buffer with data bins values. More...

Double_t * GetBinsDevs ()
 Returns pointer on buffer with standard deviations for each data bins. More...

Double_t * GetBinsResult ()
 Returns pointer on buffer with complete model of data bins. More...

const Double_t * GetScaleValues (const Int_t nbin)
 Return scale values for specified index from buffer. More...

const Double_t * GetWidthValues (const Int_t nbin)
 Return scales width values for specified index from buffer. More...

const Int_t * GetFullIndex (Int_t nbin)
 Return indexes values for specified data bin from buffer. More...

Int_t GetIndexesSize () const
 Returns dimension of indexes arrays. More...


Protected Attributes

Int_t fiDataType
 Specified type of data: 0 - Histogram, 1 - graphics, 2 and so on - user defined. More...

Bool_t fbUseBinScale
 Use binary numbers as scale values. More...

Int_t fiTakeSigmasFrom
 Specify sigma source. More...

Double_t fdSigmaValue
 Value of sigma when fiTakeSigmasFrom = 2. More...

Double_t fdExcludeLessThen
 Sets limit for exclude bins, which less then this limit. More...

TObjArray fxAxisTrans
 Array of slots for scale transformation objects. More...


Private Methods

void ResetAllPoinetrs ()
 Clears (sets to 0) all pointers, used for buffer allocations. More...

void ReleaseAllPointers ()
 Release all memory, allocated for buffers. More...


Private Attributes

Int_t fiBinsSize
 Number of entries in buffers. More...

Int_t fiIndexesSize
 Number of indexes for each point. More...

Int_t fiScalesSize
 Number of scales values for each point. More...

Double_t * fxValues
 Buffer for bins values. More...

Double_t * fxStandDev
 Buffer for standard devations of bins values. More...

Double_t * fxBinsResult
 Buffer for complete model of bins values. More...

Double_t * fxFullScale
 Array of axis values for each bins. More...

Double_t * fxFullWidth
 Array of width values for each bin. More...

Int_t * fxFullIndex
 Store combination of indexes for each data bins. More...


Friends

class TGo4FitModel
class TGo4Fitter

Detailed Description

Basic abtract class for representing data, which should be fitted.

Definition at line 33 of file TGo4FitData.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
dtHistogram 
dtGraph 

Definition at line 35 of file TGo4FitData.h.


Constructor & Destructor Documentation

TGo4FitData::TGo4FitData  
 

Default constructor.

Definition at line 32 of file TGo4FitData.cxx.

References ResetAllPoinetrs().

TGo4FitData::TGo4FitData const char *    iName,
const char *    iTitle,
Int_t    iDataType = dtHistogram,
Bool_t    AddAmpl = kFALSE
 

Creates TGo4FitData object with given name and title.

Type of data (histogramic or points) and usage of amplitude can be specified. TGo4FitData object should not be created directly. Implementation of this class like TGo4FitDataHistogram, TGo4FitDataGraph and so on should be used.

Definition at line 38 of file TGo4FitData.cxx.

References fxAxisTrans, TGo4FitComponent::NewAmplitude(), and ResetAllPoinetrs().

TGo4FitData::~TGo4FitData   [virtual]
 

Destroys TGo4FitData object.

Definition at line 50 of file TGo4FitData.cxx.

References ReleaseAllPointers().


Member Function Documentation

const Int_t TGo4FitData::GetDataType   [inline]
 

Returns type of data source.

0 - histogramic, 1 - points (scale values have no width)

Definition at line 58 of file TGo4FitData.h.

References fiDataType.

Referenced by TGo4FitDataIter::ProduceScales(), and TGo4FitDataRidgeIter::StartReset().

Bool_t TGo4FitData::GetUseBinScale   [inline]
 

Returns kTRUE, if binary numbers used as scale values.

Definition at line 63 of file TGo4FitData.h.

References fbUseBinScale.

Referenced by IsAnyDataTransform(), TGo4FitDataIter::ProduceScales(), and TGo4FitDataIter::ReserveArrays().

void TGo4FitData::SetUseBinScale Bool_t    iUseBinScale [inline]
 

If kTRUE, binary numbers will be used as scale values.

Definition at line 68 of file TGo4FitData.h.

References fbUseBinScale.

Referenced by BuildFitter().

virtual Bool_t TGo4FitData::CanAmplTouch   [inline, virtual]
 

Always return kTRUE.

This specify that any data object may has or hasnot amplitude. Amplitude parameter (if exist) will be used to scale bins values.

Reimplemented from TGo4FitComponent.

Definition at line 75 of file TGo4FitData.h.

Int_t TGo4FitData::GetSigmaSource   const [inline]
 

Return source of sigma values.

Possible values are: 0 - no sigma sources; 1 - sigma should be taken from data source object; 2 - sigma is constant and defined by GetSigmaValue() funcion.

Definition at line 84 of file TGo4FitData.h.

References fiTakeSigmasFrom.

Referenced by TGo4FitDataIter::GetDeviation(), and Print().

Double_t TGo4FitData::GetSigmaValue   const [inline]
 

Return constant sigma value.

Uses, when GetSigmaSource() returns 2.

Definition at line 90 of file TGo4FitData.h.

References fdSigmaValue.

Referenced by TGo4FitDataIter::GetDeviation(), and Print().

void TGo4FitData::SetSigmaSource Int_t    TakeFrom,
Double_t    SigmaValue = 1.
[inline]
 

Sets source of sigma for data.

For description see GetSigmaSource() function.

Definition at line 96 of file TGo4FitData.h.

References fdSigmaValue, and fiTakeSigmasFrom.

void TGo4FitData::SetSigmaValue Double_t    SigmaValue [inline]
 

Set constant sigma value.

Value wil be used, if GetSigmaSource()==2.

Definition at line 103 of file TGo4FitData.h.

References fdSigmaValue.

void TGo4FitData::SetExcludeLessThen Double_t    limit = 0. [inline]
 

Sets limit to exclude bins, which not less then this limit.

Definition at line 108 of file TGo4FitData.h.

References fdExcludeLessThen.

Referenced by Example13(), TGo4FitDataGraph::TGo4FitDataGraph(), TGo4FitDataProfile::TGo4FitDataProfile(), and TGo4FitDataRidge::TGo4FitDataRidge().

Double_t TGo4FitData::GetExcludeLessThen   const [inline]
 

Returns limit, which uses to exclude bins, less then this limit.

Definition at line 113 of file TGo4FitData.h.

References fdExcludeLessThen.

Referenced by TGo4FitDataIter::CheckPointForRange(), IsAnyDataTransform(), and Print().

Bool_t TGo4FitData::SetNumberOfTransSlots Int_t    nslots
 

Sets number of slots for scale transformation objects.

By default, TGo4FitData has no place (slots) for transformation objects. In this case scale values can be taken from data source (TAxis of TH1) or just bins numbers can be used. To use transformation of these values, inherited from TGo4FitAxisTrans class should be used. Slots fot such objects can be reserved first.

Definition at line 55 of file TGo4FitData.cxx.

References fxAxisTrans, GetNumberOfTransSlots(), n, and TGo4FitSlotList::SetUpdateSlotList().

Referenced by AddAxisTrans(), BuildFitter(), SetAxisTrans(), and SetAxisTransNeeded().

Int_t TGo4FitData::GetNumberOfTransSlots   [inline]
 

Return number of slots for scale transformation objects.

Definition at line 127 of file TGo4FitData.h.

References fxAxisTrans.

Referenced by AddAxisTrans(), Initialize(), IsAnyDataTransform(), TGo4FitDataIter::ProduceScales(), SetAxisTrans(), SetAxisTransNeeded(), SetNumberOfTransSlots(), and TGo4FitDataIter::TransformScales().

TGo4FitSlot * TGo4FitData::GetAxisTransSlot Int_t    nslot
 

Return slot for transformation object.

Definition at line 76 of file TGo4FitData.cxx.

References fxAxisTrans.

Referenced by GetAxisTrans().

TGo4FitAxisTrans * TGo4FitData::GetAxisTrans Int_t    nslot
 

Return transformation object for given slot.

Definition at line 80 of file TGo4FitData.cxx.

References GetAxisTransSlot(), and TGo4FitSlot::GetObject().

Referenced by Initialize(), IsAnyDataTransform(), and TGo4FitDataIter::TransformScales().

void TGo4FitData::SetAxisTrans Int_t    nslot,
TGo4FitAxisTrans   Trans,
Bool_t    TransOwned = kFALSE
 

Sets transformation object for given slot.

If not enougth slots was reserved, SetNumberOfTransSlots(nslot+1) will be called first.

Definition at line 85 of file TGo4FitData.cxx.

References fxAxisTrans, GetNumberOfTransSlots(), and SetNumberOfTransSlots().

void TGo4FitData::AddAxisTrans TGo4FitAxisTrans   Trans,
Bool_t    TransOwned = kFALSE
 

Add transformation object to data.

First new slot reserved for this object.

Definition at line 92 of file TGo4FitData.cxx.

References fxAxisTrans, GetNumberOfTransSlots(), and SetNumberOfTransSlots().

Referenced by Example6().

void TGo4FitData::SetAxisTransNeeded Int_t    nslot,
Bool_t    iNeeded = kFALSE
 

Specified, when iNeeded = kTRUE, that trsnaformation object should always be provided to data.

Definition at line 98 of file TGo4FitData.cxx.

References fxAxisTrans, GetNumberOfTransSlots(), and SetNumberOfTransSlots().

Bool_t TGo4FitData::IsAnyDataTransform   [virtual]
 

Return kTRUE, if either initial data axis or data bins are transformed by TGo4FitData object.

For instance, if SetUseBinScales() is used.

Definition at line 105 of file TGo4FitData.cxx.

References GetAxisTrans(), GetExcludeLessThen(), GetNumberOfTransSlots(), GetUseBinScale(), and n.

Referenced by TGo4FitPanelSlots::Button_FitterDraw(), TGo4FitPanelSlots::PaintModelsFor(), and TGo4FitPanelSlots::Wiz_PaintModel().

virtual TGo4FitDataIter* TGo4FitData::MakeIter   [inline, virtual]
 

Creates iterator for data object.

For detailed description see TGo4FitDataIter class.

Reimplemented in TGo4FitDataGraph, TGo4FitDataHistogram, TGo4FitDataProfile, and TGo4FitDataRidge.

Definition at line 166 of file TGo4FitData.h.

Referenced by ApplyRangesForModelMask(), TGo4FitModelFromData::BeforeEval(), TGo4Fitter::CalculateFCN(), TGo4Fitter::CalculatesIntegral(), TGo4Fitter::CalculatesMomentums(), TGo4FitAmplEstimation::CalculateWithIterators(), TGo4Fitter::CreateDrawObject(), CreateDrawObject(), DefineBinsSize(), DefineDimensions(), DefineScaleMinMax(), TGo4FitPeakFinder::HansEsselPeakFinder(), Initialize(), IsCompatibleData(), TGo4FitPeakFinder::ROOTPeakFinder(), TGo4FitPeakFinder::SergeyLinevPeakFinder(), and TGo4FitDataRidgeIter::StartReset().

TObject * TGo4FitData::CreateDrawObject const char *    ObjName
 

Creates object, which can be drawn on canvas by ROOT.

This method creates either TH1 (in case of histogramic data) or TGraph object and fills bins by content of data.

Definition at line 112 of file TGo4FitData.cxx.

References TGo4FitDataIter::CreateDrawObject(), and MakeIter().

Bool_t TGo4FitData::DefineScaleMinMax Int_t    naxis,
Double_t &    min,
Double_t &    max
 

Return scales minimum and maximum for specified axis.

Can be used before or after Initialize() method.

Definition at line 213 of file TGo4FitData.cxx.

References MakeIter(), TGo4FitDataIter::Next(), TGo4FitDataIter::Reset(), TGo4FitDataIter::Scales(), and TGo4FitDataIter::ScalesSize().

Referenced by TGo4FitPanelSlots::Cmd_AddRangeCondition().

Int_t TGo4FitData::DefineDimensions  
 

Define dimension number of data Create iterator and checks number of dimension.

Definition at line 231 of file TGo4FitData.cxx.

References TGo4FitDataIter::IndexesSize(), MakeIter(), and TGo4FitDataIter::Reset().

Referenced by TGo4FitPanelSlots::Button_SimpleFit(), TGo4FitPanelSlots::CreateModel(), and TGo4FitPanelSlots::LocateModel().

Int_t TGo4FitData::DefineBinsSize  
 

Define number of selected bins in data Create iterator and secuantially checks all points.

Definition at line 240 of file TGo4FitData.cxx.

References TGo4FitDataIter::CountPoints(), and MakeIter().

Referenced by TGo4Fitter::CalculateNDF().

Bool_t TGo4FitData::IsCompatibleData TGo4FitData *    data
 

Checks, if data has same dimensions number and size of each dimensions.

Used, when one data objects used to be a model component of another data object. Should be used only after Initialize() method for current data object.

Definition at line 265 of file TGo4FitData.cxx.

References GetIndexesSize(), TGo4FitDataIter::IndexesSize(), MakeIter(), and TGo4FitDataIter::Reset().

Referenced by TGo4FitModelFromData::Initialize().

void TGo4FitData::ApplyRangesForModelMask TGo4FitComponent   model,
Char_t *    ModelMask
 

Exclude points from model according model range conditions.

Primary range conditions defines for data. No any model, associated to this data, can exceed it's ranges. But not full data range can be used for explicit model evaluation. This functions fill model mask (array of chars) inside data range, where model should be evaluated. Can be used only after Initialize() method.

Definition at line 277 of file TGo4FitData.cxx.

References BuffersAllocated(), TGo4FitComponent::CheckRangeConditions(), GetBinsSize(), GetScalesSize(), GetScaleValues(), MakeIter(), TGo4FitDataIter::Next(), TGo4FitDataIter::Reset(), TGo4FitDataIter::Scales(), and TGo4FitDataIter::ScalesSize().

Referenced by TGo4FitModel::Initialize().

void TGo4FitData::FillSlotList TSeqCollection *    list [virtual]
 

Copy pointers on all slots of data object to list.

Reimplemented from TGo4FitSlotList.

Reimplemented in TGo4FitDataGraph, TGo4FitDataHistogram, TGo4FitDataProfile, and TGo4FitDataRidge.

Definition at line 300 of file TGo4FitData.cxx.

References TGo4FitSlotList::FillSlotList(), fxAxisTrans, and n.

Referenced by TGo4FitModelFromData::FillSlotList(), TGo4FitDataRidge::FillSlotList(), TGo4FitDataProfile::FillSlotList(), TGo4FitDataHistogram::FillSlotList(), and TGo4FitDataGraph::FillSlotList().

void TGo4FitData::Print Option_t *    option const [virtual]
 

Display information about data object on standard output.

Reimplemented from TGo4FitComponent.

Reimplemented in TGo4FitDataGraph, TGo4FitDataHistogram, TGo4FitDataProfile, and TGo4FitDataRidge.

Definition at line 306 of file TGo4FitData.cxx.

References fbUseBinScale, fiDataType, fxAxisTrans, GetExcludeLessThen(), GetSigmaSource(), GetSigmaValue(), and TGo4FitComponent::Print().

Referenced by TGo4FitModelFromData::Print(), TGo4FitDataRidge::Print(), TGo4FitDataProfile::Print(), TGo4FitDataHistogram::Print(), and TGo4FitDataGraph::Print().

Bool_t TGo4FitData::Initialize Int_t    UseBuffers = -1 [protected, virtual]
 

Initialize data object.

This routine should be used to allocate memory for internal buffers. Its automatically calls in DoActions() routine of fitter. if UseBuffers>0 or ( GetUseBuffers() && UseBuffers<0) internal buffers will be created. Concuming more memory may dramaticaly decrease time for fitting.

Definition at line 120 of file TGo4FitData.cxx.

References TGo4FitDataIter::CountPoints(), fiBinsSize, fiIndexesSize, fiScalesSize, fxBinsResult, fxFullIndex, fxFullScale, fxFullWidth, fxStandDev, fxValues, GetAxisTrans(), GetNumberOfTransSlots(), TGo4FitDataIter::HasIndexes(), TGo4FitDataIter::HasWidths(), TGo4FitDataIter::Indexes(), TGo4FitDataIter::IndexesSize(), TGo4FitParsList::IsAllParsFixed(), MakeIter(), n, TGo4FitDataIter::Next(), TGo4FitDataIter::Reset(), TGo4FitDataIter::Scales(), TGo4FitDataIter::ScalesSize(), TGo4FitDataIter::StandardDeviation(), TGo4FitDataIter::Value(), and TGo4FitDataIter::Widths().

Referenced by TGo4Fitter::InitFitterData().

void TGo4FitData::Finalize   [protected, virtual]
 

Removes all buffers, created in initialize() routine.

Definition at line 178 of file TGo4FitData.cxx.

References ReleaseAllPointers().

Referenced by TGo4Fitter::FinalizeFitterData().

Bool_t TGo4FitData::BuffersAllocated   const [inline, protected]
 

Checks, if buffers allocated for data.

Definition at line 239 of file TGo4FitData.h.

References fxFullScale, and fxValues.

Referenced by TGo4FitModel::AddModelToDataResult(), ApplyRangesForModelMask(), TGo4Fitter::CalculateFCN(), TGo4Fitter::DataBuffersAllocated(), TGo4FitModel::Initialize(), and TGo4Fitter::RebuildAll().

Int_t TGo4FitData::GetBinsSize   const [inline, protected]
 

Return number of data bins in buffers.

Definition at line 244 of file TGo4FitData.h.

References fiBinsSize.

Referenced by TGo4FitModel::AddModelToDataResult(), ApplyRangesForModelMask(), TGo4Fitter::CalculateFCN(), TGo4Fitter::GetDataBinsSize(), TGo4FitModel::Initialize(), TGo4Fitter::RebuildAll(), and TGo4FitModel::RebuildShape().

Int_t TGo4FitData::GetScalesSize   const [inline, protected]
 

Returns number of axis values for each point.

Can be used after Initialize() method, otherwise TGo4FitDataIter::ScalesSize() method should be used.

Definition at line 250 of file TGo4FitData.h.

References fiScalesSize.

Referenced by TGo4FitModel::AddModelToDataResult(), ApplyRangesForModelMask(), TGo4FitModel::EvaluateAtPoint(), GetScaleValues(), GetWidthValues(), and TGo4FitModel::RebuildShape().

Double_t* TGo4FitData::GetBinsValues   [inline, protected]
 

Returns pointer on buffer with data bins values.

Buffer has GetBinsSize() values. Return 0, if buffers were not allocated.

Definition at line 256 of file TGo4FitData.h.

References fxValues.

Referenced by TGo4Fitter::CalculateFCN(), and TGo4Fitter::GetDataBinsValues().

Double_t* TGo4FitData::GetBinsDevs   [inline, protected]
 

Returns pointer on buffer with standard deviations for each data bins.

Buffer has GetBinsSize() values. Return 0, if buffers were not allocated.

Definition at line 262 of file TGo4FitData.h.

References fxStandDev.

Referenced by TGo4Fitter::CalculateFCN(), and TGo4Fitter::GetDataBinsDevs().

Double_t* TGo4FitData::GetBinsResult   [inline, protected]
 

Returns pointer on buffer with complete model of data bins.

Buffer has GetBinsSize() values. Return 0, if buffers were not allocated.

Definition at line 268 of file TGo4FitData.h.

References fxBinsResult.

Referenced by TGo4FitModel::AddModelToDataResult(), TGo4Fitter::CalculateFCN(), TGo4Fitter::GetDataBinsResult(), and TGo4Fitter::RebuildAll().

const Double_t * TGo4FitData::GetScaleValues const Int_t    nbin [protected]
 

Return scale values for specified index from buffer.

Can be used only if buffers were allocated, otherwise return 0. nbin should be from 0 to GetBinsSize()-1

Definition at line 250 of file TGo4FitData.cxx.

References fxFullScale, and GetScalesSize().

Referenced by ApplyRangesForModelMask(), and TGo4FitModel::EvaluateAtPoint().

const Double_t * TGo4FitData::GetWidthValues const Int_t    nbin [protected]
 

Return scales width values for specified index from buffer.

Can be used only if buffers were allocated, otherwise return 0. nbin should be from 0 to GetBinsSize()-1

Definition at line 255 of file TGo4FitData.cxx.

References fxFullWidth, and GetScalesSize().

Referenced by TGo4FitModel::EvaluateAtPoint().

const Int_t * TGo4FitData::GetFullIndex Int_t    nbin [protected]
 

Return indexes values for specified data bin from buffer.

Can be used only if buffers were allocated, otherwise return 0. nbin should be from 0 to GetBinsSize()-1

Definition at line 260 of file TGo4FitData.cxx.

References fxFullIndex, and GetIndexesSize().

Referenced by TGo4FitModel::GetDataFullIndex().

Int_t TGo4FitData::GetIndexesSize   const [inline, protected]
 

Returns dimension of indexes arrays.

Can be used after Initialize() method, otherwise TGo4FitDataIter::IndexesSize() method should be used.

Definition at line 292 of file TGo4FitData.h.

References fiIndexesSize.

Referenced by TGo4FitModel::GetDataIndexesSize(), GetFullIndex(), and IsCompatibleData().

void TGo4FitData::ResetAllPoinetrs   [private]
 

Clears (sets to 0) all pointers, used for buffer allocations.

Definition at line 182 of file TGo4FitData.cxx.

References fiBinsSize, fiIndexesSize, fiScalesSize, fxBinsResult, fxFullIndex, fxFullScale, fxFullWidth, fxStandDev, and fxValues.

Referenced by ReleaseAllPointers(), and TGo4FitData().

void TGo4FitData::ReleaseAllPointers   [private]
 

Release all memory, allocated for buffers.

Definition at line 197 of file TGo4FitData.cxx.

References fxBinsResult, fxFullIndex, fxFullScale, fxFullWidth, fxStandDev, fxValues, and ResetAllPoinetrs().

Referenced by Finalize(), and ~TGo4FitData().


Friends And Related Function Documentation

friend class TGo4FitModel [friend]
 

Definition at line 219 of file TGo4FitData.h.

friend class TGo4Fitter [friend]
 

Definition at line 220 of file TGo4FitData.h.


Member Data Documentation

Int_t TGo4FitData::fiDataType [protected]
 

Specified type of data: 0 - Histogram, 1 - graphics, 2 and so on - user defined.

Definition at line 298 of file TGo4FitData.h.

Referenced by GetDataType(), and Print().

Bool_t TGo4FitData::fbUseBinScale [protected]
 

Use binary numbers as scale values.

if this flag set, bin numbers are used as scale values

Definition at line 304 of file TGo4FitData.h.

Referenced by GetUseBinScale(), Print(), and SetUseBinScale().

Int_t TGo4FitData::fiTakeSigmasFrom [protected]
 

Specify sigma source.

0 - no sigmas, 1 - try take from data, 2 - const value (fdSigmaValue)

Definition at line 310 of file TGo4FitData.h.

Referenced by GetSigmaSource(), and SetSigmaSource().

Double_t TGo4FitData::fdSigmaValue [protected]
 

Value of sigma when fiTakeSigmasFrom = 2.

Definition at line 315 of file TGo4FitData.h.

Referenced by GetSigmaValue(), SetSigmaSource(), and SetSigmaValue().

Double_t TGo4FitData::fdExcludeLessThen [protected]
 

Sets limit for exclude bins, which less then this limit.

Definition at line 320 of file TGo4FitData.h.

Referenced by GetExcludeLessThen(), and SetExcludeLessThen().

TObjArray TGo4FitData::fxAxisTrans [protected]
 

Array of slots for scale transformation objects.

Definition at line 326 of file TGo4FitData.h.

Referenced by AddAxisTrans(), FillSlotList(), GetAxisTransSlot(), GetNumberOfTransSlots(), Print(), SetAxisTrans(), SetAxisTransNeeded(), SetNumberOfTransSlots(), and TGo4FitData().

Int_t TGo4FitData::fiBinsSize [private]
 

Number of entries in buffers.

Definition at line 348 of file TGo4FitData.h.

Referenced by GetBinsSize(), Initialize(), and ResetAllPoinetrs().

Int_t TGo4FitData::fiIndexesSize [private]
 

Number of indexes for each point.

Definition at line 353 of file TGo4FitData.h.

Referenced by GetIndexesSize(), Initialize(), and ResetAllPoinetrs().

Int_t TGo4FitData::fiScalesSize [private]
 

Number of scales values for each point.

Definition at line 358 of file TGo4FitData.h.

Referenced by GetScalesSize(), Initialize(), and ResetAllPoinetrs().

Double_t* TGo4FitData::fxValues [private]
 

Buffer for bins values.

Definition at line 363 of file TGo4FitData.h.

Referenced by BuffersAllocated(), GetBinsValues(), Initialize(), ReleaseAllPointers(), and ResetAllPoinetrs().

Double_t* TGo4FitData::fxStandDev [private]
 

Buffer for standard devations of bins values.

Definition at line 368 of file TGo4FitData.h.

Referenced by GetBinsDevs(), Initialize(), ReleaseAllPointers(), and ResetAllPoinetrs().

Double_t* TGo4FitData::fxBinsResult [private]
 

Buffer for complete model of bins values.

Definition at line 373 of file TGo4FitData.h.

Referenced by GetBinsResult(), Initialize(), ReleaseAllPointers(), and ResetAllPoinetrs().

Double_t* TGo4FitData::fxFullScale [private]
 

Array of axis values for each bins.

Used in case of maximum memory usage. Size [BinsSize * AxisNumber]

Definition at line 380 of file TGo4FitData.h.

Referenced by BuffersAllocated(), GetScaleValues(), Initialize(), ReleaseAllPointers(), and ResetAllPoinetrs().

Double_t* TGo4FitData::fxFullWidth [private]
 

Array of width values for each bin.

Used in case of maximum memory usage. Size [BinsSize * AxisNumber]

Definition at line 387 of file TGo4FitData.h.

Referenced by GetWidthValues(), Initialize(), ReleaseAllPointers(), and ResetAllPoinetrs().

Int_t* TGo4FitData::fxFullIndex [private]
 

Store combination of indexes for each data bins.

Size of [GetBinsSize()][NumDimension()]. Used in case of maximum memory usage.

Definition at line 394 of file TGo4FitData.h.

Referenced by GetFullIndex(), Initialize(), ReleaseAllPointers(), and ResetAllPoinetrs().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:39 2005 for Go4-v2.10-5 by doxygen1.2.15