00001 #ifndef ETF_CAL_H 00002 #define ETF_CAL_H 00003 00004 const unsigned int nEtfSpeed = 4; 00005 const unsigned int nEtfPar = 20; 00006 00007 class EtfCal{ 00008 public: 00009 EtfCal() {} 00010 ~EtfCal(){} 00011 00012 public: 00013 double getVeff(int idx) const{ return m_veff[idx]; } 00014 double getP(int idx) const{ return m_p[idx]; } 00015 double getP1(int idx) const{ return m_p1[idx]; } 00016 double getP2(int idx) const{ return m_p2[idx]; } 00017 00018 public: 00019 void setVeff(int idx,double veff) { m_veff[idx] = veff; } 00020 void setP(int idx,double p) { m_p[idx] = p; } 00021 void setP1(int idx,double p1) { m_p1[idx] = p1; } 00022 void setP2(int idx,double p2) { m_p2[idx] = p2; } 00023 00024 private: 00025 double m_veff[nEtfSpeed]; // effective velocity of light in Tof (cm/ns) 00026 double m_p[nEtfPar]; // combined time calibration constant 00027 double m_p1[nEtfPar]; // left time calibration constant 00028 double m_p2[nEtfPar]; // right time calibration constant 00029 00030 }; 00031 #endif