Class Reference for E1039 Core & Analysis Software
CalibData.h
Go to the documentation of this file.
1 #ifndef __CALIB_DATA_H__
2 #define __CALIB_DATA_H__
3 #include <string>
4 #include <map>
5 class TH1;
6 class TH2;
7 class Tracklet;
8 class CalibParam;
9 class FitRTDist;
10 
12 class CalibData {
13  static const int T_BIN = 30;
14  static const int R_BIN = 100;
15 
16  static const int ST_ID_MIN = 1; // 1=D0, 2=D1, 3=D2, 4=D3p, 5=D3m, 6=D23, 7=Global
17  static const int ST_ID_MAX = 7;
18 
19  CalibParam* cal_par;
20 
22  TH1* h1_stat;
23  TH1* h1_st_id;
24  TH2* h2_ntrk;
25  TH2* h2_nhit;
26  TH2* h2_mom;
27  TH2* h2_rchi2;
28  TH2* h2_x0;
29  TH2* h2_y0;
30  TH2* h2_tx;
31  TH2* h2_ty;
32  TH2* h2_x_st;
33  TH2* h2_y_st;
34 
36  TH1* h1_time_wide[99];
37  TH1* h1_time [99];
38  TH2* h2_tp_wp[99]; // track position, wire position
39  TH2* h2_RT [99];
40  TH2* h2_TR [99];
41  TH2* h2_TR_ex[99];
42  TH2* h2_Resi [99];
43  TH2* h2_td_dd[99]; // x-axis: track distance, y-axis: drift distance
44 
45  public:
46  CalibData();
47  virtual ~CalibData();
48 
49  TH2* GetHistRT(const int ipl) const { return h2_RT[ipl]; }
50 
51  void Init(CalibParam* ptr);
52  void FillEventInfo(const int rec_stat, const std::map<int, int> list_n_trk);
53  void FillTracklet(const Tracklet* trk);
54  void FillTrackletHits(const Tracklet* trk);
55  void FillHit(const int det_id, const double drift_dist, const double tdc_time, const double track_pos, const double wire_pos);
56  void DrawHistEvent(const std::string dir_out);
57  void DrawHistHit (const std::string dir_out);
58 
59  private:
60  void DrawIn1D(TH2* h2, const std::string label, const std::string dir_out, int iy_lo=0, int iy_hi=0);
61 };
62 
63 #endif // __CALIB_DATA_H__
Class to hold calibration data.
Definition: CalibData.h:12
void FillTracklet(const Tracklet *trk)
Definition: CalibData.cc:123
virtual ~CalibData()
Definition: CalibData.cc:23
void FillTrackletHits(const Tracklet *trk)
Definition: CalibData.cc:146
void DrawHistHit(const std::string dir_out)
Definition: CalibData.cc:213
void DrawHistEvent(const std::string dir_out)
Definition: CalibData.cc:179
void FillEventInfo(const int rec_stat, const std::map< int, int > list_n_trk)
Definition: CalibData.cc:113
void FillHit(const int det_id, const double drift_dist, const double tdc_time, const double track_pos, const double wire_pos)
Fill the hit information.
Definition: CalibData.cc:166
TH2 * GetHistRT(const int ipl) const
Definition: CalibData.h:49
void Init(CalibParam *ptr)
Definition: CalibData.cc:28
Class to hold the calibration parameters.
Definition: CalibParam.h:8
Class for fitting R-T histogram.
Definition: FitRTDist.h:9