GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4FitDataProfile.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 TGO4FITDATAPROFILE_H
15 #define TGO4FITDATAPROFILE_H
16 
17 #include "TGo4FitData.h"
18 #include "TGo4FitSlot.h"
19 
20 class TProfile;
21 
28  public:
29 
34 
40  TGo4FitDataProfile(const char *iName, TProfile *iProfile = nullptr, Bool_t iGraphOwned = kFALSE, Bool_t AddAmpl = kFALSE);
41 
45  virtual ~TGo4FitDataProfile();
46 
50  TProfile *GetProfile() const { return (TProfile *) fxProfile.GetObject(); }
51 
56  void SetProfile(TProfile *iProfile, Bool_t iProfileOwned = kFALSE);
57 
61  std::unique_ptr<TGo4FitDataIter> MakeIter() override;
62 
66  void FillSlotList(TSeqCollection *list) override;
67 
71  void Print(Option_t *option = "") const override;
72 
73  protected:
74 
80 
81  ClassDefOverride(TGo4FitDataProfile,1)
82 };
83 
84 // **************************************************************************
85 
87  public:
91 
92  protected:
93  TGo4FitData *GetData() const override { return fxData; }
94  Bool_t StartReset() override;
95  Bool_t ReadCurrentPoint() override;
96  Bool_t ShiftToNextPoint() override;
97 
98  private:
99  TGo4FitDataProfile *fxData{nullptr};
100  Int_t fiNumPoints{0};
101 
102  ClassDefOverride(TGo4FitDataProfileIter,1)
103 };
104 
105 
106 #endif // TGO4FITDATAPROFILE_H
TGo4FitData * GetData() const override
TProfile * GetProfile() const
void SetProfile(TProfile *iProfile, Bool_t iProfileOwned=kFALSE)
std::unique_ptr< TGo4FitDataIter > MakeIter() override
void FillSlotList(TSeqCollection *list) override
void Print(Option_t *option="") const override
TObject * GetObject() const