/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Tof/TofQElecSvc/TofQElecSvc-00-00-05/TofQElecSvc/BarrelElec.h

Go to the documentation of this file.
00001 #ifndef BARRELELEC_H
00002 #define BARRELELEC_H
00003 
00004 class BarrelElec{
00005  public:
00006   BarrelElec()  {}
00007   ~BarrelElec() {}
00008  public:
00009   unsigned int getNumEast( int idx )     const { return  m_num[0][idx];    }
00010   unsigned int getNumWest( int idx )     const { return  m_num[1][idx];    }
00011   double getP1( int idx )                const { return  m_pEast[idx];     }
00012   double getP2( int idx )                const { return  m_pWest[idx];     }
00013   double getSimP1( int idx )             const { return  m_simPEast[idx];  }
00014   double getSimP2( int idx )             const { return  m_simPWest[idx];  }
00015 
00016   void  setNumEast( unsigned int idx, unsigned int num )   { m_num[0][idx] = num;   }
00017   void  setNumEast( unsigned int num[4] ) {
00018     for( unsigned int i=0; i<4; i++ )  { m_num[0][i] = num[i]; }
00019   }
00020   void  setNumWest( unsigned int idx, unsigned int num )   { m_num[1][idx] = num;   }
00021   void  setNumWest( unsigned int num[4] ) {
00022     for( unsigned int i=0; i<4; i++ )  { m_num[1][i] = num[i]; }
00023   }
00024   void  setP1( unsigned int idx, double p )         { m_pEast[idx] = p;    }
00025   void  setP1( double p[11] ) {
00026     for( unsigned int i=0; i<11; i++ ) { m_pEast[i] = p[i]; }
00027   }
00028   void  setP2( unsigned int idx, double p )         { m_pWest[idx] = p;    }
00029   void  setP2( double p[11] ) {
00030     for( unsigned int i=0; i<11; i++ ) { m_pWest[i] = p[i]; }
00031   }
00032   void  setSimP1( unsigned int idx, double p )      { m_simPEast[idx] = p; }
00033   void  setSimP1( double p[11] ) {
00034     for( unsigned int i=0; i<11; i++ ) { m_simPEast[i] = p[i]; }
00035   }
00036   void  setSimP2( unsigned int idx, double p )      { m_simPWest[idx] = p; }
00037   void  setSimP2( double p[11] ) {
00038     for( unsigned int i=0; i<11; i++ ) { m_simPWest[i] = p[i]; }
00039   }
00040 
00041  private:
00042   unsigned int m_num[2][4];
00043   double m_pEast[11];
00044   double m_pWest[11];
00045   double m_simPEast[11];
00046   double m_simPWest[11];
00047 }
00048 
00049 #endif

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