GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FitDataGraph.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4FITDATAGRAPH_H
15#define TGO4FITDATAGRAPH_H
16
17#include "TGo4FitData.h"
18#include "TGo4FitSlot.h"
19
20class TGraph;
21
34 public:
35
40
46 TGo4FitDataGraph(const char *iName, TGraph *iGraph = nullptr, Bool_t iGraphOwned = kFALSE, Bool_t AddAmpl = kFALSE);
47
51 virtual ~TGo4FitDataGraph();
52
56 TGraph *GetGraph() const { return (TGraph *) fxGraph.GetObject(); }
57
62 void SetGraph(TGraph *iGraph, Bool_t iGraphOwned = kFALSE);
63
67 std::unique_ptr<TGo4FitDataIter> MakeIter() override;
68
72 void FillSlotList(TSeqCollection *list) override;
73
77 void Print(Option_t *option = "") const override;
78
79 protected:
80
85
86 ClassDefOverride(TGo4FitDataGraph,1)
87};
88
89// **************************************************************************
90
92 public:
96
97 protected:
98 TGo4FitData *GetData() const override { return fxData; }
99 Bool_t StartReset() override;
100 Bool_t ReadCurrentPoint() override;
101 Bool_t ShiftToNextPoint() override;
102
103 private:
105 Int_t fiNumPoints{0};
106
107 ClassDefOverride(TGo4FitDataGraphIter,1)
108};
109
110#endif // TGO4FITDATAGRAPH_H
Bool_t ReadCurrentPoint() override
Perform specific actions to read all values from data object.
TGo4FitData * GetData() const override
Return pointer on correspondent TGo4FitData object, which create iterator.
Bool_t StartReset() override
Reset pointer and other specific values to the beginning of data.
Bool_t ShiftToNextPoint() override
Move pointer to following data point.
TGo4FitDataGraph * fxData
Data object, which provides access to TGraph and TGraphErrors ROOT objects.
TGo4FitSlot fxGraph
Slot to for TGraph object.
virtual ~TGo4FitDataGraph()
Destroys TGo4FitDataGraph object.
std::unique_ptr< TGo4FitDataIter > MakeIter() override
Create TGo4FitDataGraphIter iterator, associated with given data object.
TGraph * GetGraph() const
Return pointer on TGraph object.
void Print(Option_t *option="") const override
Print information on standard output.
void FillSlotList(TSeqCollection *list) override
Add pointer on slot, which should contain TGraph object, to slots list.
TGo4FitDataGraph()
Default constructor.
void SetGraph(TGraph *iGraph, Bool_t iGraphOwned=kFALSE)
Set TGraph object.
TGo4FitDataIter()
Default constructor.
Basic abstract class for representing data, which should be fitted.
Definition TGo4FitData.h:39
TGo4FitData()
Default constructor.
Managing pointers on specific objects.
Definition TGo4FitSlot.h:28