Output bit pattern class.
More...
#include <TrgBit.h>
Output bit pattern class.
Definition at line 76 of file TrgBit.h.
◆ OutputBitPattern()
Constructor.
Definition at line 80 of file TrgBit.h.
unsigned _pattern[6]
hit pattern
◆ ~OutputBitPattern()
Destructor.
Definition at line 83 of file TrgBit.h.
◆ isFired()
bool isFired |
( |
unsigned |
bit | ) |
const |
get fired or not
Definition at line 207 of file TrgBit.cc.
208{
209 unsigned wd = bit / 32;
210 unsigned position = bit % 32;
211 return (
_pattern[wd] >> position) & 1;
212}
◆ operator[]()
int operator[] |
( |
unsigned |
a | ) |
|
Bit.
Definition at line 226 of file TrgBit.cc.
227{
228 if (a >= 32 * N_OUTPUT_ARRAY) return 0;
229 const unsigned i = a / 32;
230 const unsigned j = a % 32;
231
232 if ((
_pattern[i] >> j) & 1)
return 1;
233 return 0;
234}
◆ set()
void set |
( |
unsigned |
pattern, |
|
|
unsigned |
wordPosition |
|
) |
| |
◆ _pattern
The documentation for this class was generated from the following files: