GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FitDataHistogram.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 TGO4FITDATAHISTOGRAM_H
15#define TGO4FITDATAHISTOGRAM_H
16
17#include "TGo4FitData.h"
18#include "TGo4FitSlot.h"
19
20class TH1;
21
33 public:
34
39
45 TGo4FitDataHistogram(const char *iName, TH1 *iHistogram = nullptr, Bool_t iHistogramOwned = kFALSE, Bool_t AddAmpl = kFALSE);
46
50 virtual ~TGo4FitDataHistogram();
51
55 TH1 *GetHistogram() { return (TH1 *) fxHistogram.GetObject(); }
56
61 void SetHistogram(TH1 *iHistogram, Bool_t iHistogramOwned = kFALSE);
62
66 std::unique_ptr<TGo4FitDataIter> MakeIter() override;
67
71 void FillSlotList(TSeqCollection *list) override;
72
76 void Print(Option_t *option = "") const override;
77
78 protected:
79
84
85 ClassDefOverride(TGo4FitDataHistogram,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:
104 TArrayI fxLimits;
105 TArrayD fxOwnScales;
106 TArrayD fxOwnWidths;
107
108 ClassDefOverride(TGo4FitDataHistogramIter,1)
109};
110
111#endif // TGO4FITDATAHISTOGRAM_H
Bool_t StartReset() override
Reset pointer and other specific values to the beginning of data.
TGo4FitDataHistogram * fxData
TGo4FitData * GetData() const override
Return pointer on correspondent TGo4FitData object, which create iterator.
Bool_t ReadCurrentPoint() override
Perform specific actions to read all values from data object.
Bool_t ShiftToNextPoint() override
Move pointer to following data point.
Data objects, which provides access to generic TH1 ROOT histogram.
virtual ~TGo4FitDataHistogram()
Destroys TGo4FitDataHistogram object.
void SetHistogram(TH1 *iHistogram, Bool_t iHistogramOwned=kFALSE)
Set histogram to object.
TGo4FitSlot fxHistogram
Slot for storing pointer on TH1 object.
void FillSlotList(TSeqCollection *list) override
Add pointer on slot, which should contains histogram, to list.
TGo4FitDataHistogram()
Default constructor.
TH1 * GetHistogram()
Return pointer on assigned histogram.
void Print(Option_t *option="") const override
Print information to standard output.
std::unique_ptr< TGo4FitDataIter > MakeIter() override
Create TGo4FitDataHistogramIter iterator, associated with given data 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