#include <MucBox.h>
|
| MucBox (int part, int segment, int layer, int id) |
|
| MucBox (const MucBox &other) |
|
MucBox & | operator= (const MucBox &other) |
|
| ~MucBox () |
|
virtual void | SetAlignment (double dx, double dy, double dz) |
|
MucStripPlane * | GetStripPlane () |
|
MucRpc * | GetRpc (int upDown, int id) |
|
MucBoxCover * | GetBoxCover (int upDown, int id) |
|
| 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 20 of file MucBox.h.
◆ MucBox() [1/2]
MucBox::MucBox |
( |
int |
part, |
|
|
int |
segment, |
|
|
int |
layer, |
|
|
int |
id |
|
) |
| |
Definition at line 17 of file MucBox.cxx.
18{
20
21 m_MucStripPlane = NULL;
22 m_MucRpc = NULL;
23 m_MucBoxCover = NULL;
24}
◆ MucBox() [2/2]
MucBox::MucBox |
( |
const MucBox & |
other | ) |
|
Definition at line 27 of file MucBox.cxx.
28{
29 m_MucStripPlane =
other.m_MucStripPlane;
30 m_MucRpc =
other.m_MucRpc;
31 m_MucBoxCover =
other.m_MucBoxCover;
32}
Index other(Index i, Index j)
◆ ~MucBox()
Definition at line 50 of file MucBox.cxx.
51{
52 delete m_MucStripPlane;
53 delete m_MucRpc;
54 delete m_MucBoxCover;
55}
◆ GetBoxCover()
MucBoxCover * MucBox::GetBoxCover |
( |
int |
upDown, |
|
|
int |
id |
|
) |
| |
Definition at line 97 of file MucBox.cxx.
98{
99 if( m_MucBoxCover != NULL )
100 delete m_MucBoxCover;
101
103}
◆ GetRpc()
MucRpc * MucBox::GetRpc |
( |
int |
upDown, |
|
|
int |
id |
|
) |
| |
Definition at line 89 of file MucBox.cxx.
90{
91 if( m_MucRpc != NULL )
92 delete m_MucRpc;
93
95}
◆ GetStripPlane()
Definition at line 81 of file MucBox.cxx.
82{
83 if( m_MucStripPlane != NULL )
84 return m_MucStripPlane;
85 else
87}
◆ Init()
Reimplemented from MucEntity.
Definition at line 58 of file MucBox.cxx.
59{
64
72
77}
virtual void SetObjOrgInLoc()
virtual void SetObjOrgInBes()
virtual void SetLocOrgInBes()
virtual void SetObjRotToMot()
Referenced by MucBox().
◆ operator=()
Definition at line 35 of file MucBox.cxx.
36{
37 if( this == &other)
38 return *this;
39
41
42 m_MucRpc =
other.m_MucRpc;
43 m_MucBoxCover =
other.m_MucBoxCover;
44 m_MucStripPlane =
other.m_MucStripPlane;
45
46 return *this;
47}
MucEntity & operator=(const MucEntity &other)
◆ SetAlignment()
void MucBox::SetAlignment |
( |
double |
dx, |
|
|
double |
dy, |
|
|
double |
dz |
|
) |
| |
|
virtual |
◆ SetArea()
◆ SetH()
Reimplemented from MucEntity.
Definition at line 182 of file MucBox.cxx.
183{
186 else
187 {
189 m_H = E_AS_RMAX - E_BOX_DR - E_GP_DY;
191 {
192 m_H = E_AS_RMAX - E_BOX_DR - E_GP_RMIN[
m_Layer] + OVERLAP_WIDTH;
193 }
194 else
195 m_H = E_AS_RMAX - E_BOX_DR - E_GP_RMIN[
m_Layer];
196 }
197}
Referenced by Init().
◆ SetL()
Reimplemented from MucEntity.
Definition at line 199 of file MucBox.cxx.
200{
202 {
205 else
206 {
209 else
211 }
212 }
213 else
215}
Referenced by Init().
◆ SetLocOrgInBes()
void MucBox::SetLocOrgInBes |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 274 of file MucBox.cxx.
275{
278
280 {
283 z = 0.;
284
285 }
286 else
287 {
288
289
291 {
292 x = (E_AS_RMAX + E_GP_DX) / 2.0;
293 y = (E_AS_RMAX + E_GP_DY) / 2.0;
294 }
295 else
296 {
297 x = (E_AS_RMAX - E_BOX_DR + E_GP_DX) / 2.0;
298 y = (E_AS_RMAX - E_BOX_DR + E_GP_DY) / 2.0;
299 }
300
301
305 else { y = -y; }
306
307
308 for(
int i=0; i<
m_Layer+1; i++ ) z += E_AS_TH[i];
309
311 z += (E_AS_ZMAX - E_AS_TOTAL_TH) + AS_GAP/2.0;
313
314 }
315
319
320
321 for(int i=0;i<3;i++) {
323 }
324}
double sin(const BesAngle a)
double cos(const BesAngle a)
Referenced by Init().
◆ SetObjOrgInBes()
void MucBox::SetObjOrgInBes |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 345 of file MucBox.cxx.
346{
349
351 {
354 else
355 {
356
357 if(
m_ID == 2 )
x = 0.;
358 else x = (1-2*
m_ID) * ( B_BOX_WT[
m_Layer] + B_BOX_SLOT_WT )/4.0;
359
360
361
363 else z = ( B_BOX_LT - B_TOPRPC_LTS[(
m_Layer==0)?1:(
m_Layer%2)] )/2.0;
364
367
368
370
371
372 for( int i=0; i<3; i++ ) {
374
375 }
376 }
377 }
378 else
379 {
380
381
383 {
384 x = (E_AS_RMAX - E_BOX_DR + E_GP_DX) / 2.0;
385 y = (E_AS_RMAX - E_BOX_DR + E_GP_DY) / 2.0;
386 }
388 {
391 }
393 {
396 }
397 else
398 {
401 }
402
403
407 else { y = -y; }
408
411
412
413 for( int i=0; i<2; i++ ) {
415 }
416
417
419
420 }
421}
double tan(const BesAngle a)
Referenced by Init().
◆ SetObjOrgInLoc()
void MucBox::SetObjOrgInLoc |
( |
| ) |
|
|
protectedvirtual |
◆ SetObjRotToMot()
void MucBox::SetObjRotToMot |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 326 of file MucBox.cxx.
327{
330
332 {
333
336 else
338 }
339 else
340 {
342 }
343}
Referenced by Init().
◆ SetRc()
Reimplemented from MucEntity.
Definition at line 141 of file MucBox.cxx.
142{
145 else
146 {
148 m_Rc = sqrt(2.0) * ( E_AS_RMAX - E_BOX_DR ) / 2.0;
149 else
151 }
152}
Referenced by Init().
◆ SetRin()
◆ SetRout()
◆ SetTheta()
void MucBox::SetTheta |
( |
| ) |
|
|
protectedvirtual |
◆ SetThin()
◆ SetW()
Reimplemented from MucEntity.
Definition at line 159 of file MucBox.cxx.
160{
162 {
165 else
166 {
169 else
170 m_W = ( B_BOX_WT[
m_Layer] - B_BOX_SLOT_WT )/2.0;
171 }
172 }
173 else
174 {
176 m_W = E_AS_RMAX - E_BOX_DR - E_GP_DX;
177 else
179 }
180}
Referenced by Init().
◆ SetWd()
Reimplemented from MucEntity.
Definition at line 240 of file MucBox.cxx.
241{
244 else
245 {
249 {
251 m_Wd += 2*VALUE*(2.0/2);
252 m_Wd += OVERLAP_WIDTH;
253 }
256 else
258
259 if(
m_ID != -1 )
m_Wd+=OVERLAP_WIDTH;
260
261 }
262}
Referenced by Init().
◆ SetWu()
Reimplemented from MucEntity.
Definition at line 217 of file MucBox.cxx.
218{
221 else
222 {
226 {
228 m_Wu -= 2*VALUE*(2.0/2);
229 m_Wu += OVERLAP_WIDTH;
230 }
233 else
235
236 if(
m_ID != -1 )
m_Wu+=OVERLAP_WIDTH;
237 }
238}
Referenced by Init().
The documentation for this class was generated from the following files: