00001 #ifndef BTOF_CAL_H
00002 #define BTOF_CAL_H
00003
00004 const unsigned int nBarAtten = 8;
00005 const unsigned int nBarSpeed = 2;
00006 const unsigned int nBarPar = 10;
00007 const unsigned int nBarParOff = 20;
00008 const unsigned int nBarSigma = 5;
00009 const unsigned int nBarSigCnt = 10;
00010
00011 class BTofCal{
00012 public:
00013 BTofCal() {}
00014 ~BTofCal(){}
00015
00016 public:
00017 double getAtten(int idx) const{ return m_atten[idx]; }
00018 double getVeff(int idx) const{ return m_veff[idx]; }
00019 double getP1(int idx) const{ return m_p1[idx]; }
00020 double getP2(int idx) const{ return m_p2[idx]; }
00021 double getPOff1_bunch0(int idx) const{ return m_poff1_bunch0[idx]; }
00022 double getPOff2_bunch0(int idx) const{ return m_poff2_bunch0[idx]; }
00023 double getPOff1_bunch1(int idx) const{ return m_poff1_bunch1[idx]; }
00024 double getPOff2_bunch1(int idx) const{ return m_poff2_bunch1[idx]; }
00025 double getPOff1_bunch2(int idx) const{ return m_poff1_bunch2[idx]; }
00026 double getPOff2_bunch2(int idx) const{ return m_poff2_bunch2[idx]; }
00027 double getPOff1_bunch3(int idx) const{ return m_poff1_bunch3[idx]; }
00028 double getPOff2_bunch3(int idx) const{ return m_poff2_bunch3[idx]; }
00029 double getFPLeft(int idx) const{ return m_fpleft[idx]; }
00030 double getFPRight(int idx) const{ return m_fpright[idx]; }
00031 double getFPCounter(int idx) const{ return m_fpcounter[idx]; }
00032
00033 public:
00034 void setAtten(int idx,double atten) { m_atten[idx] = atten; }
00035 void setVeff(int idx,double veff) { m_veff[idx] = veff; }
00036 void setP1(int idx,double p1) { m_p1[idx] = p1; }
00037 void setP2(int idx,double p2) { m_p2[idx] = p2; }
00038 void setPOff1_bunch0(int idx,double poff1_bunch0) { m_poff1_bunch0[idx] = poff1_bunch0; }
00039 void setPOff2_bunch0(int idx,double poff2_bunch0) { m_poff2_bunch0[idx] = poff2_bunch0; }
00040 void setPOff1_bunch1(int idx,double poff1_bunch1) { m_poff1_bunch1[idx] = poff1_bunch1; }
00041 void setPOff2_bunch1(int idx,double poff2_bunch1) { m_poff2_bunch1[idx] = poff2_bunch1; }
00042 void setPOff1_bunch2(int idx,double poff1_bunch2) { m_poff1_bunch2[idx] = poff1_bunch2; }
00043 void setPOff2_bunch2(int idx,double poff2_bunch2) { m_poff2_bunch2[idx] = poff2_bunch2; }
00044 void setPOff1_bunch3(int idx,double poff1_bunch3) { m_poff1_bunch3[idx] = poff1_bunch3; }
00045 void setPOff2_bunch3(int idx,double poff2_bunch3) { m_poff2_bunch3[idx] = poff2_bunch3; }
00046 void setFPLeft(int idx,double fp1) { m_fpleft[idx] = fp1; }
00047 void setFPRight(int idx,double fp2) { m_fpright[idx] = fp2; }
00048 void setFPCounter(int idx,double fp3) { m_fpcounter[idx] = fp3; }
00049
00050 private:
00051 double m_atten[nBarAtten];
00052 double m_veff[nBarSpeed];
00053 double m_p1[nBarPar];
00054 double m_p2[nBarPar];
00055 double m_poff1_bunch0[nBarParOff];
00056 double m_poff2_bunch0[nBarParOff];
00057 double m_poff1_bunch1[nBarParOff];
00058 double m_poff2_bunch1[nBarParOff];
00059 double m_poff1_bunch2[nBarParOff];
00060 double m_poff2_bunch2[nBarParOff];
00061 double m_poff1_bunch3[nBarParOff];
00062 double m_poff2_bunch3[nBarParOff];
00063 double m_fpleft[nBarSigma];
00064 double m_fpright[nBarSigma];
00065 double m_fpcounter[nBarSigCnt];
00066
00067 };
00068 #endif