TGo4FitDataRidge Class Reference

Special object to approxiamte ridges on multi-dimensional histograms. More...

#include <TGo4FitDataRidge.h>

Inheritance diagram for TGo4FitDataRidge:

TGo4FitData TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed List of all members.

Public Member Functions

 TGo4FitDataRidge ()
 Default constructor.
 TGo4FitDataRidge (const char *iName, TGo4FitData *Data=0, Int_t SelectedAxis=1)
 Creates TGo4FitDataRidge object with given name.
virtual ~TGo4FitDataRidge ()
 Destroys TGo4FitDataRidge object.
void SetData (TGo4FitData *iData, Bool_t Owned)
 Sets pointer on TGo4FitData object and ownership flag.
TGo4FitDataGetData () const
 Returns pointer on TGo4FitData object.
void SetSelectedAxis (Int_t naxis)
 Sets number of axis, which selected as "ridge altitude".
Int_t GetSelectedAxis ()
 Returns number of selected axis.
TGo4FitDataIterMakeIter ()
 Create TGo4FitDataRidgeIter iterator, assosiated with given data object.
virtual void FillSlotList (TSeqCollection *list)
 Add pointer on slot, which should contain TGo4FitData object, to list of slots.
virtual void Print (Option_t *option) const
 Print information to standard output.

Protected Attributes

TGo4FitSlot fxData
 Slot for TGo4FitData object.
Int_t fiSelectedAxis
 Number of selected as ridge axis.

Detailed Description

Special object to approxiamte ridges on multi-dimensional histograms.

Ridge means that some coordinate in multidimensional histograms can be represented as function of another coordinate(s) like y = f(x). If one has histogram, build in (x,y) space, one can try to approximate function f by several way.

First simplest way, which works for two-dimensional way is to build TProfile from TH2 object, averaging data along y axis. Then TGo4FitDataProfile can be used to approximate TProfile by any kind of functional dependency.

Another way is usage of TGo4FitDataRidge object. It selects one of histogram coordinate and use histogram as a set of measured points y(x) with different statistical weights, reverse proportinal to bin content of histogram at (x,y). Then this set of points can be again approximate of any kind of functional dependency from one coordinate. This simplest case can be extend to N-dimensions. In this case one of coordinate is a functions of the rest. This means, that this corrdinate can be approximate by function with N-1 coordinates.

To obtain data, TGo4FitDataRidge object internally uses another TGo4FitData, which should provide histogram. Currently only TGo4FitDataHistogram object can be used for this purposes.

Definition at line 31 of file TGo4FitDataRidge.h.


Constructor & Destructor Documentation

TGo4FitDataRidge::TGo4FitDataRidge (  ) 

Default constructor.

Definition at line 21 of file TGo4FitDataRidge.cxx.

TGo4FitDataRidge::TGo4FitDataRidge ( const char *  iName,
TGo4FitData Data = 0,
Int_t  SelectedAxis = 1 
)

Creates TGo4FitDataRidge object with given name.

Pointer on TGo4FitData object, which should provide histogramic data, can be specified. Also axis number, which uses as ridge coordinate, can be specified. By default y-axis is used as ridge.

Definition at line 25 of file TGo4FitDataRidge.cxx.

References TGo4FitData::SetExcludeLessThen().

TGo4FitDataRidge::~TGo4FitDataRidge (  )  [virtual]

Destroys TGo4FitDataRidge object.

Definition at line 33 of file TGo4FitDataRidge.cxx.


Member Function Documentation

void TGo4FitDataRidge::SetData ( TGo4FitData iData,
Bool_t  Owned 
) [inline]

Sets pointer on TGo4FitData object and ownership flag.

Definition at line 54 of file TGo4FitDataRidge.h.

References fxData, and TGo4FitSlot::SetObject().

TGo4FitData* TGo4FitDataRidge::GetData (  )  const [inline]

Returns pointer on TGo4FitData object.

Definition at line 59 of file TGo4FitDataRidge.h.

References fxData, and TGo4FitSlot::GetObject().

Referenced by FillSlotList(), Print(), and TGo4FitDataRidgeIter::StartReset().

void TGo4FitDataRidge::SetSelectedAxis ( Int_t  naxis  )  [inline]

Sets number of axis, which selected as "ridge altitude".

Definition at line 64 of file TGo4FitDataRidge.h.

References fiSelectedAxis.

Int_t TGo4FitDataRidge::GetSelectedAxis (  )  [inline]

Returns number of selected axis.

Definition at line 69 of file TGo4FitDataRidge.h.

References fiSelectedAxis.

Referenced by TGo4FitDataRidgeIter::ReadCurrentPoint().

TGo4FitDataIter * TGo4FitDataRidge::MakeIter (  )  [virtual]

Create TGo4FitDataRidgeIter iterator, assosiated with given data object.

Reimplemented from TGo4FitData.

Definition at line 37 of file TGo4FitDataRidge.cxx.

void TGo4FitDataRidge::FillSlotList ( TSeqCollection *  list  )  [virtual]

Add pointer on slot, which should contain TGo4FitData object, to list of slots.

Reimplemented from TGo4FitData.

Definition at line 41 of file TGo4FitDataRidge.cxx.

References TGo4FitData::FillSlotList(), fxData, and GetData().

void TGo4FitDataRidge::Print ( Option_t *  option  )  const [virtual]

Print information to standard output.

Reimplemented from TGo4FitData.

Definition at line 48 of file TGo4FitDataRidge.cxx.

References fiSelectedAxis, GetData(), and TGo4FitData::Print().


Member Data Documentation

TGo4FitSlot TGo4FitDataRidge::fxData [protected]

Slot for TGo4FitData object.

Definition at line 91 of file TGo4FitDataRidge.h.

Referenced by FillSlotList(), GetData(), and SetData().

Int_t TGo4FitDataRidge::fiSelectedAxis [protected]

Number of selected as ridge axis.

Definition at line 96 of file TGo4FitDataRidge.h.

Referenced by GetSelectedAxis(), Print(), and SetSelectedAxis().


The documentation for this class was generated from the following files:
Generated on Thu Oct 28 15:54:19 2010 for Go4-Fitpackagev4.04-2 by  doxygen 1.5.1