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

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 Methods

 TGo4FitDataRidge ()
 Default constructor. More...

 TGo4FitDataRidge (const char *iName, TGo4FitData *Data=0, Int_t SelectedAxis=1)
 Creates TGo4FitDataRidge object with given name. More...

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

void SetData (TGo4FitData *iData, Bool_t Owned)
 Sets pointer on TGo4FitData object and ownership flag. More...

TGo4FitDataGetData () const
 Returns pointer on TGo4FitData object. More...

void SetSelectedAxis (Int_t naxis)
 Sets number of axis, which selected as "ridge altitude". More...

Int_t GetSelectedAxis ()
 Returns number of selected axis. More...

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

virtual void FillSlotList (TSeqCollection *list)
 Add pointer on slot, which should contain TGo4FitData object, to list of slots. More...

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


Protected Attributes

TGo4FitSlot fxData
 Slot for TGo4FitData object. More...

Int_t fiSelectedAxis
 Number of selected as ridge axis. More...


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 33 of file TGo4FitDataRidge.h.


Constructor & Destructor Documentation

TGo4FitDataRidge::TGo4FitDataRidge  
 

Default constructor.

Definition at line 23 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 27 of file TGo4FitDataRidge.cxx.

References TGo4FitData::SetExcludeLessThen().

TGo4FitDataRidge::~TGo4FitDataRidge   [virtual]
 

Destroys TGo4FitDataRidge object.

Definition at line 35 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 56 of file TGo4FitDataRidge.h.

References fxData, and TGo4FitSlot::SetObject().

TGo4FitData* TGo4FitDataRidge::GetData   const [inline]
 

Returns pointer on TGo4FitData object.

Definition at line 61 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 66 of file TGo4FitDataRidge.h.

References fiSelectedAxis.

Int_t TGo4FitDataRidge::GetSelectedAxis   [inline]
 

Returns number of selected axis.

Definition at line 71 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 39 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 43 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 50 of file TGo4FitDataRidge.cxx.

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


Member Data Documentation

TGo4FitSlot TGo4FitDataRidge::fxData [protected]
 

Slot for TGo4FitData object.

Definition at line 93 of file TGo4FitDataRidge.h.

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

Int_t TGo4FitDataRidge::fiSelectedAxis [protected]
 

Number of selected as ridge axis.

Definition at line 98 of file TGo4FitDataRidge.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:40 2005 for Go4-v2.10-5 by doxygen1.2.15