TGo4FitDataGraph Class Reference

Data object, which provides access to TGraph and TGraphErrors ROOT objects. More...

#include <TGo4FitDataGraph.h>

Inheritance diagram for TGo4FitDataGraph:

TGo4FitData TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed List of all members.

Public Member Functions

 TGo4FitDataGraph ()
 Default constructor.
 TGo4FitDataGraph (const char *iName, TGraph *=0, Bool_t iGraphOwned=kFALSE, Bool_t AddAmpl=kFALSE)
 Create TGo4FitDataGraph object with given name.
virtual ~TGo4FitDataGraph ()
 Destroys TGo4FitDataGraph object.
TGraph * GetGraph ()
 Return pointer on TGraph object.
void SetGraph (TGraph *iGraph, Bool_t iGraphOwned=kFALSE)
 Set TGraph object.
TGo4FitDataIterMakeIter ()
 Create TGo4FitDataGraphIter iterator, assosiated with given data object.
virtual void FillSlotList (TSeqCollection *list)
 Add pointer on slot, which should contain TGraph object, to slots list.
virtual void Print (Option_t *option) const
 Print information on stndard output.

Protected Attributes

TGo4FitSlot fxGraph
 Slot to for TGraph object.

Detailed Description

Data object, which provides access to TGraph and TGraphErrors ROOT objects.

TGraph is just N points with X and Y coordinates. This is mean, that it may be only one-dimensional. The TGraph object can be assigned to TGo4FitDataGraph object in constructor, in SetGraph() method or in SetObject() method of fitter. TGraph object may owned, or may not owned by data object. TGo4FitDataGraph gets Y values as bins containment. If no calibration object is sets up, X can be used as axis values. If TGraphErrors object is assigned, the error values of Y can be used as sigmas in chi-square calculations (fit-function type should be ff_chi_square).

Definition at line 30 of file TGo4FitDataGraph.h.


Constructor & Destructor Documentation

TGo4FitDataGraph::TGo4FitDataGraph (  ) 

Default constructor.

Definition at line 23 of file TGo4FitDataGraph.cxx.

TGo4FitDataGraph::TGo4FitDataGraph ( const char *  iName,
TGraph *  = 0,
Bool_t  iGraphOwned = kFALSE,
Bool_t  AddAmpl = kFALSE 
)

Create TGo4FitDataGraph object with given name.

Pointer on TGraph and ownership flag can be provided. Scaling factor (amplitude) also can be added.

Definition at line 29 of file TGo4FitDataGraph.cxx.

References TGo4FitData::SetExcludeLessThen().

TGo4FitDataGraph::~TGo4FitDataGraph (  )  [virtual]

Destroys TGo4FitDataGraph object.

Definition at line 36 of file TGo4FitDataGraph.cxx.


Member Function Documentation

TGraph* TGo4FitDataGraph::GetGraph (  )  [inline]

Return pointer on TGraph object.

Definition at line 53 of file TGo4FitDataGraph.h.

References fxGraph, and TGo4FitSlot::GetObject().

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

void TGo4FitDataGraph::SetGraph ( TGraph *  iGraph,
Bool_t  iGraphOwned = kFALSE 
)

Set TGraph object.

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

Definition at line 44 of file TGo4FitDataGraph.cxx.

References fxGraph, and TGo4FitSlot::SetObject().

Referenced by TGo4Fitter::SetGraph().

TGo4FitDataIter * TGo4FitDataGraph::MakeIter (  )  [virtual]

Create TGo4FitDataGraphIter iterator, assosiated with given data object.

Reimplemented from TGo4FitData.

Definition at line 39 of file TGo4FitDataGraph.cxx.

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

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

Reimplemented from TGo4FitData.

Definition at line 49 of file TGo4FitDataGraph.cxx.

References TGo4FitData::FillSlotList(), and fxGraph.

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

Print information on stndard output.

Reimplemented from TGo4FitData.

Definition at line 55 of file TGo4FitDataGraph.cxx.

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


Member Data Documentation

TGo4FitSlot TGo4FitDataGraph::fxGraph [protected]

Slot to for TGraph object.

fxGraph

Definition at line 82 of file TGo4FitDataGraph.h.

Referenced by FillSlotList(), GetGraph(), Print(), and SetGraph().


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