/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/CalibData/CalibData-00-01-18/CalibData/Tof/EndcapElec.h

Go to the documentation of this file.
00001 #ifndef CALIBDATA_ENDCAPELELEC_H
00002 #define CALIBDATA_ENDCAPELELEC_H
00003 #include "GaudiKernel/DataObject.h"
00004 #include "CalibData/CalibModel.h"
00005 #include <vector>
00006 namespace CalibData {
00007 class EndcapElec{
00008  public:
00009   EndcapElec()  {}
00010   ~EndcapElec() {}
00011  public:
00012   unsigned int getNum( unsigned int idx )  const { return  m_num[idx];  }
00013   double getP( unsigned int idx )          const { return  m_p[idx];    }
00014   double getSimP( unsigned int idx )       const { return  m_simP[idx]; }
00015 
00016   void  setNum( unsigned int idx, unsigned int num )   { m_num[idx] = num;}
00017   void  setNum( unsigned int num[4] ) {
00018     for( unsigned int i=0; i<4; i++ ) m_num[i] = num[i];
00019   }
00020   void  setP( unsigned int idx, double p )             { m_p[idx] = p;    }
00021   void  setP( double p[11] ) {
00022     for( unsigned int i=0; i<11; i++ ) { m_p[i] = p[i]; }
00023   }
00024   void  setSimP( unsigned int idx, double p )          { m_simP[idx] = p; }
00025   void  setSimP( double p[11] ) {
00026     for( unsigned int i=0; i<11; i++ ) { m_simP[i] = p[i]; }
00027   }
00028 
00029  private:
00030   unsigned int m_num[4];
00031   double m_p[11];
00032   double m_simP[11];
00033 };
00034 }
00035 #endif

Generated on Tue Nov 29 22:57:48 2016 for BOSS_7.0.2 by  doxygen 1.4.7