#include <MucStripCal.h>
|
| MucStripCal (int part, int segment, int layer, int id) |
|
| MucStripCal (const MucStripCal &other) |
|
MucStripCal & | operator= (const MucStripCal &other) |
|
virtual | ~MucStripCal () |
|
int | GetType () |
|
double | GetCenterLine () |
|
double | GetHead () |
|
double | GetTail () |
|
double | GetPhi () |
|
int | GetPadNumber () |
|
| MucStripCal (int part, int segment, int layer, int id) |
|
| MucStripCal (const MucStripCal &other) |
|
MucStripCal & | operator= (const MucStripCal &other) |
|
virtual | ~MucStripCal () |
|
int | GetType () |
|
double | GetCenterLine () |
|
double | GetHead () |
|
double | GetTail () |
|
double | GetPhi () |
|
int | GetPadNumber () |
|
| MucEntityCal (int part, int segment, int layer) |
|
| MucEntityCal (int part, int segment, int layer, int id) |
|
| MucEntityCal (const MucEntityCal &other) |
|
MucEntityCal & | operator= (const MucEntityCal &other) |
|
virtual | ~MucEntityCal () |
|
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 () |
|
| MucEntityCal (int part, int segment, int layer) |
|
| MucEntityCal (int part, int segment, int layer, int id) |
|
| MucEntityCal (const MucEntityCal &other) |
|
MucEntityCal & | operator= (const MucEntityCal &other) |
|
virtual | ~MucEntityCal () |
|
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 () |
|
◆ MucStripCal() [1/4]
MucStripCal::MucStripCal |
( |
int |
part, |
|
|
int |
segment, |
|
|
int |
layer, |
|
|
int |
id |
|
) |
| |
◆ MucStripCal() [2/4]
Definition at line 26 of file MucStripCal.cxx.
27{
28 m_Type =
other.m_Type;
29 m_CenterLine =
other.m_CenterLine;
30 m_Head =
other.m_Head;
31 m_Tail =
other.m_Tail;
33
34
35}
Index other(Index i, Index j)
◆ ~MucStripCal() [1/2]
MucStripCal::~MucStripCal |
( |
| ) |
|
|
virtual |
◆ MucStripCal() [3/4]
MucStripCal::MucStripCal |
( |
int |
part, |
|
|
int |
segment, |
|
|
int |
layer, |
|
|
int |
id |
|
) |
| |
◆ MucStripCal() [4/4]
◆ ~MucStripCal() [2/2]
virtual MucStripCal::~MucStripCal |
( |
| ) |
|
|
virtual |
◆ GetCenterLine() [1/2]
double MucStripCal::GetCenterLine |
( |
| ) |
|
◆ GetCenterLine() [2/2]
double MucStripCal::GetCenterLine |
( |
| ) |
|
◆ GetHead() [1/2]
double MucStripCal::GetHead |
( |
| ) |
|
◆ GetHead() [2/2]
double MucStripCal::GetHead |
( |
| ) |
|
◆ GetPadNumber() [1/2]
int MucStripCal::GetPadNumber |
( |
| ) |
|
◆ GetPadNumber() [2/2]
int MucStripCal::GetPadNumber |
( |
| ) |
|
◆ GetPhi() [1/2]
double MucStripCal::GetPhi |
( |
| ) |
|
◆ GetPhi() [2/2]
double MucStripCal::GetPhi |
( |
| ) |
|
◆ GetTail() [1/2]
double MucStripCal::GetTail |
( |
| ) |
|
◆ GetTail() [2/2]
double MucStripCal::GetTail |
( |
| ) |
|
◆ GetType() [1/2]
int MucStripCal::GetType |
( |
| ) |
|
◆ GetType() [2/2]
int MucStripCal::GetType |
( |
| ) |
|
◆ Init() [1/2]
void MucStripCal::Init |
( |
| ) |
|
|
protectedvirtual |
◆ Init() [2/2]
virtual void MucStripCal::Init |
( |
| ) |
|
|
protectedvirtual |
◆ operator=() [1/2]
Definition at line 38 of file MucStripCal.cxx.
39{
40 if( this == &other) return *this;
41
43
44 m_Type =
other.m_Type;
45 m_CenterLine =
other.m_CenterLine;
46 m_Head =
other.m_Head;
47 m_Tail =
other.m_Tail;
49
50
51
52 return *this;
53}
MucEntityCal & operator=(const MucEntityCal &other)
◆ operator=() [2/2]
◆ SetArea() [1/2]
void MucStripCal::SetArea |
( |
| ) |
|
|
protectedvirtual |
◆ SetArea() [2/2]
virtual void MucStripCal::SetArea |
( |
| ) |
|
|
protectedvirtual |
◆ SetCenterLine() [1/2]
void MucStripCal::SetCenterLine |
( |
| ) |
|
|
protected |
Definition at line 115 of file MucStripCal.cxx.
116{
117
118
119
120 int segFlag = 0;
121
123 {
125 else segFlag = -1;
126
127 if(
m_ID != E_STR_NUM-1 )
128 m_CenterLine = segFlag * ( E_XSTR_OFFSET +
m_ID*E_STR_DST );
129 else
130 m_CenterLine = segFlag * ( E_XSTR_OFFSET + (E_STR_NUM-2)*E_STR_DST + (E_STR_DST +
m_W + STR_GAP)/2);
131 }
132 else
133 {
135 else segFlag = -1;
136
137 if(
m_ID != E_STR_NUM-1)
138 m_CenterLine = segFlag * ( E_YSTR_OFFSET +
m_ID*E_STR_DST );
139 else
140 m_CenterLine = segFlag * ( E_YSTR_OFFSET + (E_STR_NUM-2)*E_STR_DST + (E_STR_DST +
m_W + STR_GAP)/2);
141 }
142}
Referenced by Init().
◆ SetCenterLine() [2/2]
void MucStripCal::SetCenterLine |
( |
| ) |
|
|
protected |
◆ SetH() [1/2]
void MucStripCal::SetH |
( |
| ) |
|
|
protectedvirtual |
◆ SetH() [2/2]
virtual void MucStripCal::SetH |
( |
| ) |
|
|
protectedvirtual |
◆ SetHead() [1/2]
void MucStripCal::SetHead |
( |
| ) |
|
|
protected |
Definition at line 145 of file MucStripCal.cxx.
146{
147 int segFlag = 0;
148
149
152
155
158
161
163 {
165 else segFlag = -1;
166 }
167 else
168 {
170 else segFlag = -1;
171 }
172
173 m_Head *= segFlag;
174}
const double SECOND_TURN_HEAD[2]
const int TURN_STR_ID[8][2]
const double FIRST_TURN_HEAD[8][2]
Referenced by Init().
◆ SetHead() [2/2]
void MucStripCal::SetHead |
( |
| ) |
|
|
protected |
◆ SetL() [1/2]
void MucStripCal::SetL |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntityCal.
Definition at line 297 of file MucStripCal.cxx.
298{
300 {
303
305 {
307 m_L = B_BOX_LT - 2*B_BOX_DZ[SL_DOWN];
308 else
309 m_L = B_BOX_WT[
m_Layer] - 2*B_BOX_DZ[SL_DOWN];
310 }
311 else
312 {
314 {
315 if(
m_ID > ZCUT_HEAD_NUM &&
m_ID < ZCUT_TAIL_NUM )
316 {
319 else
321 }
322 else
323 m_L = B_BOX_LT - 2*B_BOX_DZ[SL_DOWN];
324 }
325 else
326 {
327 if(
m_ID < B_PHISTR_CUT_NUM )
328 m_L = B_BOX_WT[
m_Layer] - 2*B_BOX_DZ[SL_DOWN];
329 else
330 m_L = (B_BOX_WT[
m_Layer] - 2*B_BOX_DZ[SL_DOWN] - B_PHISTR_CUT)/2;
331 }
332 }
333 }
334 else
335 {
336 m_L = fabs( m_Head - m_Tail );
337 }
338}
const int B_ZSTR_CUT_NUM[B_LAY_NUM]
const double B_ZSTR_CUT[2]
Referenced by Init().
◆ SetL() [2/2]
virtual void MucStripCal::SetL |
( |
| ) |
|
|
protectedvirtual |
◆ SetPadNumber() [1/2]
void MucStripCal::SetPadNumber |
( |
| ) |
|
|
protected |
Definition at line 347 of file MucStripCal.cxx.
348{
350 double fn = 0;
351
353 cout<<"Error, strip width = 0!"<<endl;
354 m_PadNumber = 0;
355 }
356 else
357 {
360
363 else
365 }
366}
Referenced by Init().
◆ SetPadNumber() [2/2]
void MucStripCal::SetPadNumber |
( |
| ) |
|
|
protected |
◆ SetPhi() [1/2]
void MucStripCal::SetPhi |
( |
| ) |
|
|
protected |
◆ SetPhi() [2/2]
void MucStripCal::SetPhi |
( |
| ) |
|
|
protected |
◆ SetTail() [1/2]
void MucStripCal::SetTail |
( |
| ) |
|
|
protected |
Definition at line 177 of file MucStripCal.cxx.
178{
179 int segFlag = 0;
180
182 {
184 else segFlag = -1;
185
192 if(
m_ID == E_STR_NUM - 1 )
194 }
195 else
196 {
198 else segFlag = -1;
199
206 if(
m_ID == E_STR_NUM - 1 )
208 }
209
210 m_Tail *= segFlag;
211}
const double EVEN_TURN_POINT_TAIL[2]
const double ODD_TURN_POINT_TAIL[2][2]
Referenced by Init().
◆ SetTail() [2/2]
void MucStripCal::SetTail |
( |
| ) |
|
|
protected |
◆ SetThin() [1/2]
void MucStripCal::SetThin |
( |
| ) |
|
|
protectedvirtual |
◆ SetThin() [2/2]
virtual void MucStripCal::SetThin |
( |
| ) |
|
|
protectedvirtual |
◆ SetType() [1/2]
void MucStripCal::SetType |
( |
| ) |
|
|
protected |
Definition at line 102 of file MucStripCal.cxx.
103{
105 if( (
m_Layer+1)%2 == 1 ) m_Type = ZSTR;
106 else m_Type = PHISTR;
107 }
108 else {
109 if( (
m_Layer+1)%2 == 1 ) m_Type = XSTR;
110 else m_Type = YSTR;
111 }
112}
Referenced by Init().
◆ SetType() [2/2]
void MucStripCal::SetType |
( |
| ) |
|
|
protected |
◆ SetW() [1/2]
void MucStripCal::SetW |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntityCal.
Definition at line 229 of file MucStripCal.cxx.
230{
232 {
233
234 int maxStrip;
238 maxStrip = B_PHISTR_NUM;
239 else
240 maxStrip = B_TOPSTR_NUM;
241
242
244 {
245 if(
m_ID > 0 &&
m_ID < (maxStrip-1))
247 else
248 m_W = (B_BOX_WT[
m_Layer] - 2*B_BOX_DT[SL_DOWN] - (maxStrip-2)*B_STR_DST[
m_Layer] - STR_GAP)/2;
249 }
250 else
251 {
252 if(
m_ID >0 &&
m_ID < (maxStrip-1) )
254 else
255 m_W = B_BOX_LT/2 - B_BOX_DZ[SL_DOWN] - B_STR_DST[
m_Layer]*(B_PHISTR_NUM-2)/2;
256
257 if( (maxStrip == B_TOPSTR_NUM) && (
m_ID == (B_PHISTR_NUM - 1)) )
258 m_W = B_BOX_LT/2 - B_BOX_DZ[SL_DOWN] - B_STR_DST[
m_Layer]*(B_PHISTR_NUM-2)/2;
259 }
260 }
261 else
262 {
263
264
265 if(
m_ID != E_STR_NUM-1)
m_W = E_STR_WT;
266 else
267 {
269 {
272 }
274 }
275 }
276}
Referenced by Init().
◆ SetW() [2/2]
virtual void MucStripCal::SetW |
( |
| ) |
|
|
protectedvirtual |
◆ SetWd() [1/2]
void MucStripCal::SetWd |
( |
| ) |
|
|
protectedvirtual |
◆ SetWd() [2/2]
virtual void MucStripCal::SetWd |
( |
| ) |
|
|
protectedvirtual |
◆ SetWu() [1/2]
void MucStripCal::SetWu |
( |
| ) |
|
|
protectedvirtual |
◆ SetWu() [2/2]
virtual void MucStripCal::SetWu |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: