GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4FitAmplEstimation.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 TGO4FITAMPLESTIMATION_H
15 #define TGO4FITAMPLESTIMATION_H
16 
17 #include "TGo4FitterAction.h"
18 
19 class TGo4Fitter;
20 
26  public:
27 
32 
37  TGo4FitAmplEstimation(const char *Name, Int_t NumIters = 1);
38 
42  virtual ~TGo4FitAmplEstimation();
43 
47  Int_t GetNumIterations() const { return fiNumIters; }
48 
52  void SetNumIterations(Int_t iNumIters) { fiNumIters = iNumIters; }
53 
54  Bool_t NeedBuffers() const override { return kTRUE; }
55 
60  void DoAction(TGo4FitterAbstract *Fitter) override;
61 
65  void Print(Option_t *option = "") const override;
66 
67  private:
68 
69  Double_t PointWeight(Int_t niter, Int_t FFtype, Double_t value, Double_t modelvalue, Double_t standdev);
70  Bool_t CalculateWithBuffers(TGo4Fitter *fitter);
71  Bool_t CalculateWithIterators(TGo4Fitter *fitter);
72 
76  Int_t fiNumIters{0};
77 
78  ClassDefOverride(TGo4FitAmplEstimation,1)
79 };
80 
81 #endif // TGO4FITAMPLESTIMATION_H
Double_t PointWeight(Int_t niter, Int_t FFtype, Double_t value, Double_t modelvalue, Double_t standdev)
void Print(Option_t *option="") const override
void DoAction(TGo4FitterAbstract *Fitter) override
Bool_t CalculateWithIterators(TGo4Fitter *fitter)
Bool_t NeedBuffers() const override
Bool_t CalculateWithBuffers(TGo4Fitter *fitter)
void SetNumIterations(Int_t iNumIters)