00001 #ifndef BTOF_CAL_H 00002 #define BTOF_CAL_H 00003 00004 const unsigned int nBarPar = 10; 00005 const unsigned int nBarParOff = 20; 00006 00007 class BTofCal{ 00008 public: 00009 BTofCal() {} 00010 ~BTofCal(){} 00011 public: 00012 double getP1(int idx) const{ return m_p1[idx]; } 00013 double getP2(int idx) const{ return m_p2[idx]; } 00014 // double getPOff1(int idx) const{ return m_poff1[idx]; } 00015 // double getPOff2(int idx) const{ return m_poff2[idx]; } 00016 00017 public: 00018 void setP1(int idx,double p1) { m_p1[idx] = p1; } 00019 void setP2(int idx,double p2) { m_p2[idx] = p2; } 00020 // void setPOff1(int idx,double poff1) { m_poff1[idx] = poff1; } 00021 // void setPOff2(int idx,double poff2) { m_poff2[idx] = poff2; } 00022 00023 private: 00024 double m_p1[nBarPar]; // left time calibration constant 00025 double m_p2[nBarPar]; // right time calibration constant 00026 // double m_poff1[nBarParOff]; // left time calibration constant 00027 // double m_poff2[nBarParOff]; // right time calibration constant 00028 }; 00029 #endif