Input bit pattern class.
More...
#include <TrgBit.h>
Input bit pattern class.
Definition at line 44 of file TrgBit.h.
◆ InputBitPattern()
Constructor.
Definition at line 48 of file TrgBit.h.
◆ ~InputBitPattern()
Destructor.
Definition at line 51 of file TrgBit.h.
◆ isFired()
bool isFired |
( |
unsigned |
bit | ) |
const |
get fired or not
Definition at line 199 of file TrgBit.cc.
200{
201 unsigned wd = bit / 32;
202 unsigned position = bit % 32;
203 return (
_pattern[wd] >> position) & 1;
204}
◆ operator[]()
int operator[] |
( |
unsigned |
a | ) |
|
Bit.
Definition at line 215 of file TrgBit.cc.
216{
217 if (a >= 32 * N_INPUT_ARRAY) return 0;
218 const unsigned i = a / 32;
219 const unsigned j = a % 32;
220
221 if ((
_pattern[i] >> j) & 1)
return 1;
222 return 0;
223}
◆ set()
void set |
( |
unsigned |
pattern, |
|
|
unsigned |
wordPosition |
|
) |
| |
◆ _pattern
hit pattern
Definition at line 71 of file TrgBit.h.
The documentation for this class was generated from the following files: