BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/TofCaliSvc/TofCaliSvc-00-01-14/TofCaliSvc/EtfCal.h
Go to the documentation of this file.
1#ifndef ETF_CAL_H
2#define ETF_CAL_H
3
4const unsigned int nEtfSpeed = 4;
5const unsigned int nEtfPar = 20;
6
7class EtfCal{
8 public:
9 EtfCal() {}
11
12 public:
13 double getVeff(int idx) const{ return m_veff[idx]; }
14 double getP(int idx) const{ return m_p[idx]; }
15 double getP1(int idx) const{ return m_p1[idx]; }
16 double getP2(int idx) const{ return m_p2[idx]; }
17
18 public:
19 void setVeff(int idx,double veff) { m_veff[idx] = veff; }
20 void setP(int idx,double p) { m_p[idx] = p; }
21 void setP1(int idx,double p1) { m_p1[idx] = p1; }
22 void setP2(int idx,double p2) { m_p2[idx] = p2; }
23
24 private:
25 double m_veff[nEtfSpeed]; // effective velocity of light in Tof (cm/ns)
26 double m_p[nEtfPar]; // combined time calibration constant
27 double m_p1[nEtfPar]; // left time calibration constant
28 double m_p2[nEtfPar]; // right time calibration constant
29
30};
31#endif