GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
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 
20 class TGraph;
21 
31 class TGo4FitDataGraph : public TGo4FitData {
32  public:
33 
38 
44  TGo4FitDataGraph(const char *iName, TGraph *iGraph = nullptr, Bool_t iGraphOwned = kFALSE, Bool_t AddAmpl = kFALSE);
45 
49  virtual ~TGo4FitDataGraph();
50 
54  TGraph *GetGraph() const { return (TGraph *) fxGraph.GetObject(); }
55 
60  void SetGraph(TGraph *iGraph, Bool_t iGraphOwned = kFALSE);
61 
65  std::unique_ptr<TGo4FitDataIter> MakeIter() override;
66 
70  void FillSlotList(TSeqCollection *list) override;
71 
75  void Print(Option_t *option = "") const override;
76 
77  protected:
78 
84 
85  ClassDefOverride(TGo4FitDataGraph,1)
86 };
87 
88 // **************************************************************************
89 
91  public:
95 
96  protected:
97  TGo4FitData *GetData() const override { return fxData; }
98  Bool_t StartReset() override;
99  Bool_t ReadCurrentPoint() override;
100  Bool_t ShiftToNextPoint() override;
101 
102  private:
103  TGo4FitDataGraph *fxData{nullptr};
104  Int_t fiNumPoints{0};
105 
106  ClassDefOverride(TGo4FitDataGraphIter,1)
107 };
108 
109 #endif // TGO4FITDATAGRAPH_H
void Print(Option_t *option="") const override
TGo4FitSlot fxGraph
TGo4FitData * GetData() const override
virtual ~TGo4FitDataGraph()
void FillSlotList(TSeqCollection *list) override
void SetGraph(TGraph *iGraph, Bool_t iGraphOwned=kFALSE)
std::unique_ptr< TGo4FitDataIter > MakeIter() override
TObject * GetObject() const
TGraph * GetGraph() const