GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FitParameter.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 TGO4FITPARAMETER_H
15#define TGO4FITPARAMETER_H
16
17#include "TGo4FitNamed.h"
18
26 public:
27
32
36 TGo4FitParameter(const char *name, const char *title, Double_t iValue);
37
41 TGo4FitParameter(const char *name, const char *title, Double_t iValue, Double_t iRangeMin, Double_t iRangeMax);
42
46 TGo4FitParameter(const char *name, const char *title, Double_t iValue, Double_t iEpsilon);
47
51 TGo4FitParameter(const char *name, const char *title, Double_t iValue, Double_t iRangeMin, Double_t iRangeMax, Double_t iEpsilon);
52
56 virtual ~TGo4FitParameter();
57
61 Double_t GetValue() const { return fdValue; }
62
66 void SetValue(Double_t iValue) { fdValue = iValue; }
67
71 Double_t GetError() const { return fdError; }
72
76 void SetError(Double_t iError) { fdError = iError; }
77
81 Bool_t GetFixed() const { return fbFixed || fbBlocked; }
82
86 void SetFixed(Bool_t iFixed) { fbFixed = iFixed; }
87
93 void SetBlocked() { fbBlocked = kTRUE; }
94
98 void ClearBlocked() { fbBlocked = kFALSE; }
99
105 Bool_t GetEpsilon(Double_t& eps) const { eps=fdEpsilon; return fbEpsilon; }
106
110 void SetEpsilon(Double_t iEpsilon) { fbEpsilon = kTRUE; fdEpsilon = iEpsilon; };
111
116 void SetEpsilonUse(Bool_t use) { fbEpsilon = use; }
117
122 void ChangeEpsilon(Double_t iEpsilon) { fdEpsilon = iEpsilon; }
123
128 void ClearEpsilon() { fbEpsilon = kFALSE; }
129
134 Bool_t GetRange(Double_t &min, Double_t &max) const { min = fdRangeMin; max = fdRangeMax; return fbRange; }
135
139 void SetRange(Double_t iRangeMin, Double_t iRangeMax);
140
145 void SetRangeUse(Bool_t use) { fbRange = use; }
146
150 void ChangeRangeMin(Double_t iRangeMin) { if (fbRange) fdRangeMin = iRangeMin; }
151
155 void ChangeRangeMax(Double_t iRangeMax) { if (fbRange) fdRangeMax = iRangeMax; }
156
160 Double_t GetRangeMin() const { return fdRangeMin; }
161
165 Double_t GetRangeMax() const { return fdRangeMax; }
166
171 void ClearRange() { fbRange = kFALSE; fdRangeMin = fdRangeMax = 0.; }
172
177
182
186 void Print(Option_t *option = "") const override;
187
188 protected:
189 void Reset();
190
191 Double_t fdValue{0.};
192 Double_t fdError{0.};
193 Bool_t fbFixed{kFALSE};
194
195 Bool_t fbEpsilon{kFALSE};
196 Double_t fdEpsilon{0.};
197
198 Bool_t fbRange{kFALSE};
199 Double_t fdRangeMin{0.};
200 Double_t fdRangeMax{0.};
201
202 private:
203 Bool_t fbBlocked{kFALSE};
204 Double_t fdRememberedValue{0.};
205
206 ClassDefOverride(TGo4FitParameter,1)
207};
208
209#endif // TGO4FITPARAMETER_H
TGo4FitNamed()
Default constructor.
Model and data objects parameter.
void RememberValue()
Restore value, which was previously memorized.
void ChangeEpsilon(Double_t iEpsilon)
Change epsilon value.
void ChangeRangeMax(Double_t iRangeMax)
Change value of range maximum.
Double_t GetRangeMax() const
Return value of range maximum.
void SetEpsilon(Double_t iEpsilon)
Return epsilon value of parameter.
void SetRangeUse(Bool_t use)
Change status, is range was specified or not.
void ChangeRangeMin(Double_t iRangeMin)
Change value of range minimum.
Bool_t GetEpsilon(Double_t &eps) const
Return value of parameter epsilon.
void SetRange(Double_t iRangeMin, Double_t iRangeMax)
Set range minimum and maximum values.
Double_t GetValue() const
Return parameter value.
void SetEpsilonUse(Bool_t use)
Set status, if epsilon value was specified or not.
Double_t GetError() const
Get value of parameter error.
void Print(Option_t *option="") const override
Print TGo4FitParameter object to standard output.
Bool_t GetRange(Double_t &min, Double_t &max) const
Return range left (minimum) and right (maximum) values.
void SetBlocked()
Blocks parameter value.
void ClearEpsilon()
Set status, what epsilon is not specified.
Bool_t GetFixed() const
Return status, if parameter fixed or not.
void SetError(Double_t iError)
Set value of parameter error.
TGo4FitParameter()
Default constructor.
void ClearRange()
Clear status, that range was specified.
void SetValue(Double_t iValue)
Set parameter value.
void SetFixed(Bool_t iFixed)
Set status of parameter fixed or not.
void MemorizeValue()
Memorize value of parameter.
void ClearBlocked()
Release blocking of parameter.
Double_t GetRangeMin() const
Return value of range minimum.
virtual ~TGo4FitParameter()
Destroy TGo4FitParameter object.