GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
34 public:
35
40
46 TGo4FitDataRidge(const char *iName, TGo4FitData *Data = nullptr, Int_t SelectedAxis = 1);
47
51 virtual ~TGo4FitDataRidge();
52
56 void SetData(TGo4FitData *iData, Bool_t Owned) { fxData.SetObject(iData,Owned); }
57
61 TGo4FitData *GetData() const { return dynamic_cast<TGo4FitData *>(fxData.GetObject()); }
62
66 void SetSelectedAxis(Int_t naxis) { fiSelectedAxis = naxis; }
67
71 Int_t GetSelectedAxis() const { return fiSelectedAxis; }
72
76 std::unique_ptr<TGo4FitDataIter> MakeIter() override;
77
81 void FillSlotList(TSeqCollection *list) override;
82
86 virtual void Print(Option_t *option = "") const override;
87
88 protected:
89
94
99
100 ClassDefOverride(TGo4FitDataRidge,1)
101};
102
103// *****************************************************************************
104
106 public:
110
111 protected:
112 TGo4FitData *GetData() const override { return fxData; }
113 Bool_t StartReset() override;
114 Bool_t ReadCurrentPoint() override;
115 Bool_t ShiftToNextPoint() override;
116
117 private:
119 std::unique_ptr<TGo4FitDataIter> iter;
120 TArrayD fxOwnScales;
121
122 ClassDefOverride(TGo4FitDataRidgeIter,1)
123};
124
125#endif // TGO4FITDATARIDGE_H
TGo4FitDataIter()
Default constructor.
Bool_t ShiftToNextPoint() override
Move pointer to following data point.
TGo4FitDataRidge * fxData
Bool_t ReadCurrentPoint() override
Perform specific actions to read all values from data object.
std::unique_ptr< TGo4FitDataIter > iter
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.
Special object to approximate ridges on multi-dimensional histograms.
Int_t GetSelectedAxis() const
Returns number of selected axis.
TGo4FitData * GetData() const
Returns pointer on TGo4FitData object.
Int_t fiSelectedAxis
Number of selected as ridge axis.
void SetSelectedAxis(Int_t naxis)
Sets number of axis, which selected as "ridge altitude".
std::unique_ptr< TGo4FitDataIter > MakeIter() override
Create TGo4FitDataRidgeIter iterator, associated with given data object.
virtual ~TGo4FitDataRidge()
Destroys TGo4FitDataRidge object.
TGo4FitSlot fxData
Slot for TGo4FitData object.
void SetData(TGo4FitData *iData, Bool_t Owned)
Sets pointer on TGo4FitData object and ownership flag.
virtual void Print(Option_t *option="") const override
Print information to standard output.
void FillSlotList(TSeqCollection *list) override
Add pointer on slot, which should contain TGo4FitData object, to list of slots.
TGo4FitDataRidge()
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