#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 () |
| | 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 () |
| | 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/6]
| MucStripCal::MucStripCal |
( |
int | part, |
|
|
int | segment, |
|
|
int | layer, |
|
|
int | id ) |
◆ MucStripCal() [2/6]
Definition at line 26 of file MucStripCal.cxx.
27 m_Type =
other.m_Type;
28 m_CenterLine =
other.m_CenterLine;
29 m_Head =
other.m_Head;
30 m_Tail =
other.m_Tail;
32
33
34}
Index other(Index i, Index j)
◆ ~MucStripCal() [1/3]
| MucStripCal::~MucStripCal |
( |
| ) |
|
|
virtual |
◆ MucStripCal() [3/6]
| MucStripCal::MucStripCal |
( |
int | part, |
|
|
int | segment, |
|
|
int | layer, |
|
|
int | id ) |
◆ MucStripCal() [4/6]
◆ ~MucStripCal() [2/3]
| virtual MucStripCal::~MucStripCal |
( |
| ) |
|
|
virtual |
◆ MucStripCal() [5/6]
| MucStripCal::MucStripCal |
( |
int | part, |
|
|
int | segment, |
|
|
int | layer, |
|
|
int | id ) |
◆ MucStripCal() [6/6]
◆ ~MucStripCal() [3/3]
| virtual MucStripCal::~MucStripCal |
( |
| ) |
|
|
virtual |
◆ GetCenterLine() [1/3]
| double MucStripCal::GetCenterLine |
( |
| ) |
|
◆ GetCenterLine() [2/3]
| double MucStripCal::GetCenterLine |
( |
| ) |
|
◆ GetCenterLine() [3/3]
| double MucStripCal::GetCenterLine |
( |
| ) |
|
◆ GetHead() [1/3]
| double MucStripCal::GetHead |
( |
| ) |
|
◆ GetHead() [2/3]
| double MucStripCal::GetHead |
( |
| ) |
|
◆ GetHead() [3/3]
| double MucStripCal::GetHead |
( |
| ) |
|
◆ GetPadNumber() [1/3]
| int MucStripCal::GetPadNumber |
( |
| ) |
|
◆ GetPadNumber() [2/3]
| int MucStripCal::GetPadNumber |
( |
| ) |
|
◆ GetPadNumber() [3/3]
| int MucStripCal::GetPadNumber |
( |
| ) |
|
◆ GetPhi() [1/3]
| double MucStripCal::GetPhi |
( |
| ) |
|
◆ GetPhi() [2/3]
| double MucStripCal::GetPhi |
( |
| ) |
|
◆ GetPhi() [3/3]
| double MucStripCal::GetPhi |
( |
| ) |
|
◆ GetTail() [1/3]
| double MucStripCal::GetTail |
( |
| ) |
|
◆ GetTail() [2/3]
| double MucStripCal::GetTail |
( |
| ) |
|
◆ GetTail() [3/3]
| double MucStripCal::GetTail |
( |
| ) |
|
◆ GetType() [1/3]
| int MucStripCal::GetType |
( |
| ) |
|
◆ GetType() [2/3]
| int MucStripCal::GetType |
( |
| ) |
|
◆ GetType() [3/3]
| int MucStripCal::GetType |
( |
| ) |
|
◆ Init() [1/3]
| void MucStripCal::Init |
( |
| ) |
|
|
protectedvirtual |
◆ Init() [2/3]
| virtual void MucStripCal::Init |
( |
| ) |
|
|
protectedvirtual |
◆ Init() [3/3]
| virtual void MucStripCal::Init |
( |
| ) |
|
|
protectedvirtual |
◆ operator=() [1/3]
Definition at line 37 of file MucStripCal.cxx.
37 {
38 if ( this == &other ) return *this;
39
41
42 m_Type =
other.m_Type;
43 m_CenterLine =
other.m_CenterLine;
44 m_Head =
other.m_Head;
45 m_Tail =
other.m_Tail;
47
48
49
50 return *this;
51}
MucEntityCal & operator=(const MucEntityCal &other)
◆ operator=() [2/3]
◆ operator=() [3/3]
◆ SetArea() [1/3]
| void MucStripCal::SetArea |
( |
| ) |
|
|
protectedvirtual |
◆ SetArea() [2/3]
| virtual void MucStripCal::SetArea |
( |
| ) |
|
|
protectedvirtual |
◆ SetArea() [3/3]
| virtual void MucStripCal::SetArea |
( |
| ) |
|
|
protectedvirtual |
◆ SetCenterLine() [1/3]
| void MucStripCal::SetCenterLine |
( |
| ) |
|
|
protected |
Definition at line 112 of file MucStripCal.cxx.
112 {
113
114
115
116 int segFlag = 0;
117
118 if ( (
m_Layer + 1 ) % 2 == 1 )
119 {
121 else segFlag = -1;
122
123 if (
m_ID != E_STR_NUM - 1 )
124 m_CenterLine = segFlag * ( E_XSTR_OFFSET +
m_ID * E_STR_DST );
125 else
126 m_CenterLine = segFlag * ( E_XSTR_OFFSET + ( E_STR_NUM - 2 ) * E_STR_DST +
128 }
129 else
130 {
132 else segFlag = -1;
133
134 if (
m_ID != E_STR_NUM - 1 )
135 m_CenterLine = segFlag * ( E_YSTR_OFFSET +
m_ID * E_STR_DST );
136 else
137 m_CenterLine = segFlag * ( E_YSTR_OFFSET + ( E_STR_NUM - 2 ) * E_STR_DST +
139 }
140}
Referenced by Init().
◆ SetCenterLine() [2/3]
| void MucStripCal::SetCenterLine |
( |
| ) |
|
|
protected |
◆ SetCenterLine() [3/3]
| void MucStripCal::SetCenterLine |
( |
| ) |
|
|
protected |
◆ SetH() [1/3]
| void MucStripCal::SetH |
( |
| ) |
|
|
protectedvirtual |
◆ SetH() [2/3]
| virtual void MucStripCal::SetH |
( |
| ) |
|
|
protectedvirtual |
◆ SetH() [3/3]
| virtual void MucStripCal::SetH |
( |
| ) |
|
|
protectedvirtual |
◆ SetHead() [1/3]
| void MucStripCal::SetHead |
( |
| ) |
|
|
protected |
Definition at line 143 of file MucStripCal.cxx.
143 {
144 int segFlag = 0;
145
146
148
150
153
155
156 if ( (
m_Layer + 1 ) % 2 == 1 )
157 {
159 else segFlag = -1;
160 }
161 else
162 {
164 else segFlag = -1;
165 }
166
167 m_Head *= segFlag;
168}
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/3]
| void MucStripCal::SetHead |
( |
| ) |
|
|
protected |
◆ SetHead() [3/3]
| void MucStripCal::SetHead |
( |
| ) |
|
|
protected |
◆ SetL() [1/3]
| void MucStripCal::SetL |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntityCal.
Definition at line 275 of file MucStripCal.cxx.
275 {
277 {
280
282 {
283 if ( (
m_Layer + 1 ) % 2 == 1 )
284 m_L = B_BOX_LT - 2 * B_BOX_DZ[SL_DOWN];
285 else
286 m_L = B_BOX_WT[
m_Layer] - 2 * B_BOX_DZ[SL_DOWN];
287 }
288 else
289 {
290 if ( (
m_Layer + 1 ) % 2 == 1 )
291 {
292 if (
m_ID > ZCUT_HEAD_NUM &&
m_ID < ZCUT_TAIL_NUM )
293 {
296 }
297 else
298 m_L = B_BOX_LT - 2 * B_BOX_DZ[SL_DOWN];
299 }
300 else
301 {
302 if (
m_ID < B_PHISTR_CUT_NUM )
303 m_L = B_BOX_WT[
m_Layer] - 2 * B_BOX_DZ[SL_DOWN];
304 else
305 m_L = ( B_BOX_WT[
m_Layer] - 2 * B_BOX_DZ[SL_DOWN] - B_PHISTR_CUT ) / 2;
306 }
307 }
308 }
309 else
310 {
m_L = fabs( m_Head - m_Tail ); }
311}
const int B_ZSTR_CUT_NUM[B_LAY_NUM]
const double B_ZSTR_CUT[2]
Referenced by Init().
◆ SetL() [2/3]
| virtual void MucStripCal::SetL |
( |
| ) |
|
|
protectedvirtual |
◆ SetL() [3/3]
| virtual void MucStripCal::SetL |
( |
| ) |
|
|
protectedvirtual |
◆ SetPadNumber() [1/3]
| void MucStripCal::SetPadNumber |
( |
| ) |
|
|
protected |
Definition at line 317 of file MucStripCal.cxx.
317 {
319 double fn = 0;
320
322 {
323 cout << "Error, strip width = 0!" << endl;
324 m_PadNumber = 0;
325 }
326 else
327 {
330
331 if ( ( fn -
n ) > 0.3 ) m_PadNumber =
n + 1;
332 else m_PadNumber =
n;
333 }
334}
Referenced by Init().
◆ SetPadNumber() [2/3]
| void MucStripCal::SetPadNumber |
( |
| ) |
|
|
protected |
◆ SetPadNumber() [3/3]
| void MucStripCal::SetPadNumber |
( |
| ) |
|
|
protected |
◆ SetPhi() [1/3]
| void MucStripCal::SetPhi |
( |
| ) |
|
|
protected |
◆ SetPhi() [2/3]
| void MucStripCal::SetPhi |
( |
| ) |
|
|
protected |
◆ SetPhi() [3/3]
| void MucStripCal::SetPhi |
( |
| ) |
|
|
protected |
◆ SetTail() [1/3]
| void MucStripCal::SetTail |
( |
| ) |
|
|
protected |
Definition at line 171 of file MucStripCal.cxx.
171 {
172 int segFlag = 0;
173
174 if ( (
m_Layer + 1 ) % 2 == 1 )
175 {
177 else segFlag = -1;
178
185 if (
m_ID == E_STR_NUM - 1 )
188 }
189 else
190 {
192 else segFlag = -1;
193
198 if (
m_ID == E_STR_NUM - 1 )
201 }
202
203 m_Tail *= segFlag;
204}
const double EVEN_TURN_POINT_TAIL[2]
const double ODD_TURN_POINT_TAIL[2][2]
Referenced by Init().
◆ SetTail() [2/3]
| void MucStripCal::SetTail |
( |
| ) |
|
|
protected |
◆ SetTail() [3/3]
| void MucStripCal::SetTail |
( |
| ) |
|
|
protected |
◆ SetThin() [1/3]
| void MucStripCal::SetThin |
( |
| ) |
|
|
protectedvirtual |
◆ SetThin() [2/3]
| virtual void MucStripCal::SetThin |
( |
| ) |
|
|
protectedvirtual |
◆ SetThin() [3/3]
| virtual void MucStripCal::SetThin |
( |
| ) |
|
|
protectedvirtual |
◆ SetType() [1/3]
| void MucStripCal::SetType |
( |
| ) |
|
|
protected |
Definition at line 98 of file MucStripCal.cxx.
98 {
100 {
101 if ( (
m_Layer + 1 ) % 2 == 1 ) m_Type = ZSTR;
102 else m_Type = PHISTR;
103 }
104 else
105 {
106 if ( (
m_Layer + 1 ) % 2 == 1 ) m_Type = XSTR;
107 else m_Type = YSTR;
108 }
109}
Referenced by Init().
◆ SetType() [2/3]
| void MucStripCal::SetType |
( |
| ) |
|
|
protected |
◆ SetType() [3/3]
| void MucStripCal::SetType |
( |
| ) |
|
|
protected |
◆ SetW() [1/3]
| void MucStripCal::SetW |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from MucEntityCal.
Definition at line 218 of file MucStripCal.cxx.
218 {
220 {
221
222 int maxStrip;
224 else if (
m_Segment != B_TOP ) maxStrip = B_PHISTR_NUM;
225 else maxStrip = B_TOPSTR_NUM;
226
227 if ( (
m_Layer + 1 ) % 2 == 1 )
228 {
229 if (
m_ID > 0 &&
m_ID < ( maxStrip - 1 ) )
231 else
232 m_W = ( B_BOX_WT[
m_Layer] - 2 * B_BOX_DT[SL_DOWN] -
234 2;
235 }
236 else
237 {
238 if (
m_ID > 0 &&
m_ID < ( maxStrip - 1 ) )
240 else
241 m_W = B_BOX_LT / 2 - B_BOX_DZ[SL_DOWN] - B_STR_DST[
m_Layer] * ( B_PHISTR_NUM - 2 ) / 2;
242
243 if ( ( maxStrip == B_TOPSTR_NUM ) && (
m_ID == ( B_PHISTR_NUM - 1 ) ) )
244
245 m_W = B_BOX_LT / 2 - B_BOX_DZ[SL_DOWN] - B_STR_DST[
m_Layer] * ( B_PHISTR_NUM - 2 ) / 2;
246 }
247 }
248 else
249 {
250
251
252 if (
m_ID != E_STR_NUM - 1 )
m_W = E_STR_WT;
253 else
254 {
255 if ( (
m_Layer + 1 ) % 2 != 0 )
256 {
259 }
261 }
262 }
263}
Referenced by Init().
◆ SetW() [2/3]
| virtual void MucStripCal::SetW |
( |
| ) |
|
|
protectedvirtual |
◆ SetW() [3/3]
| virtual void MucStripCal::SetW |
( |
| ) |
|
|
protectedvirtual |
◆ SetWd() [1/3]
| void MucStripCal::SetWd |
( |
| ) |
|
|
protectedvirtual |
◆ SetWd() [2/3]
| virtual void MucStripCal::SetWd |
( |
| ) |
|
|
protectedvirtual |
◆ SetWd() [3/3]
| virtual void MucStripCal::SetWd |
( |
| ) |
|
|
protectedvirtual |
◆ SetWu() [1/3]
| void MucStripCal::SetWu |
( |
| ) |
|
|
protectedvirtual |
◆ SetWu() [2/3]
| virtual void MucStripCal::SetWu |
( |
| ) |
|
|
protectedvirtual |
◆ SetWu() [3/3]
| virtual void MucStripCal::SetWu |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: