Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MucBoxCal Class Reference

#include <MucBoxCal.h>

Inheritance diagram for MucBoxCal:

MucEntityCal MucEntityCal List of all members.

Public Member Functions

double GetArea ()
double GetArea ()
double GetH ()
double GetH ()
int GetID ()
int GetID ()
double GetL ()
double GetL ()
int GetLayer ()
int GetLayer ()
int GetPart ()
int GetPart ()
double GetRc ()
double GetRc ()
double GetRin ()
double GetRin ()
double GetRout ()
double GetRout ()
int GetSegment ()
int GetSegment ()
double GetTheta ()
double GetTheta ()
double GetThin ()
double GetThin ()
double GetW ()
double GetW ()
double GetWd ()
double GetWd ()
double GetWu ()
double GetWu ()
 MucBoxCal (const MucBoxCal &other)
 MucBoxCal (int part, int segment, int layer)
 MucBoxCal (const MucBoxCal &other)
 MucBoxCal (int part, int segment, int layer)
MucBoxCaloperator= (const MucBoxCal &other)
MucBoxCaloperator= (const MucBoxCal &other)
 ~MucBoxCal ()
 ~MucBoxCal ()

Protected Member Functions

virtual void Init ()
virtual void Init ()
virtual void SetArea ()
virtual void SetArea ()
virtual void SetH ()
virtual void SetH ()
virtual void SetL ()
virtual void SetL ()
virtual void SetRc ()
virtual void SetRc ()
virtual void SetRin ()
virtual void SetRin ()
virtual void SetRout ()
virtual void SetRout ()
virtual void SetTheta ()
virtual void SetTheta ()
virtual void SetThin ()
virtual void SetThin ()
virtual void SetW ()
virtual void SetW ()
virtual void SetWd ()
virtual void SetWd ()
virtual void SetWu ()
virtual void SetWu ()

Protected Attributes

double m_Area
double m_H
int m_ID
double m_L
int m_Layer
int m_Part
double m_Rc
double m_Rin
double m_Rout
int m_Segment
double m_Theta
double m_Thin
double m_W
double m_Wd
double m_Wu

Constructor & Destructor Documentation

MucBoxCal::MucBoxCal int  part,
int  segment,
int  layer
 

00017                                                        : MucEntityCal( part, segment, layer )
00018 {
00019   MucBoxCal::Init();
00020 }

MucBoxCal::MucBoxCal const MucBoxCal other  ) 
 

00023                                              : MucEntityCal( other )
00024 {
00025   ;
00026 }

MucBoxCal::~MucBoxCal  ) 
 

00040 {
00041   ;     
00042 }

MucBoxCal::MucBoxCal int  part,
int  segment,
int  layer
 

MucBoxCal::MucBoxCal const MucBoxCal other  ) 
 

MucBoxCal::~MucBoxCal  ) 
 


Member Function Documentation

double MucEntityCal::GetArea  )  [inherited]
 

double MucEntityCal::GetArea  )  [inherited]
 

00095 { return m_Area;    }

double MucEntityCal::GetH  )  [inherited]
 

double MucEntityCal::GetH  )  [inherited]
 

00091 { return m_H;       }

int MucEntityCal::GetID  )  [inherited]
 

int MucEntityCal::GetID  )  [inherited]
 

00084 { return m_ID;      }

double MucEntityCal::GetL  )  [inherited]
 

double MucEntityCal::GetL  )  [inherited]
 

00092 { return m_L;       }

int MucEntityCal::GetLayer  )  [inherited]
 

int MucEntityCal::GetLayer  )  [inherited]
 

00083 { return m_Layer;   }

int MucEntityCal::GetPart  )  [inherited]
 

int MucEntityCal::GetPart  )  [inherited]
 

00081 { return m_Part;    }

double MucEntityCal::GetRc  )  [inherited]
 

double MucEntityCal::GetRc  )  [inherited]
 

00088 { return m_Rc;      }

double MucEntityCal::GetRin  )  [inherited]
 

double MucEntityCal::GetRin  )  [inherited]
 

00086 { return m_Rin;     }

double MucEntityCal::GetRout  )  [inherited]
 

double MucEntityCal::GetRout  )  [inherited]
 

00087 { return m_Rout;    }

int MucEntityCal::GetSegment  )  [inherited]
 

int MucEntityCal::GetSegment  )  [inherited]
 

00082 { return m_Segment; }

double MucEntityCal::GetTheta  )  [inherited]
 

double MucEntityCal::GetTheta  )  [inherited]
 

00085 { return m_Theta;   }

double MucEntityCal::GetThin  )  [inherited]
 

double MucEntityCal::GetThin  )  [inherited]
 

00089 { return m_Thin;    } 

double MucEntityCal::GetW  )  [inherited]
 

double MucEntityCal::GetW  )  [inherited]
 

00090 { return m_W;       }

double MucEntityCal::GetWd  )  [inherited]
 

double MucEntityCal::GetWd  )  [inherited]
 

00094 { return m_Wd;      }

double MucEntityCal::GetWu  )  [inherited]
 

double MucEntityCal::GetWu  )  [inherited]
 

00093 { return m_Wu;      }

virtual void MucBoxCal::Init  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::Init  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00046 {
00047   SetTheta();
00048   SetRin();
00049   SetRout();
00050   SetRc();
00051   
00052   SetThin();
00053   SetW();
00054   SetWu();
00055   SetWd();
00056   SetH();
00057   SetL();
00058   SetArea();
00059 }

MucBoxCal& MucBoxCal::operator= const MucBoxCal other  ) 
 

MucBoxCal & MucBoxCal::operator= const MucBoxCal other  ) 
 

00030 {
00031   if( this == &other) return *this;
00032 
00033   MucEntityCal::operator =(other);
00034 
00035   return *this; 
00036 }

virtual void MucBoxCal::SetArea  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetArea  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00142 {
00143   if( m_Part == BRID ) {
00144     m_Area = m_W * m_L;
00145     if( m_Segment == B_TOP ) m_Area -= B_BOX_SLOT_WT*B_TOPRPC_LTS[(m_Layer==0)?1:(m_Layer%2)];
00146   }
00147   else
00148     m_Area = (m_Wu + m_Wd)*m_H - (E_GP_DX + E_GP_DY + 2*E_STRPLN_DA)* m_H; 
00149   
00150   m_Area /= 100; // mm^2 -> cm^2
00151 }

virtual void MucBoxCal::SetH  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetH  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00110 {
00111   if( m_Part == BRID )
00112     m_H = BOX_TH;
00113   else
00114     m_H = E_AS_RMAX - E_BOX_DR - E_STRPLN_DB[(m_Layer==0)?0:1] - E_STRPLN_DR - E_GP_RMIN[m_Layer];
00115 }

virtual void MucBoxCal::SetL  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetL  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00118 {
00119   if( m_Part == BRID )
00120     m_L = B_BOX_LT;
00121   else
00122     m_L = BOX_TH;
00123 }

virtual void MucBoxCal::SetRc  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetRc  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00087 {
00088   if( m_Part == BRID )
00089     m_Rc = B_AS_RMIN[m_Layer] - AS_GAP/2.0;
00090   else
00091     m_Rc = (m_Rin + m_Rout)/2.0;
00092 }

virtual void MucBoxCal::SetRin  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetRin  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00071 {
00072   if( m_Part == BRID )
00073     m_Rin = B_AS_RMIN[m_Layer] - ( AS_GAP + BOX_TH ) / 2.0;
00074   else
00075     m_Rin = E_GP_RMIN[m_Layer] - E_STRPLN_DR;
00076 }

virtual void MucBoxCal::SetRout  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetRout  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00079 {
00080   if( m_Part == BRID )
00081     m_Rout = B_AS_RMIN[m_Layer] -( AS_GAP - BOX_TH ) / 2.0;
00082   else
00083     m_Rout = E_AS_RMAX - E_BOX_DR - E_STRPLN_DB[(m_Layer==0)?0:1];
00084 }

virtual void MucBoxCal::SetTheta  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetTheta  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00063 {
00064   if( m_Part == BRID )
00065     m_Theta = m_Segment * ( PI/4.0 );
00066   else
00067     m_Theta = ( m_Segment + 1 ) * ( PI/4.0 );
00068 }

virtual void MucBoxCal::SetThin  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetThin  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00095 {
00096   m_Thin = BOX_TH;
00097 }

virtual void MucBoxCal::SetW  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetW  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00100 {
00101   if( m_Part == BRID) {
00102     m_W = B_BOX_WT[m_Layer];
00103   }
00104   else {
00105     m_W = E_AS_RMAX - E_BOX_DR - E_GP_DX;
00106   }
00107 }

virtual void MucBoxCal::SetWd  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetWd  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00134 {
00135   if( m_Part == BRID )
00136     m_Wd = m_W;
00137   else
00138     m_Wd = 2 * VALUE * m_Rout;
00139 }

virtual void MucBoxCal::SetWu  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

void MucBoxCal::SetWu  )  [protected, virtual]
 

Reimplemented from MucEntityCal.

00126 {
00127   if( m_Part == BRID )
00128     m_Wu = m_W;
00129   else
00130     m_Wu = 2 * VALUE * m_Rin ;
00131 }


Member Data Documentation

double MucEntityCal::m_Area [protected, inherited]
 

double MucEntityCal::m_H [protected, inherited]
 

int MucEntityCal::m_ID [protected, inherited]
 

double MucEntityCal::m_L [protected, inherited]
 

int MucEntityCal::m_Layer [protected, inherited]
 

int MucEntityCal::m_Part [protected, inherited]
 

double MucEntityCal::m_Rc [protected, inherited]
 

double MucEntityCal::m_Rin [protected, inherited]
 

double MucEntityCal::m_Rout [protected, inherited]
 

int MucEntityCal::m_Segment [protected, inherited]
 

double MucEntityCal::m_Theta [protected, inherited]
 

double MucEntityCal::m_Thin [protected, inherited]
 

double MucEntityCal::m_W [protected, inherited]
 

double MucEntityCal::m_Wd [protected, inherited]
 

double MucEntityCal::m_Wu [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:32:56 2011 for BOSS6.5.5 by  doxygen 1.3.9.1