#include <TGCWireTripletSB.h>
|
| static constexpr int | s_LengthOfWTSBCoincidenceOut = 100 |
| static constexpr int | s_NChAdjInWTSB = 2 |
| static constexpr int | s_NumberOfWireTripletSBData = 3 |
| static constexpr int | s_pOffset [6] = {0,0,2,2,2,2} |
| static constexpr int | s_iOffset [6] = {4,0,6,6,6,6} |
| static constexpr int | s_pLength [6] = {36,36,32,32,32,32} |
| static constexpr int | s_iLength [6] = {36,44,32,32,32,32} |
Definition at line 12 of file TGCWireTripletSB.h.
◆ TGCWireTripletSB() [1/2]
| LVL1TGCTrigger::TGCWireTripletSB::TGCWireTripletSB |
( |
const TGCWireTripletSB & | right | ) |
|
|
delete |
◆ TGCWireTripletSB() [2/2]
| LVL1TGCTrigger::TGCWireTripletSB::TGCWireTripletSB |
( |
| ) |
|
◆ ~TGCWireTripletSB()
| virtual LVL1TGCTrigger::TGCWireTripletSB::~TGCWireTripletSB |
( |
| ) |
|
|
inlinevirtual |
◆ clockIn()
| void LVL1TGCTrigger::TGCSlaveBoard::clockIn |
( |
int | bidIn | ) |
|
|
inherited |
Definition at line 37 of file TGCSlaveBoard.cxx.
38{
41
43
44#ifdef TGCDEBUG
46 std::cout <<
"#SB: BID= " <<
m_bid;
49 std::cout <<
" ID= " <<
m_id << std::endl;
53 std::cout<<
"#SB I: BID= "<<
m_bid;
58 std::cout <<
" port= "<<
i;
59 std::cout <<
"" <<
m_id;
60 }
61 std::cout << ":";
63 }
64 } else {
65 std::cout << "NO PP IN" << std::endl;
66 }
67#endif
68
69
74
77
79
82#ifdef TGCDEBUG_VISUAL
83 std::cout << "TGCSlaveBoard::clockIn: after doCoincidence()\n";
85#endif
86#ifdef TGCDEBUG
87 std::cout <<
"#SB C: BID= " <<
m_bid <<
":";
89#endif
90 }
92#ifdef TGCDEBUG_VISUAL
94 std::cout << "TGCSlaveBoard::clockIn: after doDecluster()\n";
96 }
97#endif
99
100#ifdef TGCDEBUG
102#endif
103
108 }
109 }
110}
std::string getTypeName(int typeIn) const
TGCSlaveBoardOut * m_slaveBoardOut
virtual void doCoincidence()=0
void deletePatchPanelOut()
TGCPatchPanelOut * m_patchPanelOut
virtual void createSlaveBoardOut()=0
std::bitset< 200 > m_slbin
TGCHitPattern * m_coincidenceOut
const int NumberOfConnectorPerPPOut
◆ collectInput()
| void LVL1TGCTrigger::TGCSlaveBoard::collectInput |
( |
| ) |
|
|
protectedinherited |
Definition at line 240 of file TGCSlaveBoard.cxx.
241{
242#ifdef TGCDEBUG
243 std::cout <<
"#SB: BID= " <<
m_bid;
246 std::cout <<
" ID= " <<
m_id << std::endl;
248#endif
249
252#ifdef TGCDEBUG
254#endif
256
257 }
258}
TGCPatchPanel * m_patchPanel
◆ createSlaveBoardOut()
| void LVL1TGCTrigger::TGCWireTripletSB::createSlaveBoardOut |
( |
| ) |
|
|
protectedvirtual |
Implements LVL1TGCTrigger::TGCSlaveBoard.
Definition at line 18 of file TGCWireTripletSB.cxx.
19{
25
26
27
34 for( j=0; j<lengthOfSection; j+=1) {
38 break;
39 }
40 }
43 }
44 }
45 }
46}
static constexpr int s_NumberOfWireTripletSBData
static constexpr int s_NChAdjInWTSB
◆ deletePatchPanelOut()
| void LVL1TGCTrigger::TGCSlaveBoard::deletePatchPanelOut |
( |
| ) |
|
|
protectedinherited |
◆ doCoincidence()
| void LVL1TGCTrigger::TGCWireTripletSB::doCoincidence |
( |
| ) |
|
|
protectedvirtual |
Implements LVL1TGCTrigger::TGCSlaveBoard.
Definition at line 48 of file TGCWireTripletSB.cxx.
49{
50 const TGCHitPattern*
pattern[2];
51
52
55
56 if(pattern[1] != 0) {
57 const int unitLength =
pattern[1]->getLength() / 2;
58 const int totalLength = 3 * unitLength;
59
63
64
65 std::vector<bool>
b(totalLength);
66 for (
int i=0;
i < unitLength;
i++) {
67 if (pattern[0] != 0) {
68 b[3*
i] =
pattern[0]->getChannel(i+unitLength);
69 } else {
71 }
72 if (pattern[1] != 0) {
74 b[3*
i+2] =
pattern[1]->getChannel(i+unitLength);
75 } else {
78 }
79 }
80
81
82 std::vector<bool>
output(totalLength);
83 for (
int i=0;
i < totalLength-8;
i++) {
85 (b[i+3] && b[i+4] && !b[i+2]) ||
86 (
b[
i+4] &&
b[
i+5] && !
b[
i+6]) ||
87 (b[i+6] && b[i+2] && b[i+4] && !b[i+3] && !b[i+5] && !b[i+1] && !b[i+7]);
88 }
89
93 }
94 }
95}
int m_lengthOfCoincidenceOut
static constexpr int s_LengthOfWTSBCoincidenceOut
◆ doDecluster()
| void LVL1TGCTrigger::TGCSlaveBoard::doDecluster |
( |
| ) |
|
|
protectedinherited |
Definition at line 190 of file TGCSlaveBoard.cxx.
191{
194
203 out->setChannel(i,( !B &
C & !D )|( !A & B &
C ));
204 }
205
210 out->setChannel(0,( !B &
C & !D )|( !A & B &
C ));
211
216 out->setChannel(1,( !B &
C & !D )|( !A & B &
C ));
217
221 D = false;
222 out->setChannel(
length-1,( !B &
C & !D )|( !A & B &
C ));
223
227 }
228}
◆ doMaskOperation()
| void LVL1TGCTrigger::TGCSlaveBoard::doMaskOperation |
( |
| ) |
|
|
inlineprotectedinherited |
◆ eraseOutput()
| void LVL1TGCTrigger::TGCSlaveBoard::eraseOutput |
( |
| ) |
|
|
inherited |
◆ getId()
| int LVL1TGCTrigger::TGCSlaveBoard::getId |
( |
| ) |
const |
|
inlineinherited |
◆ getIdHighPtBoard()
| int LVL1TGCTrigger::TGCSlaveBoard::getIdHighPtBoard |
( |
| ) |
const |
|
inherited |
◆ getOutput()
◆ getRegion()
◆ GetSlbIn()
| const std::bitset< 200 > & LVL1TGCTrigger::TGCSlaveBoard::GetSlbIn |
( |
void | | ) |
const |
|
inlineinherited |
◆ getType()
| int LVL1TGCTrigger::TGCSlaveBoard::getType |
( |
| ) |
const |
|
inlineinherited |
◆ getTypeName()
| std::string LVL1TGCTrigger::TGCSlaveBoard::getTypeName |
( |
int | typeIn | ) |
const |
|
inherited |
◆ operator=()
Definition at line 97 of file TGCWireTripletSB.cxx.
98{
99 if ( this != &right ) {
108
112 }
113 }
114 return *this;
115}
◆ setId()
| void LVL1TGCTrigger::TGCSlaveBoard::setId |
( |
int | idIn | ) |
|
|
inlineinherited |
◆ setIdHighPtBoard()
| void LVL1TGCTrigger::TGCSlaveBoard::setIdHighPtBoard |
( |
int | m_id | ) |
|
|
inherited |
◆ setPatchPanel()
| void LVL1TGCTrigger::TGCSlaveBoard::setPatchPanel |
( |
TGCPatchPanel * | PPIn | ) |
|
|
inherited |
◆ setPatchPanelOut()
| void LVL1TGCTrigger::TGCSlaveBoard::setPatchPanelOut |
( |
TGCPatchPanelOut * | PPOut | ) |
|
|
inlineinherited |
◆ setRegion()
| void LVL1TGCTrigger::TGCSlaveBoard::setRegion |
( |
TGCRegionType | regionIn | ) |
|
|
inlineinherited |
◆ setType()
| void LVL1TGCTrigger::TGCSlaveBoard::setType |
( |
int | typeIn | ) |
|
|
inlineinherited |
◆ showResult()
| void LVL1TGCTrigger::TGCSlaveBoard::showResult |
( |
| ) |
const |
|
inherited |
Definition at line 133 of file TGCSlaveBoard.cxx.
134{
135
140 std::cout<<
"#SB I: BID= "<<
m_bid;
145 std::cout <<
" port= "<<
i;
146 std::cout <<
"" <<
m_id;
147 }
148 std::cout << ":";
150 }
151 }
152
155 std::cout <<
"#SB O: BID= " <<
m_bid;
158 std::cout <<
" ID= " <<
m_id <<
":";
161 std::cout <<
" i= " <<
i;
165 }
166 }
167 std::cout<<std::endl;
169 }
170 }
171}
TGCRegionType getRegion() const
◆ storeSlbIn()
| void LVL1TGCTrigger::TGCSlaveBoard::storeSlbIn |
( |
| ) |
|
|
inherited |
Definition at line 112 of file TGCSlaveBoard.cxx.
113{
114
118 if(pivot!=0){
122 }
123 }
124 if(inner!=0){
129 }
130 }
131}
static constexpr int s_pOffset[6]
static constexpr int s_pLength[6]
static constexpr int s_iLength[6]
static constexpr int s_iOffset[6]
◆ m_bid
| int LVL1TGCTrigger::TGCSlaveBoard::m_bid |
|
protectedinherited |
◆ m_coincidenceOut
◆ m_id
| int LVL1TGCTrigger::TGCSlaveBoard::m_id |
|
protectedinherited |
◆ m_idHighPtBoard
| int LVL1TGCTrigger::TGCSlaveBoard::m_idHighPtBoard |
|
protectedinherited |
◆ m_lengthOfCoincidenceOut
| int LVL1TGCTrigger::TGCSlaveBoard::m_lengthOfCoincidenceOut |
|
protectedinherited |
◆ m_patchPanel
◆ m_patchPanelOut
◆ m_region
◆ m_slaveBoardOut
◆ m_slbin
| std::bitset<200> LVL1TGCTrigger::TGCSlaveBoard::m_slbin |
|
protectedinherited |
◆ m_type
| int LVL1TGCTrigger::TGCSlaveBoard::m_type |
|
protectedinherited |
◆ s_iLength
| int LVL1TGCTrigger::TGCSlaveBoard::s_iLength[6] = {36,44,32,32,32,32} |
|
staticconstexprprivateinherited |
◆ s_iOffset
| int LVL1TGCTrigger::TGCSlaveBoard::s_iOffset[6] = {4,0,6,6,6,6} |
|
staticconstexprprivateinherited |
◆ s_LengthOfWTSBCoincidenceOut
| int LVL1TGCTrigger::TGCWireTripletSB::s_LengthOfWTSBCoincidenceOut = 100 |
|
staticconstexprprivate |
◆ s_NChAdjInWTSB
| int LVL1TGCTrigger::TGCWireTripletSB::s_NChAdjInWTSB = 2 |
|
staticconstexprprivate |
◆ s_NumberOfWireTripletSBData
| int LVL1TGCTrigger::TGCWireTripletSB::s_NumberOfWireTripletSBData = 3 |
|
staticconstexprprivate |
◆ s_pLength
| int LVL1TGCTrigger::TGCSlaveBoard::s_pLength[6] = {36,36,32,32,32,32} |
|
staticconstexprprivateinherited |
◆ s_pOffset
| int LVL1TGCTrigger::TGCSlaveBoard::s_pOffset[6] = {0,0,2,2,2,2} |
|
staticconstexprprivateinherited |
The documentation for this class was generated from the following files: