BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/TofCaliSvc/include/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 {
12public:
15
16public:
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
33public:
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
50private:
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#endif
double p2[4]
double p1[4]
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_p2
Definition KarLud.h:20
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_p1
Definition KarLud.h:20
const unsigned int nBarParOff
const unsigned int nBarPar
const unsigned int nBarSigma
const unsigned int nBarSpeed
const unsigned int nBarAtten
const unsigned int nBarSigCnt
void setPOff1_bunch0(int idx, double poff1_bunch0)
double getPOff2_bunch2(int idx) const
void setPOff2_bunch1(int idx, double poff2_bunch1)
double getPOff1_bunch2(int idx) const
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 setP1(int idx, double p1)
void setP2(int idx, double p2)
void setVeff(int idx, double veff)
double getPOff2_bunch1(int idx) const
void setPOff2_bunch2(int idx, double poff2_bunch2)
double getPOff2_bunch0(int idx) const
double getPOff2_bunch3(int idx) const
void setPOff2_bunch3(int idx, double poff2_bunch3)
double getPOff1_bunch0(int idx) const
double getPOff1_bunch1(int idx) const
void setFPRight(int idx, double fp2)
void setFPLeft(int idx, double fp1)
double getPOff1_bunch3(int idx) const
void setPOff2_bunch0(int idx, double poff2_bunch0)
void setPOff1_bunch1(int idx, double poff1_bunch1)
double getFPCounter(int idx) const