#include <TGo4FitData.h>
Inheritance diagram for TGo4FitDataIter:
Public Methods | |
TGo4FitDataIter () | |
Default constructor. More... | |
virtual | ~TGo4FitDataIter () |
Destroys TGo4FitDataIter object. More... | |
virtual Bool_t | Reset (Bool_t UseRanges=kTRUE) |
Initialize iterator and positioning pointer on first point. More... | |
virtual Bool_t | Next (Bool_t UseRanges=kTRUE) |
Shift pointer to next data point. More... | |
Bool_t | HasIndexes () const |
Return kTRUE, if data object has indexes. More... | |
Int_t | IndexesSize () const |
Return size (number of dimensions) of data indexes. More... | |
const Int_t * | Indexes () const |
Return indexes for current data point. More... | |
Bool_t | DefineIndexesLimits (TArrayI &Limits) |
Iterate over all data points and returns maximum value for indexes. More... | |
Int_t | ScalesSize () const |
Return size (number) of scale values for each data point. More... | |
const Double_t * | Scales () const |
Return scale values for current data points. More... | |
Double_t | x () const |
Return current x coordinate if exists, otherwise 0. More... | |
Double_t | y () const |
Return current y coordinate if exists, otherwise 0. More... | |
Double_t | z () const |
Return current z coordinate if exists, otherwise 0. More... | |
Bool_t | HasWidths () const |
Return kTRUE, if scale widths values exists. More... | |
const Double_t * | Widths () const |
Return scales widths values. More... | |
Double_t | xWidths () const |
Return production of all width parameters (1 if no widths). More... | |
Double_t | Value () const |
Return bin content (Value) for current point. More... | |
Double_t | StandardDeviation () const |
Return standard deviation of bin content (Value) for current point. More... | |
Int_t | Point () const |
Return number of current point, starting from 0. More... | |
Bool_t | CheckPointForRange () |
Check range conditions and amplitude threshold for current point. More... | |
Int_t | CountPoints (Bool_t UseRanges=kTRUE) |
Counts total number of points in data object. More... | |
Bool_t | ReachEnd () const |
Checks, if iterator already reach end of data object. More... | |
TH1 * | CreateHistogram (const char *HistoName, Bool_t UseRanges=kFALSE, Bool_t SetBins=kFALSE) |
Create histogram (if possible) with appropriate to data object dimensions number and size. More... | |
TGraph * | CreateGraph (const char *GraphName, Bool_t UseRanges=kFALSE, Bool_t SetBins=kFALSE) |
Create TGraph object with appropriate to data object size. More... | |
TObject * | CreateDrawObject (const char *ObjName) |
Create either histogram or graph object. More... | |
Protected Methods | |
virtual TGo4FitData * | GetData () const=0 |
Return pointer on correspondent TGo4FitData object, which create iterator. More... | |
virtual Bool_t | StartReset ()=0 |
Reset pointer and other specific values to the beggining of data. More... | |
virtual Bool_t | ReadCurrentPoint ()=0 |
Perform specific actions to read all values from data object. More... | |
virtual Bool_t | ShiftToNextPoint ()=0 |
Move pointer to following data point. More... | |
Bool_t | ReserveArrays (Int_t NumDimen, Int_t NumOwnAxis, Bool_t HasWidth) |
Reserve buffers for indexes, scales and width values. More... | |
void | TransformScales (Double_t *scales) |
Transform scales values, using transformation objects in data. More... | |
Bool_t | ProduceScales (const Int_t *index, const Double_t *ownscales, const Double_t *ownwidths) |
Converts scale values. More... | |
Bool_t | NextIndex (TArrayI &Index, TArrayI &Limits) |
Producing next indexes set according limits values. More... | |
Bool_t | GetDeviation () |
Calculates standard deviation from GetSigmaValue() of data object. More... | |
Protected Attributes | |
TArrayI | fxIndexes |
TArrayD | fxScales |
TArrayD | fxWidths |
Double_t | fdValue |
Double_t | fdStandardDeviation |
Int_t | fiNumPoint |
Bool_t | fbReachEnd |
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.
Definition at line 425 of file TGo4FitData.h.
|
Default constructor.
Definition at line 347 of file TGo4FitData.cxx. |
|
Destroys TGo4FitDataIter object.
Definition at line 351 of file TGo4FitData.cxx. |
|
|
|
Return kTRUE, if data object has indexes.
Definition at line 456 of file TGo4FitData.h. References IndexesSize(). Referenced by TGo4Fitter::CreateDrawObject(), CreateDrawObject(), CreateHistogram(), and TGo4FitData::Initialize(). |
|
Return size (number of dimensions) of data indexes.
Definition at line 461 of file TGo4FitData.h. References fxIndexes. Referenced by TGo4FitAmplEstimation::CalculateWithIterators(), TGo4Fitter::CreateDrawObject(), CreateDrawObject(), CreateHistogram(), TGo4FitData::DefineDimensions(), DefineIndexesLimits(), TGo4FitModelFromData::EvaluateAtPoint(), TGo4FitModelFromData::FindDataPoint(), HasIndexes(), TGo4FitData::Initialize(), TGo4FitData::IsCompatibleData(), and TGo4FitDataRidgeIter::StartReset(). |
|
Return indexes for current data point.
Definition at line 466 of file TGo4FitData.h. References fxIndexes. Referenced by TGo4Fitter::CreateDrawObject(), CreateHistogram(), DefineIndexesLimits(), TGo4FitModelFromData::EvaluateAtPoint(), TGo4FitModelFromData::FindDataPoint(), TGo4FitData::Initialize(), and TGo4FitDataRidgeIter::ReadCurrentPoint(). |
|
Iterate over all data points and returns maximum value for indexes.
Definition at line 498 of file TGo4FitData.cxx. References Indexes(), IndexesSize(), n, Next(), and Reset(). Referenced by CreateHistogram(). |
|
Return size (number) of scale values for each data point.
Definition at line 476 of file TGo4FitData.h. References fxScales. Referenced by TGo4FitData::ApplyRangesForModelMask(), TGo4Fitter::CalculateFCN(), TGo4Fitter::CalculatesIntegral(), TGo4Fitter::CalculatesMomentums(), CheckPointForRange(), TGo4Fitter::CreateDrawObject(), CreateDrawObject(), CreateGraph(), CreateHistogram(), TGo4FitData::DefineScaleMinMax(), TGo4FitModel::EvaluateAtPoint(), TGo4FitPeakFinder::HansEsselPeakFinder(), TGo4FitData::Initialize(), ProduceScales(), TGo4FitDataRidgeIter::ReadCurrentPoint(), TGo4FitPeakFinder::ROOTPeakFinder(), TGo4FitPeakFinder::SergeyLinevPeakFinder(), TGo4FitDataRidgeIter::StartReset(), and TransformScales(). |
|
Return scale values for current data points.
Definition at line 481 of file TGo4FitData.h. References fxScales. Referenced by TGo4FitData::ApplyRangesForModelMask(), CheckPointForRange(), CreateHistogram(), TGo4FitData::DefineScaleMinMax(), TGo4FitModel::EvaluateAtPoint(), TGo4FitData::Initialize(), and TGo4FitDataRidgeIter::ReadCurrentPoint(). |
|
Return current x coordinate if exists, otherwise 0.
Definition at line 486 of file TGo4FitData.h. References fxScales. Referenced by TGo4Fitter::CalculatesMomentums(), TGo4Fitter::CreateDrawObject(), CreateGraph(), TGo4FitPeakFinder::HansEsselPeakFinder(), TGo4FitPeakFinder::ROOTPeakFinder(), and TGo4FitPeakFinder::SergeyLinevPeakFinder(). |
|
Return current y coordinate if exists, otherwise 0.
Definition at line 491 of file TGo4FitData.h. References fxScales. |
|
Return current z coordinate if exists, otherwise 0.
Definition at line 496 of file TGo4FitData.h. References fxScales. |
|
Return kTRUE, if scale widths values exists.
Definition at line 501 of file TGo4FitData.h. References fxWidths. Referenced by TGo4Fitter::CreateDrawObject(), CreateDrawObject(), CreateHistogram(), TGo4FitData::Initialize(), TGo4FitPeakFinder::ROOTPeakFinder(), and xWidths(). |
|
Return scales widths values.
Definition at line 506 of file TGo4FitData.h. References fxWidths. Referenced by CreateHistogram(), TGo4FitModel::EvaluateAtPoint(), TGo4FitData::Initialize(), and TGo4FitPeakFinder::ROOTPeakFinder(). |
|
Return production of all width parameters (1 if no widths).
Definition at line 480 of file TGo4FitData.cxx. References fxWidths, HasWidths(), and n. Referenced by TGo4Fitter::CalculatesIntegral(). |
|
Return bin content (Value) for current point.
Definition at line 516 of file TGo4FitData.h. References fdValue. Referenced by TGo4Fitter::CalculateFCN(), TGo4Fitter::CalculatesIntegral(), TGo4Fitter::CalculatesMomentums(), TGo4FitAmplEstimation::CalculateWithIterators(), CheckPointForRange(), CreateGraph(), CreateHistogram(), TGo4FitModelFromData::FindDataPoint(), TGo4FitPeakFinder::HansEsselPeakFinder(), TGo4FitData::Initialize(), TGo4FitDataRidgeIter::ReadCurrentPoint(), TGo4FitPeakFinder::ROOTPeakFinder(), TGo4FitPeakFinder::SergeyLinevPeakFinder(), and TGo4FitDataRidgeIter::ShiftToNextPoint(). |
|
Return standard deviation of bin content (Value) for current point.
Definition at line 521 of file TGo4FitData.h. References fdStandardDeviation. Referenced by TGo4Fitter::CalculateFCN(), TGo4FitAmplEstimation::CalculateWithIterators(), TGo4FitData::Initialize(), and TGo4FitPeakFinder::SergeyLinevPeakFinder(). |
|
Return number of current point, starting from 0.
Definition at line 526 of file TGo4FitData.h. References fiNumPoint. Referenced by TGo4Fitter::CreateDrawObject(), and CreateGraph(). |
|
Check range conditions and amplitude threshold for current point.
Definition at line 437 of file TGo4FitData.cxx. References TGo4FitComponent::CheckRangeConditions(), GetData(), TGo4FitData::GetExcludeLessThen(), Scales(), ScalesSize(), and Value(). |
|
Counts total number of points in data object. Uses Reset() and Next() methods, therefore change pointer to the data object Definition at line 489 of file TGo4FitData.cxx. References Next(), and Reset(). Referenced by TGo4Fitter::CalculatesMomentums(), CreateGraph(), TGo4FitData::DefineBinsSize(), TGo4FitPeakFinder::HansEsselPeakFinder(), TGo4FitData::Initialize(), TGo4FitPeakFinder::ROOTPeakFinder(), and TGo4FitPeakFinder::SergeyLinevPeakFinder(). |
|
Checks, if iterator already reach end of data object. This heppens, when Next() method return kFALSE value. Definition at line 543 of file TGo4FitData.h. References fbReachEnd. Referenced by TGo4FitModelFromData::FindDataPoint(). |
|
Create histogram (if possible) with appropriate to data object dimensions number and size. If UseRanges specified, data point selection mechanizm will be involved. If SetBins specified, bin content will be copied to histogram. Definition at line 509 of file TGo4FitData.cxx. References DefineIndexesLimits(), TGo4FitComponent::GetAmplValue(), GetData(), HasIndexes(), HasWidths(), Indexes(), IndexesSize(), n, Next(), Reset(), Scales(), ScalesSize(), Value(), and Widths(). Referenced by TGo4Fitter::CreateDrawObject(), and CreateDrawObject(). |
|
Create TGraph object with appropriate to data object size. If more than one scales values exists, only first will be used as X-coordinate of TGraph. Bin content (Value()) will be used as Y-coordinate in TGraph. If UseRanges specified, data point selection mechanizm will be involved. If SetBins specified, bin content will be copied to histogram. Definition at line 558 of file TGo4FitData.cxx. References CountPoints(), TGo4FitComponent::GetAmplValue(), GetData(), Next(), Point(), Reset(), ScalesSize(), Value(), and x(). Referenced by TGo4Fitter::CreateDrawObject(), and CreateDrawObject(). |
|
Create either histogram or graph object.
Definition at line 573 of file TGo4FitData.cxx. References CreateGraph(), CreateHistogram(), HasIndexes(), HasWidths(), IndexesSize(), Reset(), and ScalesSize(). Referenced by TGo4FitData::CreateDrawObject(). |
|
Return pointer on correspondent TGo4FitData object, which create iterator. Should be implemented in derived classes. Implemented in TGo4FitDataGraphIter, TGo4FitDataHistogramIter, TGo4FitDataProfileIter, and TGo4FitDataRidgeIter. Referenced by CheckPointForRange(), CreateGraph(), CreateHistogram(), GetDeviation(), Next(), ProduceScales(), ReserveArrays(), and TransformScales(). |
|
Reset pointer and other specific values to the beggining of data. Should be implemented in derived classes. Implemented in TGo4FitDataGraphIter, TGo4FitDataHistogramIter, TGo4FitDataProfileIter, and TGo4FitDataRidgeIter. Referenced by Reset(). |
|
Perform specific actions to read all values from data object. Should be implemented in derived classes. Implemented in TGo4FitDataGraphIter, TGo4FitDataHistogramIter, TGo4FitDataProfileIter, and TGo4FitDataRidgeIter. |
|
Move pointer to following data point. Should be implemented in derived classes. Implemented in TGo4FitDataGraphIter, TGo4FitDataHistogramIter, TGo4FitDataProfileIter, and TGo4FitDataRidgeIter. |
|
Reserve buffers for indexes, scales and width values. In case of 3-D histogram they consume only 3 Int_t and 6 Double_t points. Definition at line 354 of file TGo4FitData.cxx. References fxIndexes, fxScales, fxWidths, GetData(), and TGo4FitData::GetUseBinScale(). Referenced by TGo4FitDataRidgeIter::StartReset(), TGo4FitDataProfileIter::StartReset(), TGo4FitDataHistogramIter::StartReset(), and TGo4FitDataGraphIter::StartReset(). |
|
Transform scales values, using transformation objects in data.
Definition at line 373 of file TGo4FitData.cxx. References TGo4FitData::GetAxisTrans(), GetData(), TGo4FitData::GetNumberOfTransSlots(), ScalesSize(), and TGo4FitAxisTrans::Transformation(). Referenced by ProduceScales(). |
|
Converts scale values. Involved when usage of binary number insted scales or axis calibration objects specified to data. Definition at line 381 of file TGo4FitData.cxx. References TGo4FitData::dtHistogram, fxScales, fxWidths, GetData(), TGo4FitData::GetDataType(), TGo4FitData::GetNumberOfTransSlots(), TGo4FitData::GetUseBinScale(), n, ScalesSize(), and TransformScales(). Referenced by TGo4FitDataRidgeIter::ReadCurrentPoint(), TGo4FitDataProfileIter::ReadCurrentPoint(), TGo4FitDataHistogramIter::ReadCurrentPoint(), and TGo4FitDataGraphIter::ReadCurrentPoint(). |
|
Producing next indexes set according limits values.
Definition at line 418 of file TGo4FitData.cxx. References n. Referenced by TGo4FitDataHistogramIter::ShiftToNextPoint(). |
|
Calculates standard deviation from GetSigmaValue() of data object.
Definition at line 428 of file TGo4FitData.cxx. References fdStandardDeviation, GetData(), TGo4FitData::GetSigmaSource(), and TGo4FitData::GetSigmaValue(). Referenced by TGo4FitDataRidgeIter::ReadCurrentPoint(), TGo4FitDataProfileIter::ReadCurrentPoint(), TGo4FitDataHistogramIter::ReadCurrentPoint(), and TGo4FitDataGraphIter::ReadCurrentPoint(). |
|
Definition at line 619 of file TGo4FitData.h. Referenced by Indexes(), IndexesSize(), TGo4FitDataProfileIter::ReadCurrentPoint(), TGo4FitDataHistogramIter::ReadCurrentPoint(), TGo4FitDataGraphIter::ReadCurrentPoint(), ReserveArrays(), TGo4FitDataProfileIter::ShiftToNextPoint(), TGo4FitDataHistogramIter::ShiftToNextPoint(), and TGo4FitDataGraphIter::ShiftToNextPoint(). |
|
Definition at line 621 of file TGo4FitData.h. Referenced by ProduceScales(), ReserveArrays(), Scales(), ScalesSize(), x(), y(), and z(). |
|
Definition at line 622 of file TGo4FitData.h. Referenced by HasWidths(), ProduceScales(), ReserveArrays(), Widths(), and xWidths(). |
|
Definition at line 623 of file TGo4FitData.h. Referenced by TGo4FitDataRidgeIter::ReadCurrentPoint(), TGo4FitDataProfileIter::ReadCurrentPoint(), TGo4FitDataHistogramIter::ReadCurrentPoint(), TGo4FitDataGraphIter::ReadCurrentPoint(), and Value(). |
|
Definition at line 624 of file TGo4FitData.h. Referenced by GetDeviation(), TGo4FitDataRidgeIter::ReadCurrentPoint(), TGo4FitDataProfileIter::ReadCurrentPoint(), TGo4FitDataHistogramIter::ReadCurrentPoint(), TGo4FitDataGraphIter::ReadCurrentPoint(), and StandardDeviation(). |
|
Definition at line 626 of file TGo4FitData.h. |
|
Definition at line 628 of file TGo4FitData.h. |