BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCaliSvc/TofCaliSvc-00-01-05/TofCaliSvc/BTofCal.h
Go to the documentation of this file.
1#ifndef BTOF_CAL_H
2#define BTOF_CAL_H
3
4const unsigned int nBarAtten = 8;
5const unsigned int nBarSpeed = 2;
6const unsigned int nBarPar = 10;
7const unsigned int nBarParOff = 20;
8const unsigned int nBarSigma = 5;
9const unsigned int nBarSigCnt = 10;
10
11class BTofCal{
12 public:
15
16 public:
17 double getAtten(int idx) const{ return m_atten[idx]; }
18 double getVeff(int idx) const{ return m_veff[idx]; }
19 double getP1(int idx) const{ return m_p1[idx]; }
20 double getP2(int idx) const{ return m_p2[idx]; }
21 double getPOff1_bunch0(int idx) const{ return m_poff1_bunch0[idx]; }
22 double getPOff2_bunch0(int idx) const{ return m_poff2_bunch0[idx]; }
23 double getPOff1_bunch1(int idx) const{ return m_poff1_bunch1[idx]; }
24 double getPOff2_bunch1(int idx) const{ return m_poff2_bunch1[idx]; }
25 double getPOff1_bunch2(int idx) const{ return m_poff1_bunch2[idx]; }
26 double getPOff2_bunch2(int idx) const{ return m_poff2_bunch2[idx]; }
27 double getPOff1_bunch3(int idx) const{ return m_poff1_bunch3[idx]; }
28 double getPOff2_bunch3(int idx) const{ return m_poff2_bunch3[idx]; }
29 double getFPLeft(int idx) const{ return m_fpleft[idx]; }
30 double getFPRight(int idx) const{ return m_fpright[idx]; }
31 double getFPCounter(int idx) const{ return m_fpcounter[idx]; }
32
33 public:
34 void setAtten(int idx,double atten) { m_atten[idx] = atten; }
35 void setVeff(int idx,double veff) { m_veff[idx] = veff; }
36 void setP1(int idx,double p1) { m_p1[idx] = p1; }
37 void setP2(int idx,double p2) { m_p2[idx] = p2; }
38 void setPOff1_bunch0(int idx,double poff1_bunch0) { m_poff1_bunch0[idx] = poff1_bunch0; }
39 void setPOff2_bunch0(int idx,double poff2_bunch0) { m_poff2_bunch0[idx] = poff2_bunch0; }
40 void setPOff1_bunch1(int idx,double poff1_bunch1) { m_poff1_bunch1[idx] = poff1_bunch1; }
41 void setPOff2_bunch1(int idx,double poff2_bunch1) { m_poff2_bunch1[idx] = poff2_bunch1; }
42 void setPOff1_bunch2(int idx,double poff1_bunch2) { m_poff1_bunch2[idx] = poff1_bunch2; }
43 void setPOff2_bunch2(int idx,double poff2_bunch2) { m_poff2_bunch2[idx] = poff2_bunch2; }
44 void setPOff1_bunch3(int idx,double poff1_bunch3) { m_poff1_bunch3[idx] = poff1_bunch3; }
45 void setPOff2_bunch3(int idx,double poff2_bunch3) { m_poff2_bunch3[idx] = poff2_bunch3; }
46 void setFPLeft(int idx,double fp1) { m_fpleft[idx] = fp1; }
47 void setFPRight(int idx,double fp2) { m_fpright[idx] = fp2; }
48 void setFPCounter(int idx,double fp3) { m_fpcounter[idx] = fp3; }
49
50 private:
51 double m_atten[nBarAtten]; // effective attenuation length in Tof (cm)
52 double m_veff[nBarSpeed]; // effective velocity of light in Tof (cm/ns)
53 double m_p1[nBarPar]; // left time calibration constant
54 double m_p2[nBarPar]; // right time calibration constant
55 double m_poff1_bunch0[nBarParOff]; // left time calibration constant of bunch0
56 double m_poff2_bunch0[nBarParOff]; // right time calibration constant of bunch0
57 double m_poff1_bunch1[nBarParOff]; // left time calibration constant of bunch1
58 double m_poff2_bunch1[nBarParOff]; // right time calibration constant of bunch1
59 double m_poff1_bunch2[nBarParOff]; // left time calibration constant of bunch2
60 double m_poff2_bunch2[nBarParOff]; // right time calibration constant of bunch2
61 double m_poff1_bunch3[nBarParOff]; // left time calibration constant of bunch3
62 double m_poff2_bunch3[nBarParOff]; // right time calibration constant of bunch3
63 double m_fpleft[nBarSigma]; // left sigma vs z
64 double m_fpright[nBarSigma]; // right sigma vs z
65 double m_fpcounter[nBarSigCnt]; // weighted sigma vs z
66
67};
68#endif
void setPOff1_bunch0(int idx, double poff1_bunch0)
void setPOff2_bunch1(int idx, double poff2_bunch1)
void setPOff1_bunch2(int idx, double poff1_bunch2)
void setAtten(int idx, double atten)
void setFPCounter(int idx, double fp3)
void setPOff1_bunch3(int idx, double poff1_bunch3)
void setPOff2_bunch2(int idx, double poff2_bunch2)
void setPOff2_bunch3(int idx, double poff2_bunch3)
void setPOff2_bunch0(int idx, double poff2_bunch0)
void setPOff1_bunch1(int idx, double poff1_bunch1)