/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Tof/TofCaliSvc/TofCaliSvc-00-01-13/TofCaliSvc/ETofCal.h

Go to the documentation of this file.
00001 #ifndef ETOF_CAL_H
00002 #define ETOF_CAL_H 
00003 
00004 const unsigned int nEndAtten  = 5;
00005 const unsigned int nEndSpeed  = 4;
00006 const unsigned int nEndPar    = 8;
00007 const unsigned int nEndSigma  = 5;
00008 
00009 class ETofCal{
00010  public:
00011    ETofCal() {}
00012    ~ETofCal(){}
00013  public:
00014   double getAtten(int idx)      const{ return m_atten[idx];     }
00015   double getVeff(int idx)       const{ return m_veff[idx];      }
00016   double getP(int idx)          const{ return m_p[idx];         }
00017   double getFPCounter(int idx)  const{ return m_fpcounter[idx]; } 
00018 
00019  public:
00020   void   setAtten(int idx,double atten)     { m_atten[idx] = atten;  }
00021   void   setVeff(int idx,double veff)       { m_veff[idx]  = veff;   }
00022   void   setP(int idx,double p)             { m_p[idx]     = p;      }
00023   void   setFPCounter(int idx, double fp)   { m_fpcounter[idx] = fp; }
00024 
00025  private:
00026   double m_atten[nEndAtten];      // effective attenuation length in Tof (cm)
00027   double m_veff[nEndSpeed];       // effective velocity of light in Tof (cm/ns)
00028   double m_p[nEndPar];            // time calibration constant 
00029   double m_fpcounter[nEndSigma];  // sigma vs z polynomial function
00030 };
00031 #endif             

Generated on Tue Nov 29 23:14:35 2016 for BOSS_7.0.2 by  doxygen 1.4.7