GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4FitterConfig.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 TGO4FITTERCONFIG_H
15 #define TGO4FITTERCONFIG_H
16 
17 #include "TGo4FitterAction.h"
18 
19 #include "TObjArray.h"
20 #include "TGo4FitParsList.h"
21 
22 class TGo4FitterAbstract;
23 class TGo4FitDependency;
24 
37  public:
38 
43 
47  TGo4FitterConfig(const char *iName, const char *iTitle);
48 
52  virtual ~TGo4FitterConfig();
53 
58  void AddParNew(const char *ParName, Double_t iValue = 0) { fxParsNew.CreatePar(ParName,"config",iValue); }
59 
64  virtual Bool_t SetParFixed(const char *ParName, Bool_t iFixed = kTRUE);
65 
70  virtual Bool_t SetParRange(const char *ParName, Double_t RangeMin, Double_t RangeMax);
71 
76  virtual Bool_t SetParEpsilon(const char *ParName, Double_t Epsilon);
77 
82  virtual Bool_t GetParFixed(const char *ParName);
83 
88  virtual Bool_t GetParRange(const char *ParName, Double_t &RangeMin, Double_t &RangeMax);
89 
94  virtual Bool_t GetParEpsilon(const char *ParName, Double_t& Epsilon);
95 
101  void SetParInit(const char *FullName, Double_t iValue);
102 
110  void SetParInit(const char *FullName, const char *iExpression);
111 
119  void SetParDepend(const char *FullName, const char *iExpression);
120 
124  void AddResult(const char *Expression);
125 
129  void AddResult(Double_t Value);
130 
135 
140 
144  TObjArray &GetParsInit() { return fxParsInit; }
145 
149  TObjArray &GetParsDepend() { return fxParsDepend; }
150 
154  TObjArray &GetResults() { return fxResults; }
155 
160  void DoAction(TGo4FitterAbstract *Fitter) override;
161 
165  void Print(Option_t *option = "") const override;
166 
167  protected:
168  TGo4FitParameter *MakeParForProperties(const char *ParName);
169 
170  TGo4FitDependency* FindDepen(const char *FullName, TObjArray *list);
171 
175  TGo4FitParsList fxParsCfg; // configurations for some of parameters
176 
180  TGo4FitParsList fxParsNew; // newly create parameters
181 
185  TObjArray fxParsInit; // array of dependencies, runs once
186 
190  TObjArray fxParsDepend; // array of dependencies, runs every time
191 
195  TObjArray fxResults; // array of dependencies of results calculations
196 
200  Bool_t fbFixedByDefault{kFALSE}; // is all parameters fixed by default
201 
202  ClassDefOverride(TGo4FitterConfig,1)
203 };
204 
205 #endif // TGO4FITTERCONFIG_H
virtual Bool_t SetParEpsilon(const char *ParName, Double_t Epsilon)
TGo4FitDependency * FindDepen(const char *FullName, TObjArray *list)
TGo4FitParsList & GetParsCfg()
TObjArray & GetResults()
void AddParNew(const char *ParName, Double_t iValue=0)
TGo4FitParameter * MakeParForProperties(const char *ParName)
TGo4FitParameter * CreatePar(const char *ParName, const char *Title, Double_t iValue=0)
void SetParDepend(const char *FullName, const char *iExpression)
virtual Bool_t GetParEpsilon(const char *ParName, Double_t &Epsilon)
void DoAction(TGo4FitterAbstract *Fitter) override
TGo4FitParsList fxParsNew
TObjArray & GetParsDepend()
virtual Bool_t GetParFixed(const char *ParName)
virtual ~TGo4FitterConfig()
void SetParInit(const char *FullName, Double_t iValue)
void AddResult(const char *Expression)
TGo4FitParsList fxParsCfg
void Print(Option_t *option="") const override
TGo4FitParsList & GetParsNew()
virtual Bool_t SetParFixed(const char *ParName, Bool_t iFixed=kTRUE)
virtual Bool_t GetParRange(const char *ParName, Double_t &RangeMin, Double_t &RangeMax)
virtual Bool_t SetParRange(const char *ParName, Double_t RangeMin, Double_t RangeMax)
TObjArray & GetParsInit()