#include <MucBoxCover.h>
|
| MucBoxCover (int part, int segment, int layer, int upDown, int id) |
|
| MucBoxCover (const MucBoxCover &other) |
|
MucBoxCover & | operator= (const MucBoxCover &other) |
|
| ~MucBoxCover () |
|
| MucEntity (int part, int segment, int layer) |
|
| MucEntity (int part, int segment, int layer, int id) |
|
| MucEntity (int part, int segment, int layer, int upDown, int id) |
|
| MucEntity (int part, int segment, int layer, int upDown, int rpcId, int id) |
|
| MucEntity (const MucEntity &other) |
|
MucEntity & | operator= (const MucEntity &other) |
|
virtual | ~MucEntity () |
|
int | GetPart () |
|
int | GetSegment () |
|
int | GetLayer () |
|
int | GetUpDown () |
|
int | GetRpcId () |
|
int | GetID () |
|
double | GetTheta () |
|
double | GetRin () |
|
double | GetRout () |
|
double | GetRc () |
|
double | GetThin () |
|
double | GetW () |
|
double | GetH () |
|
double | GetL () |
|
double | GetWu () |
|
double | GetWd () |
|
double | GetArea () |
|
double | GetLocOrgInBes (int i) |
|
double | GetObjRotToMot (int i) |
|
double | GetObjOrgInBes (int i) |
|
double | GetObjOrgInLoc (int i) |
|
double * | GetLocOrgInBes () |
|
double * | GetObjRotToMot () |
|
double * | GetObjOrgInLoc () |
|
double * | GetObjOrgInBes () |
|
void | TransBesToLoc (double LocCoord[], double BesCoord[], double LocOrgInBes[], double Rot_z) |
|
void | TransLocToBes (double LocCoord[], double BesCoord[], double LocOrgInBes[], double Rot_z) |
|
Definition at line 17 of file MucBoxCover.h.
◆ MucBoxCover() [1/2]
MucBoxCover::MucBoxCover |
( |
int | part, |
|
|
int | segment, |
|
|
int | layer, |
|
|
int | upDown, |
|
|
int | id ) |
Definition at line 17 of file MucBoxCover.cxx.
17 :
MucEntity( part, segment, layer, upDown,
id )
18{
20}
MucEntity(int part, int segment, int layer)
◆ MucBoxCover() [2/2]
◆ ~MucBoxCover()
MucBoxCover::~MucBoxCover |
( |
| ) |
|
◆ Init()
void MucBoxCover::Init |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 43 of file MucBoxCover.cxx.
44{
49
56
60}
virtual void SetObjOrgInBes()
virtual void SetLocOrgInBes()
virtual void SetObjOrgInLoc()
Referenced by MucBoxCover().
◆ operator=()
Definition at line 26 of file MucBoxCover.cxx.
27{
28 if( this == &other)
29 return *this;
30
32
33 return *this;
34}
MucEntity & operator=(const MucEntity &other)
◆ SetH()
void MucBoxCover::SetH |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 142 of file MucBoxCover.cxx.
143{
146 else
147 {
149 m_H = E_AS_RMAX - E_BOX_DR - E_GP_DY;
150 else
151 m_H = E_AS_RMAX - E_BOX_DR - E_GP_RMIN[
m_Layer];
152 }
153}
Referenced by Init().
◆ SetL()
void MucBoxCover::SetL |
( |
| ) |
|
|
protectedvirtual |
◆ SetLocOrgInBes()
void MucBoxCover::SetLocOrgInBes |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 208 of file MucBoxCover.cxx.
209{
212
214 {
217 z = 0.;
218
219 }
220 else
221 {
222
223
224 x = (E_AS_RMAX - E_BOX_DR + E_GP_DX) / 2.0;
225 y = (E_AS_RMAX - E_BOX_DR + E_GP_DY) / 2.0;
226
227
231 else { y = -y; }
232
233
234 for(
int i=0; i<
m_Layer+1; i++ ) z += E_AS_TH[i];
235
237 z += (E_AS_ZMAX - E_AS_TOTAL_TH) + AS_GAP/2.0;
239
240 if(
m_ID != -1 ) z += (1-2*
m_UpDown)*(BOX_TH - BOX_COVER_TH)/2.0;
241
242 }
243
247
248
249 for(int i=0;i<3;i++) {
251 }
252}
double sin(const BesAngle a)
double cos(const BesAngle a)
Referenced by Init().
◆ SetObjOrgInBes()
void MucBoxCover::SetObjOrgInBes |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 254 of file MucBoxCover.cxx.
255{
258
260 {
262 {
263 double r;
264 r =
m_Rc + (1-2*
m_UpDown)*(BOX_TH - BOX_COVER_TH) / 2.0;
267 z = 0.;
268 }
269 else
270 {
271
272 if(
m_ID == 2 )
x = 0.;
273 else x = (1-2*
m_ID) * ( B_BOX_WT[
m_Layer] + B_BOX_SLOT_WT )/4.0;
274
275
276 y =
m_Rc + (1-2*
m_UpDown)*(BOX_TH - BOX_COVER_TH) / 2.0;
277
278
280 else z = ( B_BOX_LT - B_TOPRPC_LTS[(
m_Layer==0)?1:(
m_Layer%2)] )/2.0;
281 }
282 }
283 else
284 {
285
286
288 {
289 x = (E_AS_RMAX - E_BOX_DR + E_GP_DX) / 2.0;
290 y = (E_AS_RMAX - E_BOX_DR + E_GP_DY) / 2.0;
291 }
293 {
296 }
297 else if (
m_ID == 1 )
298 {
301 }
302 else
303 {
306 }
307
308
312 else { y = -y; }
313
314
317 else
319
320 }
321
325
326
327 for( int i=0; i<3; i++ ) {
329 }
330
331}
double tan(const BesAngle a)
Referenced by Init().
◆ SetObjOrgInLoc()
void MucBoxCover::SetObjOrgInLoc |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 333 of file MucBoxCover.cxx.
334{
336 {
337
338
341 else
343
344
346
347
348
351 else
352 {
355 }
356 }
357 else
358 {
359 for(int i=0; i<3; i++)
361 }
362
363
364 for( int i=0; i<3; i++ ) {
366 }
367
368}
Referenced by Init().
◆ SetRc()
void MucBoxCover::SetRc |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 101 of file MucBoxCover.cxx.
102{
105 else
106 {
108 m_Rc = sqrt(2.0) * ( E_AS_RMAX - E_BOX_DR ) / 2.0;
109 else
111 }
112}
Referenced by Init().
◆ SetRin()
void MucBoxCover::SetRin |
( |
| ) |
|
|
protectedvirtual |
◆ SetRout()
void MucBoxCover::SetRout |
( |
| ) |
|
|
protectedvirtual |
◆ SetTheta()
void MucBoxCover::SetTheta |
( |
| ) |
|
|
protectedvirtual |
◆ SetThin()
void MucBoxCover::SetThin |
( |
| ) |
|
|
protectedvirtual |
◆ SetW()
void MucBoxCover::SetW |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 119 of file MucBoxCover.cxx.
120{
122 {
125 else
126 {
129 else
130 m_W = ( B_BOX_WT[
m_Layer] - B_BOX_SLOT_WT )/2.0;
131 }
132 }
133 else
134 {
136 m_W = E_AS_RMAX - E_BOX_DR - E_GP_DX;
137 else
139 }
140}
Referenced by Init().
◆ SetWd()
void MucBoxCover::SetWd |
( |
| ) |
|
|
protectedvirtual |
◆ SetWu()
void MucBoxCover::SetWu |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: