Public Member Functions | Protected Attributes

TGo4FitDataRidge Class Reference

#include <TGo4FitDataRidge.h>

Inheritance diagram for TGo4FitDataRidge:
TGo4FitData TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed

List of all members.

Public Member Functions

 TGo4FitDataRidge ()
 TGo4FitDataRidge (const char *iName, TGo4FitData *Data=0, Int_t SelectedAxis=1)
virtual ~TGo4FitDataRidge ()
void SetData (TGo4FitData *iData, Bool_t Owned)
TGo4FitDataGetData () const
void SetSelectedAxis (Int_t naxis)
Int_t GetSelectedAxis ()
TGo4FitDataIterMakeIter ()
virtual void FillSlotList (TSeqCollection *list)
virtual void Print (Option_t *option) const

Protected Attributes

TGo4FitSlot fxData
Int_t fiSelectedAxis

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 20 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 24 of file TGo4FitDataRidge.cxx.

References TGo4FitData::SetExcludeLessThen().

TGo4FitDataRidge::~TGo4FitDataRidge (  )  [virtual]

Destroys TGo4FitDataRidge object

Definition at line 32 of file TGo4FitDataRidge.cxx.


Member Function Documentation

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 40 of file TGo4FitDataRidge.cxx.

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

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().

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 36 of file TGo4FitDataRidge.cxx.

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

Print information to standard output.

Reimplemented from TGo4FitData.

Definition at line 47 of file TGo4FitDataRidge.cxx.

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

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().

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.


Member Data Documentation

Number of selected as ridge axis.

Definition at line 96 of file TGo4FitDataRidge.h.

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

Slot for TGo4FitData object.

Definition at line 91 of file TGo4FitDataRidge.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines