BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/TofCaliSvc/include/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 {
10public:
13
14public:
15 double getAtten( int idx ) const { return m_atten[idx]; }
16 double getVeff( int idx ) const { return m_veff[idx]; }
17 double getP( int idx ) const { return m_p[idx]; }
18 double getFPCounter( int idx ) const { return m_fpcounter[idx]; }
19
20public:
21 void setAtten( int idx, double atten ) { m_atten[idx] = atten; }
22 void setVeff( int idx, double veff ) { m_veff[idx] = veff; }
23 void setP( int idx, double p ) { m_p[idx] = p; }
24 void setFPCounter( int idx, double fp ) { m_fpcounter[idx] = fp; }
25
26private:
27 double m_atten[nEndAtten]; // effective attenuation length in Tof (cm)
28 double m_veff[nEndSpeed]; // effective velocity of light in Tof (cm/ns)
29 double m_p[nEndPar]; // time calibration constant
30 double m_fpcounter[nEndSigma]; // sigma vs z polynomial function
31};
32#endif
NTuple::Item< double > m_p
const unsigned int nEndPar
const unsigned int nEndSigma
const unsigned int nEndSpeed
const unsigned int nEndAtten
void setVeff(int idx, double veff)
void setFPCounter(int idx, double fp)
void setAtten(int idx, double atten)
double getFPCounter(int idx) const