v2.10-0 (21000JUN2005)

Go4Fit
Class TGo4FitDataHistogram


class TGo4FitDataHistogram
derived from TGo4FitData

Data objects, which provides access to generic TH1 ROOT histogram.

There are several implementations of TH1 for one, two and three-dimensional histogram. All of them inherited from TH1 class and supported in TGo4FitDataHistogram object.
The histogram can be assigned to TGo4FitDataHistogram object in constructor, in SetHistogram() method or in SetObject() method of fitter. Histogram may owned, or may not owned by data object.
TGo4FitDataHistogram gets from histogram number of dimensions and number of bins on each axis. The first and last bins on each axis (0 and NBins+1 indexes) are excluded from data analysis. This means, that data object uses only bins, which has indexes from 1 to NBins.
If no calibration objects are sets up, TGo4FitDataHistogram can uses axis values, taken from histogram itself. As axis values central position of each bin is using.


Field Summary
 protected TGo4FitSlotfxHistogram
          Slot for storing pointer on TH1 object

Fields inherited from class Go4Fit.TGo4FitData
fbUseBinScale, fdExcludeLessThen, fdSigmaValue, fiDataType, fiTakeSigmasFrom, fxAxisTrans

Fields inherited from class TNamed
fName, fTitle

Fields inherited from class Go4Fit.TGo4FitSlotList
fbUpdateSlotList, fxSlotList

Constructor Summary
TGo4FitDataHistogram()
          Default constructor.
TGo4FitDataHistogram(const char * iName, TH1* , Bool_t iHistogramOwned, Bool_t AddAmpl)
          Creates TGo4FitDataHistogram object with provided name.

Destructor Summary
 virtual synchronized ~TGo4FitDataHistogram()
          Destroys TGo4FitDataHistogram object.

Method Summary
 virtual voidFillSlotList(TSeqCollection* list)
          Add pointer on slot, which should contains histogram, to list.
 TH1*GetHistogram()
          Return pointer on assigned histogram.
 TGo4FitDataIter*MakeIter()
          Create TGo4FitDataHistogramIter iterator, assosiated with given data object..
 virtual const voidPrint(Option_t* option)
          Print information to standard output.
 voidSetHistogram(TH1* iHistogram, Bool_t iHistogramOwned)
          Set histogram to object.

Methods inherited from class Go4Fit.TGo4FitData
AddAxisTrans, ApplyRangesForModelMask, BuffersAllocated, CanAmplTouch, CreateDrawObject, DefineBinsSize, DefineDimensions, DefineScaleMinMax, Finalize, GetAxisTrans, GetAxisTransSlot, GetBinsDevs, GetBinsResult, GetBinsSize, GetBinsValues, GetDataType, GetExcludeLessThen, GetFullIndex, GetIndexesSize, GetNumberOfTransSlots, GetScalesSize, GetScaleValues, GetSigmaSource, GetSigmaValue, GetUseBinScale, GetWidthValues, Initialize, IsAnyDataTransform, IsCompatibleData, SetAxisTrans, SetAxisTransNeeded, SetExcludeLessThen, SetNumberOfTransSlots, SetSigmaSource, SetSigmaValue, SetUseBinScale

Methods inherited from class Go4Fit.TGo4FitComponent
AddRangeCondition, AddRangeCut, CheckRangeConditions, ClearRanges, CollectParsTo, ExcludeRange, GetAmplError, GetAmplFullName, GetAmplIndex, GetAmplName, GetAmplPar, GetAmplValue, GetNumRangeCondition, GetNumRangeCut, GetRangeCondition, GetRangeCut, GetRangeMax, GetRangeMin, GetUseBuffers, IsAnyRangeLimits, IsRangeCutExcluding, MakeAmpl, NewAmplitude, NewParameter, RemoveAmpl, RemoveRangeCondition, RemoveRangeCut, SetAmplError, SetAmplIndex, SetAmplValue, SetRange, SetRangeCondition, SetRangeCutExcluding, SetRangeMax, SetRangeMin, SetUseBuffers

Methods inherited from class Go4Fit.TGo4FitParsList
AddPar, CanRollbackPars, ClearPars, ClearParsBlocking, CreatePar, Find, Find, Find, FindPar, FindPar, FindPar, Get, GetPar, GetParEpsilon, GetParError, GetParFixed, GetParFullName, GetParIndex, GetParName, GetParRange, GetParsValues, GetParValue, InsertPar, IsAllParsFixed, MemorizePars, NumFixedPars, NumFreePars, NumPars, PrintPars, RememberPars, RemovePar, RemovePar, RemoveParByIndex, SetParEpsilon, SetParError, SetParFixed, SetParName, SetParRange, SetParsNames, SetParsOwner, SetParsValues, SetParsValues, SetParValue

Methods inherited from class Go4Fit.TGo4FitNamed
GetFullName, GetOwner, GetOwnerFullName, SetOwner

Methods inherited from class TNamed
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Methods inherited from class Go4Fit.TGo4FitSlotList
CheckDuplicatesOnSlot, CheckObjects, ClearObjects, ClearSlot, ConnectSlots, ConnectSlots, FindSlot, GetSlot, GetSlotList, IsEmptySlots, IsObjectInSlots, NumSlots, PrepareSlotsForWriting, SetObject, SetObject, SetSaveFlagForObjects, SetUpdateSlotList

Field Detail

fxHistogram

protected TGo4FitSlot fxHistogram
Slot for storing pointer on TH1 object
label slot for TH1*
Constructor Detail

TGo4FitDataHistogram

public TGo4FitDataHistogram()
Default constructor.

TGo4FitDataHistogram

public TGo4FitDataHistogram(const char * iName, TH1* , Bool_t iHistogramOwned, Bool_t AddAmpl)
Creates TGo4FitDataHistogram object with provided name.
Pointer on histogram (derived from TH1 class) and ownership flag can be sets up in constructor.
Scaling factor for bins (amplitude) can be added.
Method Detail

~TGo4FitDataHistogram

public virtual synchronized ~TGo4FitDataHistogram()
Destroys TGo4FitDataHistogram object.
Method Detail

FillSlotList

public virtual void FillSlotList(TSeqCollection* list)
Add pointer on slot, which should contains histogram, to list.

GetHistogram

public TH1* GetHistogram()
Return pointer on assigned histogram.

MakeIter

public TGo4FitDataIter* MakeIter()
Create TGo4FitDataHistogramIter iterator, assosiated with given data object..

Print

public virtual const void Print(Option_t* option)
Print information to standard output.

SetHistogram

public void SetHistogram(TH1* iHistogram, Bool_t iHistogramOwned)
Set histogram to object.
Ownership flag also can be sets up. By default histogram is not owned by object.

Association Links

to Class TGo4FitSlot

Slot for storing pointer on TH1 object

Label slot for TH1*

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005