Class Reference for E1039 Core & Analysis Software
FitRTDist.h
Go to the documentation of this file.
1 #ifndef __FIT_RT_DIST_H__
2 #define __FIT_RT_DIST_H__
3 #include <string>
4 #include <vector>
5 class TH2;
6 class RTCurve;
7 
9 class FitRTDist {
10  protected:
11  bool m_fix_t1t0;
12  double m_t1;
13  double m_t0;
14 
15  static int m_n_pt;
16  static int m_n_par;
17  static TH2* m_h2_RT;
18  static double m_t_min;
19  static double m_t_max;
20  static double m_r_max;
21 
22  int m_verb;
23 
24  public:
25  FitRTDist();
26  virtual ~FitRTDist();
27 
28  static double FCN(const double* xx);
29  static void CalcChi2(const double* pars, double& chi2, int& ndf);
30 
31  void FixT1T0(const double t1, const double t0);
32  int DoFit(const int n_pt, TH2* h2, double r_max, TGraph* gr_init, RTCurve* rtc);
33 
34  void Verbosity(const int verb) { m_verb = verb; }
35  int Verbosity() const { return m_verb; }
36 
37  private:
38  static void SetRTCurve(const double* pars, RTCurve* rtc);
39 };
40 
41 #endif // __FIT_RT_DIST_H__
Class for fitting R-T histogram.
Definition: FitRTDist.h:9
bool m_fix_t1t0
Definition: FitRTDist.h:11
static double m_r_max
Definition: FitRTDist.h:20
int Verbosity() const
Definition: FitRTDist.h:35
double m_t1
Fixed T1 value. Valid only when m_fix_t1t0 = true.
Definition: FitRTDist.h:12
static TH2 * m_h2_RT
Definition: FitRTDist.h:17
static double FCN(const double *xx)
Definition: FitRTDist.cc:35
void Verbosity(const int verb)
Definition: FitRTDist.h:34
double m_t0
Fixed T0 value. Valid only when m_fix_t1t0 = true.
Definition: FitRTDist.h:13
int m_verb
Definition: FitRTDist.h:22
static double m_t_min
Definition: FitRTDist.h:18
static void CalcChi2(const double *pars, double &chi2, int &ndf)
Definition: FitRTDist.cc:52
static double m_t_max
Definition: FitRTDist.h:19
static int m_n_pt
N of R-T points.
Definition: FitRTDist.h:15
virtual ~FitRTDist()
Definition: FitRTDist.cc:30
int DoFit(const int n_pt, TH2 *h2, double r_max, TGraph *gr_init, RTCurve *rtc)
Definition: FitRTDist.cc:88
static int m_n_par
N of free parameters.
Definition: FitRTDist.h:16
void FixT1T0(const double t1, const double t0)
Definition: FitRTDist.cc:81
Class to represent R-T curve.
Definition: RTCurve.h:7