| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Iterator calss for data object.
The main aim of TGo4FitDataIter class is provide an sequential access to data, containing in appropriate data object.
Each new class of data object should provide also it's own implementation for TGo4FitDataIrter class. To create iterator, MakeIter() method of data object should be used.
Iterator has two main methods: Reset() and Next(). First method resets all internal buffers of iterator and positioning pointer on first data point. Next() method shifts to next data pointer.
As argument of these methods usage of bins selection meachanizm via range conditions or amplitude threshold can be specified.
Typical usage of iterator:
TGo4FitDataIter* iter = data->MakeIter();
if (iter->Reset()) do {
// do something with values in iterator
} while (iter->Next());
Access to most iterator methods like Values(), IndexesSize() and so on can be done only after first call of Reset() method.
Field Summary | |
protected Bool_t | fbReachEnd |
protected Double_t | fdStandardDeviation |
protected Double_t | fdValue |
protected Int_t | fiNumPoint |
protected TArrayI | fxIndexes |
protected TArrayD | fxScales |
protected TArrayD | fxWidths |
Constructor Summary | |
TGo4FitDataIter() Default constructor. |
Destructor Summary | |
virtual synchronized | ~TGo4FitDataIter() Destroys TGo4FitDataIter object. |
Method Summary | |
Bool_t | CheckPointForRange() Check range conditions and amplitude threshold for current point. |
Int_t | CountPoints(Bool_t UseRanges) Counts total number of points in data object. |
TObject* | CreateDrawObject(const char * ObjName) Create either histogram or graph object. |
TGraph* | CreateGraph(const char * GraphName, Bool_t UseRanges, Bool_t SetBins) Create TGraph object with appropriate to data object size. |
TH1* | CreateHistogram(const char * HistoName, Bool_t UseRanges, Bool_t SetBins) Create histogram (if possible) with appropriate to data object dimensions number and size. |
Bool_t | DefineIndexesLimits(TArrayI& Limits) Iterate over all data points and returns maximum value for indexes. |
protected abstract const TGo4FitData* | GetData() Return pointer on correspondent TGo4FitData object, which create iterator. |
protected Bool_t | GetDeviation() Calculates standard deviation from GetSigmaValue() of data object. |
const Bool_t | HasIndexes() Return kTRUE, if data object has indexes. |
const Bool_t | HasWidths() Return kTRUE, if scale widths values exists. |
const const Int_t* | Indexes() Return indexes for current data point. |
const Int_t | IndexesSize() Return size (number of dimensions) of data indexes. |
virtual Bool_t | Next(Bool_t UseRanges) Shift pointer to next data point. |
protected Bool_t | NextIndex(TArrayI& Index, TArrayI& Limits) Producing next indexes set according limits values. |
const Int_t | Point() Return number of current point, starting from 0. |
protected Bool_t | ProduceScales(const Int_t* index, const Double_t* ownscales, const Double_t* ownwidths) Converts scale values. |
const Bool_t | ReachEnd() Checks, if iterator already reach end of data object. |
protected abstract Bool_t | ReadCurrentPoint() Perform specific actions to read all values from data object. |
protected Bool_t | ReserveArrays(Int_t NumDimen, Int_t NumOwnAxis, Bool_t HasWidth) Reserve buffers for indexes, scales and width values. |
virtual Bool_t | Reset(Bool_t UseRanges) Initialize iterator and positioning pointer on first point. |
const const Double_t* | Scales() Return scale values for current data points. |
const Int_t | ScalesSize() Return size (number) of scale values for each data point. |
protected abstract Bool_t | ShiftToNextPoint() Move pointer to following data point. |
const Double_t | StandardDeviation() Return standard deviation of bin content (Value) for current point. |
protected abstract Bool_t | StartReset() Reset pointer and other specific values to the beggining of data. |
protected void | TransformScales(Double_t* scales) Transform scales values, using transformation objects in data. |
const Double_t | Value() Return bin content (Value) for current point. |
const const Double_t* | Widths() Return scales widths values. |
const Double_t | x() Return current x coordinate if exists, otherwise 0 |
const Double_t | xWidths() Return production of all width parameters (1 if no widths) |
const Double_t | y() Return current y coordinate if exists, otherwise 0 |
const Double_t | z() Return current z coordinate if exists, otherwise 0 |
Field Detail |
protected Bool_t fbReachEnd
protected Double_t fdStandardDeviation
protected Double_t fdValue
protected Int_t fiNumPoint
protected TArrayI fxIndexes
protected TArrayD fxScales
protected TArrayD fxWidths
Constructor Detail |
public TGo4FitDataIter()
Method Detail |
public virtual synchronized ~TGo4FitDataIter()
Method Detail |
public Bool_t CheckPointForRange()
public Int_t CountPoints(Bool_t UseRanges)
public TObject* CreateDrawObject(const char * ObjName)
public TGraph* CreateGraph(const char * GraphName, Bool_t UseRanges, Bool_t SetBins)
public TH1* CreateHistogram(const char * HistoName, Bool_t UseRanges, Bool_t SetBins)
public Bool_t DefineIndexesLimits(TArrayI& Limits)
protected abstract const TGo4FitData* GetData()
protected Bool_t GetDeviation()
public const Bool_t HasIndexes()
public const Bool_t HasWidths()
public const const Int_t* Indexes()
public const Int_t IndexesSize()
public virtual Bool_t Next(Bool_t UseRanges)
protected Bool_t NextIndex(TArrayI& Index, TArrayI& Limits)
public const Int_t Point()
protected Bool_t ProduceScales(const Int_t* index, const Double_t* ownscales, const Double_t* ownwidths)
public const Bool_t ReachEnd()
protected abstract Bool_t ReadCurrentPoint()
protected Bool_t ReserveArrays(Int_t NumDimen, Int_t NumOwnAxis, Bool_t HasWidth)
public virtual Bool_t Reset(Bool_t UseRanges)
public const const Double_t* Scales()
public const Int_t ScalesSize()
protected abstract Bool_t ShiftToNextPoint()
public const Double_t StandardDeviation()
protected abstract Bool_t StartReset()
protected void TransformScales(Double_t* scales)
public const Double_t Value()
public const const Double_t* Widths()
public const Double_t x()
public const Double_t xWidths()
public const Double_t y()
public const Double_t z()
Association Links |
to Class TArrayD
to Class TArrayD
| 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 |