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

TGo4FitDataHistogram Class Reference

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

#include <TGo4FitDataHistogram.h>

Inheritance diagram for TGo4FitDataHistogram:

TGo4FitData TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed List of all members.

Public Methods

 TGo4FitDataHistogram ()
 Default constructor. More...

 TGo4FitDataHistogram (const char *iName, TH1 *=0, Bool_t iHistogramOwned=kFALSE, Bool_t AddAmpl=kFALSE)
 Creates TGo4FitDataHistogram object with provided name. More...

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

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

void SetHistogram (TH1 *iHistogram, Bool_t iHistogramOwned=kFALSE)
 Set histogram to object. More...

TGo4FitDataIterMakeIter ()
 Create TGo4FitDataHistogramIter iterator, assosiated with given data object.. More...

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

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


Protected Attributes

TGo4FitSlot fxHistogram
 Slot for storing pointer on TH1 object @label slot for TH1*. More...


Detailed Description

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.

Definition at line 30 of file TGo4FitDataHistogram.h.


Constructor & Destructor Documentation

TGo4FitDataHistogram::TGo4FitDataHistogram  
 

Default constructor.

Definition at line 23 of file TGo4FitDataHistogram.cxx.

TGo4FitDataHistogram::TGo4FitDataHistogram const char *    iName,
TH1 *    = 0,
Bool_t    iHistogramOwned = kFALSE,
Bool_t    AddAmpl = kFALSE
 

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.

Definition at line 27 of file TGo4FitDataHistogram.cxx.

TGo4FitDataHistogram::~TGo4FitDataHistogram   [virtual]
 

Destroys TGo4FitDataHistogram object.

Definition at line 32 of file TGo4FitDataHistogram.cxx.


Member Function Documentation

TH1* TGo4FitDataHistogram::GetHistogram   [inline]
 

Return pointer on assigned histogram.

Definition at line 53 of file TGo4FitDataHistogram.h.

References fxHistogram, and TGo4FitSlot::GetObject().

Referenced by TGo4FitDataHistogramIter::ReadCurrentPoint(), and TGo4FitDataHistogramIter::StartReset().

void TGo4FitDataHistogram::SetHistogram TH1 *    iHistogram,
Bool_t    iHistogramOwned = kFALSE
[inline]
 

Set histogram to object.

Ownership flag also can be sets up. By default histogram is not owned by object.

Definition at line 59 of file TGo4FitDataHistogram.h.

References fxHistogram, and TGo4FitSlot::SetObject().

Referenced by Example5(), and TGo4Fitter::SetH1().

TGo4FitDataIter * TGo4FitDataHistogram::MakeIter   [virtual]
 

Create TGo4FitDataHistogramIter iterator, assosiated with given data object..

Reimplemented from TGo4FitData.

Definition at line 35 of file TGo4FitDataHistogram.cxx.

void TGo4FitDataHistogram::FillSlotList TSeqCollection *    list [virtual]
 

Add pointer on slot, which should contains histogram, to list.

Reimplemented from TGo4FitData.

Definition at line 39 of file TGo4FitDataHistogram.cxx.

References TGo4FitData::FillSlotList(), and fxHistogram.

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

Print information to standard output.

Reimplemented from TGo4FitData.

Definition at line 44 of file TGo4FitDataHistogram.cxx.

References fxHistogram, TGo4FitSlot::Print(), and TGo4FitData::Print().


Member Data Documentation

TGo4FitSlot TGo4FitDataHistogram::fxHistogram [protected]
 

Slot for storing pointer on TH1 object @label slot for TH1*.

Definition at line 82 of file TGo4FitDataHistogram.h.

Referenced by FillSlotList(), GetHistogram(), Print(), and SetHistogram().


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