GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4FitDataRidge.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 TGO4FITDATARIDGE_H
15 #define TGO4FITDATARIDGE_H
16 
17 #include "TGo4FitData.h"
18 #include "TGo4FitSlot.h"
19 
31 class TGo4FitDataRidge : public TGo4FitData {
32  public:
33 
38 
44  TGo4FitDataRidge(const char *iName, TGo4FitData *Data = nullptr, Int_t SelectedAxis = 1);
45 
49  virtual ~TGo4FitDataRidge();
50 
54  void SetData(TGo4FitData *iData, Bool_t Owned) { fxData.SetObject(iData,Owned); }
55 
59  TGo4FitData *GetData() const { return dynamic_cast<TGo4FitData *>(fxData.GetObject()); }
60 
64  void SetSelectedAxis(Int_t naxis) { fiSelectedAxis = naxis; }
65 
69  Int_t GetSelectedAxis() const { return fiSelectedAxis; }
70 
74  std::unique_ptr<TGo4FitDataIter> MakeIter() override;
75 
79  void FillSlotList(TSeqCollection *list) override;
80 
84  virtual void Print(Option_t *option = "") const override;
85 
86  protected:
87 
92 
96  Int_t fiSelectedAxis{0};
97 
98  ClassDefOverride(TGo4FitDataRidge,1)
99 };
100 
101 // *****************************************************************************
102 
104  public:
108 
109  protected:
110  TGo4FitData *GetData() const override { return fxData; }
111  Bool_t StartReset() override;
112  Bool_t ReadCurrentPoint() override;
113  Bool_t ShiftToNextPoint() override;
114 
115  private:
117  std::unique_ptr<TGo4FitDataIter> iter;
118  TArrayD fxOwnScales;
119 
120  ClassDefOverride(TGo4FitDataRidgeIter,1)
121 };
122 
123 #endif // TGO4FITDATARIDGE_H
virtual ~TGo4FitDataRidge()
TGo4FitSlot fxData
void SetSelectedAxis(Int_t naxis)
virtual void Print(Option_t *option="") const override
std::unique_ptr< TGo4FitDataIter > MakeIter() override
Int_t GetSelectedAxis() const
std::unique_ptr< TGo4FitDataIter > iter
TGo4FitData * GetData() const
void FillSlotList(TSeqCollection *list) override
Bool_t SetObject(TObject *iObject, Bool_t iOwned=kFALSE, Bool_t CheckClass=kTRUE)
TGo4FitData * GetData() const override
void SetData(TGo4FitData *iData, Bool_t Owned)
TObject * GetObject() const