Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FitParam.h
1/*
2 * HalCorrFitParam.h
3 *
4 * Created on: 30-04-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_FEATURES_MINIMIZER_FITPARAM_H_
10#define HAL_FEATURES_MINIMIZER_FITPARAM_H_
11
12
13#include <TObject.h>
14#include <TString.h>
15
16namespace Hal {
17 class FitParam : public TObject {
18 Bool_t fIsFixed {kFALSE};
19 Bool_t fIsDiscrete {kFALSE};
20 Bool_t fIsMapSet {kFALSE};
21 Double_t fMin {0};
22 Double_t fMax {0};
23 Double_t fMapMin {0};
24 Double_t fMapMax {0};
25 Double_t fNPoint {0};
26 Double_t fDParam {0};
27 Double_t fStart {0};
28 Double_t fFitted {0};
29 Double_t fError {0};
30 TString fName;
31
32 public:
33 FitParam();
34 FitParam(const FitParam& other) = default;
35 Bool_t IsDiscrete() const { return fIsDiscrete; };
36 Bool_t IsFixed() const { return fIsFixed; };
37 Bool_t IsMapSet() const { return fIsMapSet; }
38 void Init();
39 void SetMapRange(Double_t min, Double_t max, Int_t points);
40 void SetRange(Double_t min, Double_t max);
41 void SetStartVal(Double_t val) { fStart = val; };
42 void SetIsDiscrete(Bool_t isDiscrete) { fIsDiscrete = isDiscrete; }
43 void SetIsFixed(Bool_t isFixed) { fIsFixed = isFixed; }
44 void SetMapMax(Double_t mapMax) { fMapMax = mapMax; }
45 void SetMapMin(Double_t mapMin) { fMapMin = mapMin; }
46 void SetMax(Double_t max) { fMax = max; }
47 void SetMin(Double_t min) { fMin = min; }
48 void SetParName(const TString& name) { fName = name; }
49 void SetFittedValue(Double_t val) { fFitted = val; };
50 void SetError(Double_t error) { fError = error; };
51 Int_t GetNPoints() const { return fNPoint; };
52 Double_t GetDParam() const { return fDParam; };
53 Double_t GetMapMax() const { return fMapMax; }
54 Double_t GetMapMin() const { return fMapMin; }
55 Double_t GetMax() const { return fMax; }
56 Double_t GetMin() const { return fMin; }
57 Double_t GetStartVal() const { return fStart; };
58 Double_t GetFittedValue() const { return fFitted; };
59 Double_t GetError() const { return fError; };
60 FitParam& operator=(const FitParam& other) = default;
61 TString GetParName() const { return fName; }
62 const std::vector<Double_t> GetValuesArray() const;
63 virtual void Print(Option_t* option = "") const;
64 virtual ~FitParam();
65 ClassDef(FitParam, 1)
66 };
67} // namespace Hal
68
69#endif /* HAL_FEATURES_MINIMIZER_FITPARAM_H_ */