#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 |
|
) |
| |
◆ 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 48 of file MucBox.cxx.
49{
50 delete m_MucStripPlane;
51 delete m_MucRpc;
52 delete m_MucBoxCover;
53}
◆ GetBoxCover()
MucBoxCover * MucBox::GetBoxCover |
( |
int |
upDown, |
|
|
int |
id |
|
) |
| |
Definition at line 92 of file MucBox.cxx.
93{
94 if( m_MucBoxCover !=
NULL )
delete m_MucBoxCover;
96}
◆ GetRpc()
MucRpc * MucBox::GetRpc |
( |
int |
upDown, |
|
|
int |
id |
|
) |
| |
Definition at line 86 of file MucBox.cxx.
87{
88 if( m_MucRpc !=
NULL )
delete m_MucRpc;
90}
◆ GetStripPlane()
Definition at line 78 of file MucBox.cxx.
79{
80 if( m_MucStripPlane !=
NULL )
81 return m_MucStripPlane;
82 else
84}
◆ Init()
Reimplemented from MucEntity.
Definition at line 56 of file MucBox.cxx.
57{
62
70
75}
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) return *this;
38
40 m_MucRpc =
other.m_MucRpc;
41 m_MucBoxCover =
other.m_MucBoxCover;
42 m_MucStripPlane =
other.m_MucStripPlane;
43
44 return *this;
45}
MucEntity & operator=(const MucEntity &other)
◆ SetAlignment()
void MucBox::SetAlignment |
( |
double |
dx, |
|
|
double |
dy, |
|
|
double |
dz |
|
) |
| |
|
virtual |
◆ SetArea()
◆ SetH()
Reimplemented from MucEntity.
Definition at line 161 of file MucBox.cxx.
162{
165 else
166 {
168 m_H = E_AS_RMAX - E_BOX_DR - E_GP_DY;
170 m_H = E_AS_RMAX - E_BOX_DR - E_GP_RMIN[
m_Layer] + OVERLAP_WIDTH;
171 else
172 m_H = E_AS_RMAX - E_BOX_DR - E_GP_RMIN[
m_Layer];
173 }
174}
Referenced by Init().
◆ SetL()
Reimplemented from MucEntity.
Definition at line 176 of file MucBox.cxx.
177{
179 {
182 else
183 {
186 else
188 }
189 }
190 else
192}
Referenced by Init().
◆ SetLocOrgInBes()
void MucBox::SetLocOrgInBes |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 247 of file MucBox.cxx.
248{
251
253 {
256 z = 0.;
257 }
258 else
259 {
260
261
263 {
264 x = (E_AS_RMAX + E_GP_DX) / 2.0;
265 y = (E_AS_RMAX + E_GP_DY) / 2.0;
266 }
267 else
268 {
269 x = (E_AS_RMAX - E_BOX_DR + E_GP_DX) / 2.0;
270 y = (E_AS_RMAX - E_BOX_DR + E_GP_DY) / 2.0;
271 }
272
273
278
279
280 for(
int i=0; i<
m_Layer+1; i++ ) z += E_AS_TH[i];
281
283 z += (E_AS_ZMAX - E_AS_TOTAL_TH) + AS_GAP/2.0;
285
286 }
287
291
292
293 for(int i=0;i<3;i++) {
295 }
296}
double sin(const BesAngle a)
double cos(const BesAngle a)
Referenced by Init().
◆ SetObjOrgInBes()
void MucBox::SetObjOrgInBes |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 315 of file MucBox.cxx.
316{
319
321 {
324 else
325 {
326
327 if(
m_ID == 2 )
x = 0.;
328 else x = (1-2*
m_ID) * ( B_BOX_WT[
m_Layer] + B_BOX_SLOT_WT )/4.0;
329
330
332 else z = ( B_BOX_LT - B_TOPRPC_LTS[(
m_Layer==0)?1:(
m_Layer%2)] )/2.0;
333
336
337
339
340
341 for( int i=0; i<3; i++ )
343 }
344 }
345 else
346 {
347
348
350 x = (E_AS_RMAX - E_BOX_DR + E_GP_DX) / 2.0;
351 y = (E_AS_RMAX - E_BOX_DR + E_GP_DY) / 2.0;
352 }
353 else if(
m_ID == 0 ) {
356 }
357 else if (
m_ID ==1 ) {
360 }
361 else {
364 }
365
366
371
374
375
376 for( int i=0; i<2; i++ )
378
379
381 }
382}
double tan(const BesAngle a)
Referenced by Init().
◆ SetObjOrgInLoc()
void MucBox::SetObjOrgInLoc |
( |
| ) |
|
|
protectedvirtual |
◆ SetObjRotToMot()
void MucBox::SetObjRotToMot |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntity.
Definition at line 298 of file MucBox.cxx.
299{
302
304 {
305
308 else
310 }
311 else
313}
Referenced by Init().
◆ SetRc()
Reimplemented from MucEntity.
Definition at line 124 of file MucBox.cxx.
125{
127 else {
128 if(
m_ID == -1 )
m_Rc = sqrt(2.0) * ( E_AS_RMAX - E_BOX_DR ) / 2.0;
130 }
131}
Referenced by Init().
◆ SetRin()
◆ SetRout()
◆ SetTheta()
void MucBox::SetTheta |
( |
| ) |
|
|
protectedvirtual |
◆ SetThin()
◆ SetW()
Reimplemented from MucEntity.
Definition at line 138 of file MucBox.cxx.
139{
141 {
144 else
145 {
148 else
149 m_W = ( B_BOX_WT[
m_Layer] - B_BOX_SLOT_WT )/2.0;
150 }
151 }
152 else
153 {
155 m_W = E_AS_RMAX - E_BOX_DR - E_GP_DX;
156 else
158 }
159}
Referenced by Init().
◆ SetWd()
Reimplemented from MucEntity.
Definition at line 217 of file MucBox.cxx.
218{
221 else
222 {
226 {
228 m_Wd += 2*VALUE*(2.0/2);
229 m_Wd += OVERLAP_WIDTH;
230 }
233 else
235
236 if(
m_ID != -1 )
m_Wd+=OVERLAP_WIDTH;
237 }
238}
Referenced by Init().
◆ SetWu()
Reimplemented from MucEntity.
Definition at line 194 of file MucBox.cxx.
195{
198 else
199 {
203 {
205 m_Wu -= 2*VALUE*(2.0/2);
206 m_Wu += OVERLAP_WIDTH;
207 }
210 else
212
213 if(
m_ID != -1 )
m_Wu+=OVERLAP_WIDTH;
214 }
215}
Referenced by Init().
The documentation for this class was generated from the following files: