#include <MucBoxCal.h>
Inheritance diagram for MucBoxCal:
Public Member Functions | |
MucBoxCal (int part, int segment, int layer) | |
MucBoxCal (const MucBoxCal &other) | |
MucBoxCal & | operator= (const MucBoxCal &other) |
~MucBoxCal () | |
int | GetPart () |
int | GetSegment () |
int | GetLayer () |
int | GetID () |
double | GetTheta () |
double | GetRin () |
double | GetRout () |
double | GetRc () |
double | GetThin () |
double | GetW () |
double | GetH () |
double | GetL () |
double | GetWu () |
double | GetWd () |
double | GetArea () |
Protected Member Functions | |
virtual void | Init () |
virtual void | SetTheta () |
virtual void | SetRin () |
virtual void | SetRout () |
virtual void | SetRc () |
virtual void | SetThin () |
virtual void | SetW () |
virtual void | SetH () |
virtual void | SetL () |
virtual void | SetWu () |
virtual void | SetWd () |
virtual void | SetArea () |
Protected Attributes | |
int | m_Part |
int | m_Segment |
int | m_Layer |
int | m_ID |
double | m_Theta |
double | m_Rin |
double | m_Rout |
double | m_Rc |
double | m_Thin |
double | m_W |
double | m_H |
double | m_L |
double | m_Wu |
double | m_Wd |
double | m_Area |
Definition at line 17 of file MucBoxCal.h.
MucBoxCal::MucBoxCal | ( | int | part, | |
int | segment, | |||
int | layer | |||
) |
Definition at line 17 of file MucBoxCal.cxx.
References Init().
00017 : MucEntityCal( part, segment, layer ) 00018 { 00019 MucBoxCal::Init(); 00020 }
MucBoxCal::MucBoxCal | ( | const MucBoxCal & | other | ) |
MucBoxCal::~MucBoxCal | ( | ) |
double MucEntityCal::GetArea | ( | ) | [inherited] |
Definition at line 95 of file MucEntityCal.cxx.
References MucEntityCal::m_Area.
00095 { return m_Area; }
double MucEntityCal::GetH | ( | ) | [inherited] |
int MucEntityCal::GetID | ( | ) | [inherited] |
Definition at line 84 of file MucEntityCal.cxx.
References MucEntityCal::m_ID.
00084 { return m_ID; }
double MucEntityCal::GetL | ( | ) | [inherited] |
int MucEntityCal::GetLayer | ( | ) | [inherited] |
Definition at line 83 of file MucEntityCal.cxx.
References MucEntityCal::m_Layer.
00083 { return m_Layer; }
int MucEntityCal::GetPart | ( | ) | [inherited] |
Definition at line 81 of file MucEntityCal.cxx.
References MucEntityCal::m_Part.
00081 { return m_Part; }
double MucEntityCal::GetRc | ( | ) | [inherited] |
Definition at line 88 of file MucEntityCal.cxx.
References MucEntityCal::m_Rc.
00088 { return m_Rc; }
double MucEntityCal::GetRin | ( | ) | [inherited] |
Definition at line 86 of file MucEntityCal.cxx.
References MucEntityCal::m_Rin.
00086 { return m_Rin; }
double MucEntityCal::GetRout | ( | ) | [inherited] |
Definition at line 87 of file MucEntityCal.cxx.
References MucEntityCal::m_Rout.
00087 { return m_Rout; }
int MucEntityCal::GetSegment | ( | ) | [inherited] |
Definition at line 82 of file MucEntityCal.cxx.
References MucEntityCal::m_Segment.
00082 { return m_Segment; }
double MucEntityCal::GetTheta | ( | ) | [inherited] |
Definition at line 85 of file MucEntityCal.cxx.
References MucEntityCal::m_Theta.
00085 { return m_Theta; }
double MucEntityCal::GetThin | ( | ) | [inherited] |
Definition at line 89 of file MucEntityCal.cxx.
References MucEntityCal::m_Thin.
00089 { return m_Thin; }
double MucEntityCal::GetW | ( | ) | [inherited] |
double MucEntityCal::GetWd | ( | ) | [inherited] |
Definition at line 94 of file MucEntityCal.cxx.
References MucEntityCal::m_Wd.
00094 { return m_Wd; }
double MucEntityCal::GetWu | ( | ) | [inherited] |
Definition at line 93 of file MucEntityCal.cxx.
References MucEntityCal::m_Wu.
00093 { return m_Wu; }
void MucBoxCal::Init | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 45 of file MucBoxCal.cxx.
References SetArea(), SetH(), SetL(), SetRc(), SetRin(), SetRout(), SetTheta(), SetThin(), SetW(), SetWd(), and SetWu().
Referenced by MucBoxCal().
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 }
Definition at line 29 of file MucBoxCal.cxx.
References MucEntityCal::operator=(), and EvtCyclic3::other().
00030 { 00031 if( this == &other) return *this; 00032 00033 MucEntityCal::operator =(other); 00034 00035 return *this; 00036 }
void MucBoxCal::SetArea | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 141 of file MucBoxCal.cxx.
References B_BOX_SLOT_WT, B_TOP, B_TOPRPC_LTS, BRID, E_GP_DX, E_GP_DY, E_STRPLN_DA, MucEntityCal::m_Area, MucEntityCal::m_H, MucEntityCal::m_L, MucEntityCal::m_Layer, MucEntityCal::m_Part, MucEntityCal::m_Segment, MucEntityCal::m_W, MucEntityCal::m_Wd, and MucEntityCal::m_Wu.
Referenced by Init().
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 }
void MucBoxCal::SetH | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 109 of file MucBoxCal.cxx.
References BOX_TH, BRID, E_AS_RMAX, E_BOX_DR, E_GP_RMIN, E_STRPLN_DB, E_STRPLN_DR, MucEntityCal::m_H, MucEntityCal::m_Layer, and MucEntityCal::m_Part.
Referenced by Init().
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 }
void MucBoxCal::SetL | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 117 of file MucBoxCal.cxx.
References B_BOX_LT, BOX_TH, BRID, MucEntityCal::m_L, and MucEntityCal::m_Part.
Referenced by Init().
void MucBoxCal::SetRc | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 86 of file MucBoxCal.cxx.
References AS_GAP, B_AS_RMIN, BRID, MucEntityCal::m_Layer, MucEntityCal::m_Part, MucEntityCal::m_Rc, MucEntityCal::m_Rin, and MucEntityCal::m_Rout.
Referenced by Init().
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 }
void MucBoxCal::SetRin | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 70 of file MucBoxCal.cxx.
References AS_GAP, B_AS_RMIN, BOX_TH, BRID, E_GP_RMIN, E_STRPLN_DR, MucEntityCal::m_Layer, MucEntityCal::m_Part, and MucEntityCal::m_Rin.
Referenced by Init().
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 }
void MucBoxCal::SetRout | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 78 of file MucBoxCal.cxx.
References AS_GAP, B_AS_RMIN, BOX_TH, BRID, E_AS_RMAX, E_BOX_DR, E_STRPLN_DB, MucEntityCal::m_Layer, MucEntityCal::m_Part, and MucEntityCal::m_Rout.
Referenced by Init().
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 }
void MucBoxCal::SetTheta | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 62 of file MucBoxCal.cxx.
References BRID, MucEntityCal::m_Part, MucEntityCal::m_Segment, MucEntityCal::m_Theta, and PI.
Referenced by Init().
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 }
void MucBoxCal::SetThin | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 94 of file MucBoxCal.cxx.
References BOX_TH, and MucEntityCal::m_Thin.
Referenced by Init().
void MucBoxCal::SetW | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 99 of file MucBoxCal.cxx.
References B_BOX_WT, BRID, E_AS_RMAX, E_BOX_DR, E_GP_DX, MucEntityCal::m_Layer, MucEntityCal::m_Part, and MucEntityCal::m_W.
Referenced by Init().
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 }
void MucBoxCal::SetWd | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 133 of file MucBoxCal.cxx.
References BRID, MucEntityCal::m_Part, MucEntityCal::m_Rout, MucEntityCal::m_W, MucEntityCal::m_Wd, and VALUE.
Referenced by Init().
00134 { 00135 if( m_Part == BRID ) 00136 m_Wd = m_W; 00137 else 00138 m_Wd = 2 * VALUE * m_Rout; 00139 }
void MucBoxCal::SetWu | ( | ) | [protected, virtual] |
Reimplemented from MucEntityCal.
Definition at line 125 of file MucBoxCal.cxx.
References BRID, MucEntityCal::m_Part, MucEntityCal::m_Rin, MucEntityCal::m_W, MucEntityCal::m_Wu, and VALUE.
Referenced by Init().
00126 { 00127 if( m_Part == BRID ) 00128 m_Wu = m_W; 00129 else 00130 m_Wu = 2 * VALUE * m_Rin ; 00131 }
double MucEntityCal::m_Area [protected, inherited] |
Definition at line 75 of file MucEntityCal.h.
Referenced by MucEntityCal::GetArea(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), MucStripCal::SetArea(), MucEntityCal::SetArea(), and SetArea().
double MucEntityCal::m_H [protected, inherited] |
Definition at line 71 of file MucEntityCal.h.
Referenced by MucEntityCal::GetH(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), SetArea(), MucStripCal::SetH(), MucGapCal::SetH(), MucEntityCal::SetH(), and SetH().
int MucEntityCal::m_ID [protected, inherited] |
Definition at line 61 of file MucEntityCal.h.
Referenced by MucEntityCal::GetID(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), MucStripCal::SetCenterLine(), MucStripCal::SetHead(), MucStripCal::SetL(), MucStripCal::SetTail(), and MucStripCal::SetW().
double MucEntityCal::m_L [protected, inherited] |
Definition at line 72 of file MucEntityCal.h.
Referenced by MucEntityCal::GetL(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), MucStripCal::SetArea(), SetArea(), MucStripCal::SetL(), MucGapCal::SetL(), MucEntityCal::SetL(), SetL(), and MucStripCal::SetPadNumber().
int MucEntityCal::m_Layer [protected, inherited] |
Definition at line 60 of file MucEntityCal.h.
Referenced by MucGapCal::GetBox(), MucEntityCal::GetLayer(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), SetArea(), MucStripCal::SetCenterLine(), SetH(), MucStripCal::SetHead(), MucStripCal::SetL(), MucGapCal::SetRc(), SetRc(), MucGapCal::SetRin(), SetRin(), MucGapCal::SetRout(), SetRout(), MucStripCal::SetTail(), MucStripCal::SetType(), MucStripCal::SetW(), MucGapCal::SetW(), and SetW().
int MucEntityCal::m_Part [protected, inherited] |
Definition at line 58 of file MucEntityCal.h.
Referenced by MucGapCal::GetBox(), MucEntityCal::GetPart(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), SetArea(), MucGapCal::SetH(), SetH(), MucStripCal::SetL(), MucGapCal::SetL(), SetL(), MucStripCal::SetPhi(), MucGapCal::SetRc(), SetRc(), MucGapCal::SetRin(), SetRin(), MucGapCal::SetRout(), SetRout(), MucGapCal::SetTheta(), SetTheta(), MucStripCal::SetType(), MucStripCal::SetW(), MucGapCal::SetW(), SetW(), SetWd(), and SetWu().
double MucEntityCal::m_Rc [protected, inherited] |
Definition at line 68 of file MucEntityCal.h.
Referenced by MucEntityCal::GetRc(), MucGapCal::SetRc(), MucEntityCal::SetRc(), and SetRc().
double MucEntityCal::m_Rin [protected, inherited] |
Definition at line 66 of file MucEntityCal.h.
Referenced by MucEntityCal::GetRin(), SetRc(), MucGapCal::SetRin(), MucEntityCal::SetRin(), SetRin(), and SetWu().
double MucEntityCal::m_Rout [protected, inherited] |
Definition at line 67 of file MucEntityCal.h.
Referenced by MucEntityCal::GetRout(), SetRc(), MucGapCal::SetRout(), MucEntityCal::SetRout(), SetRout(), and SetWd().
int MucEntityCal::m_Segment [protected, inherited] |
Definition at line 59 of file MucEntityCal.h.
Referenced by MucGapCal::GetBox(), MucEntityCal::GetSegment(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), SetArea(), MucStripCal::SetCenterLine(), MucStripCal::SetHead(), MucStripCal::SetL(), MucStripCal::SetPhi(), MucStripCal::SetTail(), MucGapCal::SetTheta(), SetTheta(), and MucStripCal::SetW().
double MucEntityCal::m_Theta [protected, inherited] |
Definition at line 63 of file MucEntityCal.h.
Referenced by MucEntityCal::GetTheta(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), MucGapCal::SetTheta(), MucEntityCal::SetTheta(), and SetTheta().
double MucEntityCal::m_Thin [protected, inherited] |
Definition at line 69 of file MucEntityCal.h.
Referenced by MucEntityCal::GetThin(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), MucStripCal::SetThin(), MucGapCal::SetThin(), MucEntityCal::SetThin(), and SetThin().
double MucEntityCal::m_W [protected, inherited] |
Definition at line 70 of file MucEntityCal.h.
Referenced by MucEntityCal::GetW(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), MucStripCal::SetArea(), SetArea(), MucStripCal::SetCenterLine(), MucStripCal::SetPadNumber(), MucStripCal::SetTail(), MucStripCal::SetW(), MucGapCal::SetW(), MucEntityCal::SetW(), SetW(), MucStripCal::SetWd(), MucGapCal::SetWd(), SetWd(), MucStripCal::SetWu(), MucGapCal::SetWu(), and SetWu().
double MucEntityCal::m_Wd [protected, inherited] |
Definition at line 74 of file MucEntityCal.h.
Referenced by MucEntityCal::GetWd(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), SetArea(), MucStripCal::SetWd(), MucGapCal::SetWd(), MucEntityCal::SetWd(), and SetWd().
double MucEntityCal::m_Wu [protected, inherited] |
Definition at line 73 of file MucEntityCal.h.
Referenced by MucEntityCal::GetWu(), MucEntityCal::MucEntityCal(), MucEntityCal::operator=(), SetArea(), MucStripCal::SetWu(), MucGapCal::SetWu(), MucEntityCal::SetWu(), and SetWu().