Public Member Functions | Protected Attributes

TGo4FitDataGraph Class Reference

#include <TGo4FitDataGraph.h>

Inheritance diagram for TGo4FitDataGraph:
TGo4FitData TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed

List of all members.

Public Member Functions

 TGo4FitDataGraph ()
 TGo4FitDataGraph (const char *iName, TGraph *=0, Bool_t iGraphOwned=kFALSE, Bool_t AddAmpl=kFALSE)
virtual ~TGo4FitDataGraph ()
TGraph * GetGraph ()
void SetGraph (TGraph *iGraph, Bool_t iGraphOwned=kFALSE)
TGo4FitDataIterMakeIter ()
virtual void FillSlotList (TSeqCollection *list)
virtual void Print (Option_t *option) const

Protected Attributes

TGo4FitSlot fxGraph

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 22 of file TGo4FitDataGraph.cxx.

TGo4FitDataGraph::TGo4FitDataGraph ( const char *  iName,
TGraph *  iGraph = 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 28 of file TGo4FitDataGraph.cxx.

References TGo4FitData::SetExcludeLessThen().

TGo4FitDataGraph::~TGo4FitDataGraph (  )  [virtual]

Destroys TGo4FitDataGraph object.

Definition at line 35 of file TGo4FitDataGraph.cxx.


Member Function Documentation

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 fxGraph.

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

TGo4FitDataIter * TGo4FitDataGraph::MakeIter (  )  [virtual]

Create TGo4FitDataGraphIter iterator, assosiated with given data object..

Reimplemented from TGo4FitData.

Definition at line 38 of file TGo4FitDataGraph.cxx.

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, and TGo4FitSlot::Print().

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 43 of file TGo4FitDataGraph.cxx.

References TGo4FitSlot::ClearObject(), fxGraph, and TGo4FitSlot::SetObject().

Referenced by TGo4Fitter::SetGraph().


Member Data Documentation

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines