Class Reference for E1039 Core & Analysis Software
CalibParam.h
Go to the documentation of this file.
1 #ifndef __CALIB_PARAM_H__
2 #define __CALIB_PARAM_H__
3 #include <string>
4 class TGraph;
5 class RTCurve;
6 
8 class CalibParam {
9  static const int N_PL = 30;
10  static const double DT_RT; // time interval between R-T points.
11 
12  bool m_ana_pl[N_PL];
13 
14  bool fix_time_window;
15  TGraph* m_gr_t2r_in[N_PL]; // Input R-T curve
16  RTCurve* m_rtc[N_PL];
17 
18  double T_MIN[N_PL];
19  double T_MAX[N_PL];
20  double R_MAX[N_PL];
21  double T0[N_PL];
22  double T1[N_PL];
23 
24  public:
25  CalibParam();
26  virtual ~CalibParam();
27 
28  int GetNumPlanes() const { return N_PL; }
29 
30  void SetAnaPlanes(const bool d0, const bool d1, const bool d2, const bool d3p, const bool d3m);
31  bool GetAnaPlane(const int i_pl) { return m_ana_pl[i_pl]; }
32 
33  bool TimeWindowIsFixed() const { return fix_time_window; }
34  RTCurve* GetRTCurve(const int i_pl) const { return m_rtc[i_pl]; }
35 
36  double GetTMin(const int i_pl) const { return T_MIN[i_pl]; }
37  double GetTMax(const int i_pl) const { return T_MAX[i_pl]; }
38  double GetRMax(const int i_pl) const { return R_MAX[i_pl]; }
39  double GetT0 (const int i_pl) const { return T0 [i_pl]; }
40  double GetT1 (const int i_pl) const { return T1 [i_pl]; }
41 
42  TGraph* GetGraphT2R (const int i_pl) const { return m_gr_t2r_in[i_pl]; }
43 
44  void Init(const int n_rt_pt);
45  void ReadRTParam(const std::string fname);
46  void WriteRTParam(const std::string dir_name, const std::string fname);
47  void WriteRTGraph(const std::string dir_name, const std::string fname);
48  void ReadTimeWindow(const std::string fname);
49 
50  static double ZOfStationID(const int st_id);
51 
52  private:
53 };
54 
55 #endif // __CALIB_PARAM_H__
Class to hold the calibration parameters.
Definition: CalibParam.h:8
void ReadTimeWindow(const std::string fname)
Definition: CalibParam.cc:204
bool GetAnaPlane(const int i_pl)
Definition: CalibParam.h:31
double GetTMax(const int i_pl) const
Definition: CalibParam.h:37
void Init(const int n_rt_pt)
Definition: CalibParam.cc:35
double GetRMax(const int i_pl) const
Definition: CalibParam.h:38
void WriteRTParam(const std::string dir_name, const std::string fname)
Definition: CalibParam.cc:120
double GetT0(const int i_pl) const
Definition: CalibParam.h:39
void WriteRTGraph(const std::string dir_name, const std::string fname)
Definition: CalibParam.cc:172
TGraph * GetGraphT2R(const int i_pl) const
Definition: CalibParam.h:42
double GetT1(const int i_pl) const
Definition: CalibParam.h:40
int GetNumPlanes() const
Definition: CalibParam.h:28
void ReadRTParam(const std::string fname)
Definition: CalibParam.cc:82
static double ZOfStationID(const int st_id)
Definition: CalibParam.cc:224
RTCurve * GetRTCurve(const int i_pl) const
Definition: CalibParam.h:34
double GetTMin(const int i_pl) const
Definition: CalibParam.h:36
void SetAnaPlanes(const bool d0, const bool d1, const bool d2, const bool d3p, const bool d3m)
Definition: CalibParam.cc:26
virtual ~CalibParam()
Definition: CalibParam.cc:21
bool TimeWindowIsFixed() const
Definition: CalibParam.h:33
Class to represent R-T curve.
Definition: RTCurve.h:7