BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/TofCaliSvc/TofCaliSvc/ETofCal.h
Go to the documentation of this file.
1#ifndef ETOF_CAL_H
2#define ETOF_CAL_H
3
4const unsigned int nEndAtten = 5;
5const unsigned int nEndSpeed = 4;
6const unsigned int nEndPar = 8;
7const unsigned int nEndSigma = 5;
8
9class ETofCal{
10 public:
13 public:
14 double getAtten(int idx) const{ return m_atten[idx]; }
15 double getVeff(int idx) const{ return m_veff[idx]; }
16 double getP(int idx) const{ return m_p[idx]; }
17 double getFPCounter(int idx) const{ return m_fpcounter[idx]; }
18
19 public:
20 void setAtten(int idx,double atten) { m_atten[idx] = atten; }
21 void setVeff(int idx,double veff) { m_veff[idx] = veff; }
22 void setP(int idx,double p) { m_p[idx] = p; }
23 void setFPCounter(int idx, double fp) { m_fpcounter[idx] = fp; }
24
25 private:
26 double m_atten[nEndAtten]; // effective attenuation length in Tof (cm)
27 double m_veff[nEndSpeed]; // effective velocity of light in Tof (cm/ns)
28 double m_p[nEndPar]; // time calibration constant
29 double m_fpcounter[nEndSigma]; // sigma vs z polynomial function
30};
31#endif
void setAtten(int idx, double atten)