#include <TGCSlaveBoardOut.h>
Definition at line 20 of file TGCSlaveBoardOut.h.
◆ TGCSlaveBoardOut() [1/3]
| LVL1TGCTrigger::TGCSlaveBoardOut::TGCSlaveBoardOut |
( |
const TGCSlaveBoard * | sb, |
|
|
int | bidIn ) |
Definition at line 10 of file TGCSlaveBoardOut.cxx.
13{
19 }
21
23
26
29 }
32 m_bdev[
i] =
new TGCHitPattern(1);
33 }
34 }
35}
bool m_hit[s_MaxNumberOfSBData]
TGCHitPattern * m_bpos[s_MaxNumberOfSBData]
const TGCSlaveBoard * m_origin
static constexpr int s_MaxNumberOfSBData
int m_dev[s_MaxNumberOfSBData]
int m_pos[s_MaxNumberOfSBData]
TGCHitPattern * m_bdev[2]
const int TotalNumberOfOutputData[6]
◆ TGCSlaveBoardOut() [2/3]
| LVL1TGCTrigger::TGCSlaveBoardOut::TGCSlaveBoardOut |
( |
const TGCSlaveBoardOut & | right | ) |
|
Definition at line 75 of file TGCSlaveBoardOut.cxx.
79{
85 }
87
89
92
94 m_bpos[
i] =
new TGCHitPattern(*(right.m_bpos[i]));
98 }
101 m_bdev[
i] =
new TGCHitPattern(*(right.m_bdev[i]));
102 }
103 }
104}
◆ TGCSlaveBoardOut() [3/3]
| LVL1TGCTrigger::TGCSlaveBoardOut::TGCSlaveBoardOut |
( |
| ) |
|
◆ ~TGCSlaveBoardOut()
| LVL1TGCTrigger::TGCSlaveBoardOut::~TGCSlaveBoardOut |
( |
| ) |
|
◆ clear()
| void LVL1TGCTrigger::TGCSlaveBoardOut::clear |
( |
| ) |
|
◆ getBid()
| int LVL1TGCTrigger::TGCSlaveBoardOut::getBid |
( |
| ) |
const |
|
inline |
◆ getbPos()
| TGCHitPattern * LVL1TGCTrigger::TGCSlaveBoardOut::getbPos |
( |
int | iData | ) |
|
|
inline |
◆ getDev()
| int LVL1TGCTrigger::TGCSlaveBoardOut::getDev |
( |
int | iData | ) |
const |
|
inline |
◆ getHit()
| bool LVL1TGCTrigger::TGCSlaveBoardOut::getHit |
( |
int | iData | ) |
const |
|
inline |
◆ getNumberOfData()
| int LVL1TGCTrigger::TGCSlaveBoardOut::getNumberOfData |
( |
| ) |
const |
|
inline |
◆ getOrgBoardType()
| int LVL1TGCTrigger::TGCSlaveBoardOut::getOrgBoardType |
( |
| ) |
const |
|
inline |
◆ getOrigin()
| const TGCSlaveBoard * LVL1TGCTrigger::TGCSlaveBoardOut::getOrigin |
( |
| ) |
const |
|
inline |
◆ getPos()
| int LVL1TGCTrigger::TGCSlaveBoardOut::getPos |
( |
int | iData | ) |
const |
|
inline |
◆ operator=()
Definition at line 37 of file TGCSlaveBoardOut.cxx.
38{
39 if (this != &right){
46 }
47 for(
int i=0;
i<2;
i++) {
50 }
51
57
60 m_bpos[
i] =
new TGCHitPattern(*(right.m_bpos[i]));
64 }
67 m_bdev[
i] =
new TGCHitPattern(*(right.m_bdev[i]));
68 }
69 }
70 }
71 }
72 return *this;
73}
◆ print() [1/4]
| void LVL1TGCTrigger::TGCSlaveBoardOut::print |
( |
| ) |
const |
Definition at line 193 of file TGCSlaveBoardOut.cxx.
194{
195#ifdef TGCCOUT
196 int OutPutBlock;
197 std::cout<<" SlaveBoardOut:";
199
201 {
203 std::cout<<" SBType:" << "WTSB";
204 break;
206 std::cout<<" SBType:" << "WDSB";
207 break;
209 std::cout<<" SBType:" << "STSB";
210 break;
212 std::cout<<" SBType:" << "SDSB";
213 break;
214 }
215 std::cout<<
" bid:" <<
m_bid;
217 if(
m_hit[OutPutBlock]) std::cout <<
" [OutPutBlock=" << OutPutBlock <<
" x=" <<
m_pos[OutPutBlock] <<
" d=" <<
m_dev[OutPutBlock] <<
"]";
218 std::cout<<std::endl;
219
222 {
224 {
226 std::cout << " bit pattern [OutPutBlock=" << OutPutBlock << " x=";
227 m_bpos[OutPutBlock]->printb();
229 {
230 std::cout << " d=";
231 m_bdev[OutPutBlock]->printb();
232 }
233 std::cout << "]";
234 }
235 }
236 if(
count)std::cout<<std::endl;
237#endif
238}
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ print() [2/4]
| void LVL1TGCTrigger::TGCSlaveBoardOut::print |
( |
int | OutPutBlock | ) |
const |
Definition at line 243 of file TGCSlaveBoardOut.cxx.
245{
246#ifdef TGCCOUT
247 std::cout<<" SlaveBoardOut:";
249#endif
251 {
253#ifdef TGCCOUT
254 std::cout<<" SBType:" << "WTSB";
255#endif
256 break;
258#ifdef TGCCOUT
259 std::cout<<" SBType:" << "WDSB";
260#endif
261 break;
263#ifdef TGCCOUT
264 std::cout<<" SBType:" << "STSB";
265#endif
266 break;
268#ifdef TGCCOUT
269 std::cout<<" SBType:" << "SDSB";
270#endif
271 break;
272 }
273#ifdef TGCCOUT
274 std::cout<<
" bid:" <<
m_bid;
275 if(
m_hit[OutPutBlock]) std::cout <<
" [OutPutBlock=" << OutPutBlock <<
" x=" <<
m_pos[OutPutBlock] <<
" d=" <<
m_dev[OutPutBlock] <<
"]";
276
278 {
279 std::cout << " bit pattern [OutPutBlock=" << OutPutBlock << " x=";
280 m_bpos[OutPutBlock]->printb();
282 {
283 std::cout << " d=";
284 m_bdev[OutPutBlock]->printb();
285 }
286 std::cout << "]";
287 }
288 std::cout<<std::endl;
289#endif
290}
◆ print() [3/4]
| void LVL1TGCTrigger::TGCSlaveBoardOut::print |
( |
std::ofstream * | ofs | ) |
const |
Definition at line 292 of file TGCSlaveBoardOut.cxx.
293{
294 int OutPutBlock;
295 bool tHit = false;
296
299 tHit = true;
300 if(!tHit)return;
301
302 *ofs << "#SlaveBoardOut:";
304
306 {
308 *ofs << " SBType:" << "WTSB";
309 break;
311 *ofs << " SBType:" << "WDSB";
312 break;
314 *ofs << " SBType:" << "STSB";
315 break;
317 *ofs << " SBType:" << "SDSB";
318 break;
319 }
320 *ofs <<
" bid:" <<
m_bid;
323 {
324 *ofs <<
" [OutPutBlock=" << OutPutBlock <<
"/" <<
m_numberOfData-1 <<
" x=" <<
m_pos[OutPutBlock] <<
" d=" <<
m_dev[OutPutBlock] <<
"]";
325 *ofs << "[OutPutBlock=" << OutPutBlock << " x=";
326 m_bpos[OutPutBlock]->printb(ofs);
328 {
329 *ofs << " d=";
330 m_bdev[OutPutBlock]->printb(ofs);
331 }
332 *ofs << "]";
333 }
334 *ofs << std::endl;
335}
◆ print() [4/4]
| void LVL1TGCTrigger::TGCSlaveBoardOut::print |
( |
std::ofstream * | ofs, |
|
|
int | OutPutBlock ) const |
Definition at line 337 of file TGCSlaveBoardOut.cxx.
338{
339 if(!(
m_hit[OutPutBlock] &&
m_bpos[OutPutBlock]))
return;
340
341 *ofs << "#SlaveBoardOut:";
343
345 {
347 *ofs << " SBType:" << "WTSB";
348 break;
350 *ofs << " SBType:" << "WDSB";
351 break;
353 *ofs << " SBType:" << "STSB";
354 break;
356 *ofs << " SBType:" << "SDSB";
357 break;
358 }
359 *ofs <<
" bid:" <<
m_bid;
361 {
362 *ofs <<
" [OutPutBlock=" << OutPutBlock <<
" x=" <<
m_pos[OutPutBlock] <<
" d=" <<
m_dev[OutPutBlock] <<
"]";
363 *ofs << "[OutPutBlock=" << OutPutBlock;
364 *ofs << " x=";
365 m_bpos[OutPutBlock]->printb(ofs);
367 {
368 *ofs << " d=";
369 m_bdev[OutPutBlock]->printb(ofs);
370 }
371 *ofs << "]";
372 }
373 *ofs << std::endl;
374}
◆ printpattern() [1/2]
| void LVL1TGCTrigger::TGCSlaveBoardOut::printpattern |
( |
std::ofstream * | ofs | ) |
const |
Definition at line 376 of file TGCSlaveBoardOut.cxx.
377{
378 int OutPutBlock;
379
382 {
383 *ofs << " ";
385 {
386 *ofs << "1";
387 }
388 m_bpos[OutPutBlock]->printb(ofs);
390 {
391 *ofs << " ";
392 m_bdev[OutPutBlock]->printb(ofs);
393 }
394 }
395 else
396 {
398 {
399 *ofs << " 00000 0000";
400 }
402 {
403 *ofs << " 000000";
404 }
405 else
406 {
407 *ofs << " 00000";
408 }
409 }
410}
◆ printpattern() [2/2]
| void LVL1TGCTrigger::TGCSlaveBoardOut::printpattern |
( |
std::ofstream * | ofs, |
|
|
int | OutPutBlock ) const |
Definition at line 412 of file TGCSlaveBoardOut.cxx.
413{
415 {
416 *ofs << " ";
418 {
419 *ofs << "1";
420 }
421 m_bpos[OutPutBlock]->printb(ofs);
423 {
424 *ofs << " ";
425 m_bdev[OutPutBlock]->printb(ofs);
426 }
427 }
428 else
429 {
431 {
432 *ofs << " 00000 0000";
433 }
435 {
436 *ofs << " 000000";
437 }
438 else
439 {
440 *ofs << " 00000";
441 }
442 }
443}
◆ setbDev()
| void LVL1TGCTrigger::TGCSlaveBoardOut::setbDev |
( |
int | block, |
|
|
int | sign, |
|
|
int | dr ) |
Definition at line 138 of file TGCSlaveBoardOut.cxx.
139{
141 std::cerr << "TGCSlaveBoardOut::setbDev : illegal block "
143 << " block=" << block << std::endl;
144 return;
145 }
147 std::cerr << "TGCSlaveBoardOut::setbDev : illegal Type "
149 << " block=" << block << std::endl;
150 return;
151 }
152
153 TGCHitPattern
tmp(3);
155#ifdef TGCDEBUG
157 std::cout <<
":" <<
dr <<
" TGCSlaveBoardOut::setbDev" << std::endl;
158#endif
160 m_bdev[block]->setChannel(0,
true);
161 } else {
162 m_bdev[block]->setChannel(0,
false);
163 }
164 m_bdev[block]->push_back(&tmp);
165#ifdef TGCDEBUG
167 std::cout << std::endl;
168#endif
169}
◆ setbPos()
| void LVL1TGCTrigger::TGCSlaveBoardOut::setbPos |
( |
int | block, |
|
|
int | pos ) |
|
inline |
Definition at line 74 of file TGCSlaveBoardOut.h.
75{
77 m_bpos[block]->dec2bin(pos);
78 } else {
79 std::cerr << "TGCSlaveBoardOut::setbPos : illegal block "
82 << " block=" << block << std::endl;
83 }
84}
◆ setDev()
| void LVL1TGCTrigger::TGCSlaveBoardOut::setDev |
( |
int | iData, |
|
|
int | devIn ) |
|
inline |
Definition at line 97 of file TGCSlaveBoardOut.h.
98{
100 std::cerr << "Internal error TGCSlaveBoardOut::setDev()" << std::endl;
101 } else {
102 m_dev[iData] = devIn;
103 }
104}
◆ setHit()
| void LVL1TGCTrigger::TGCSlaveBoardOut::setHit |
( |
int | iData, |
|
|
bool | hitIn ) |
|
inline |
Definition at line 87 of file TGCSlaveBoardOut.h.
88{
90 std::cerr << "internal error TGCSlaveBoardOut::setHit()" << std::endl;
91 } else {
93 }
94}
◆ setNumberOfData()
| void LVL1TGCTrigger::TGCSlaveBoardOut::setNumberOfData |
( |
int | nData | ) |
|
|
inline |
◆ setPos()
| void LVL1TGCTrigger::TGCSlaveBoardOut::setPos |
( |
int | iData, |
|
|
int | posIn ) |
Definition at line 171 of file TGCSlaveBoardOut.cxx.
172{
174 std::cerr << "internal error TGCSlaveBoardOut::setPos()" << std::endl;
175 } else {
176 m_pos[iData] = posIn;
177 }
178}
◆ m_bdev
◆ m_bid
| int LVL1TGCTrigger::TGCSlaveBoardOut::m_bid |
|
private |
◆ m_bpos
◆ m_dev
◆ m_hit
◆ m_numberOfData
| int LVL1TGCTrigger::TGCSlaveBoardOut::m_numberOfData |
|
private |
◆ m_orgBoardType
| int LVL1TGCTrigger::TGCSlaveBoardOut::m_orgBoardType |
|
private |
◆ m_orgSBid
| int LVL1TGCTrigger::TGCSlaveBoardOut::m_orgSBid |
|
private |
◆ m_origin
◆ m_pos
◆ s_MaxNumberOfSBData
| int LVL1TGCTrigger::TGCSlaveBoardOut::s_MaxNumberOfSBData = 8 |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: