18 :
MucEntity( part, segment, layer, upDown, id )
29 if(
this == &other)
return *
this;
64 else m_Theta = ( MUC_PI/4.0 ) + (
m_ID - 1) * MUC_PI / 8.0 ;
82 else m_Rout = E_AS_RMAX - E_BOX_DR;
90 if(
m_ID == -1 )
m_Rc = sqrt(2.0) * ( E_AS_RMAX - E_BOX_DR ) / 2.0;
107 else m_W = ( B_BOX_WT[
m_Layer] - B_BOX_SLOT_WT )/2.0;
113 m_W = E_AS_RMAX - E_BOX_DR - E_GP_DX;
126 m_H = E_AS_RMAX - E_BOX_DR - E_GP_DY;
128 m_H = E_AS_RMAX - E_BOX_DR - E_GP_RMIN[
m_Layer];
199 x = (E_AS_RMAX - E_BOX_DR + E_GP_DX) / 2.0;
200 y = (E_AS_RMAX - E_BOX_DR + E_GP_DY) / 2.0;
209 for(
int i=0; i<
m_Layer+1; i++ ) z += E_AS_TH[i];
212 z += (E_AS_ZMAX - E_AS_TOTAL_TH) + AS_GAP/2.0;
215 if(
m_ID != -1 ) z += (1-2*
m_UpDown)*(BOX_TH - BOX_COVER_TH)/2.0;
238 r =
m_Rc + (1-2*
m_UpDown)*(BOX_TH - BOX_COVER_TH) / 2.0;
246 if(
m_ID == 2 )
x = 0.;
247 else x = (1-2*
m_ID) * ( B_BOX_WT[
m_Layer] + B_BOX_SLOT_WT )/4.0;
254 else z = ( B_BOX_LT - B_TOPRPC_LTS[(
m_Layer==0)?1:(
m_Layer%2)] )/2.0;
262 x = (E_AS_RMAX - E_BOX_DR + E_GP_DX) / 2.0;
263 y = (E_AS_RMAX - E_BOX_DR + E_GP_DY) / 2.0;
265 else if(
m_ID == 0 ) {
269 else if (
m_ID == 1 ) {
296 for(
int i=0; i<3; i++ )
324 for(
int i=0; i<3; i++)
329 for(
int i=0; i<3; i++ )
double tan(const BesAngle a)
double sin(const BesAngle a)
double cos(const BesAngle a)
virtual void SetObjOrgInBes()
MucBoxCover(int part, int segment, int layer, int upDown, int id)
virtual void SetLocOrgInBes()
virtual void SetObjOrgInLoc()
MucBoxCover & operator=(const MucBoxCover &other)
MucEntity & operator=(const MucEntity &other)