Go to the documentation of this file.
   23 #if NAMESPACE == ANTARES   
   53       if (bit < 0 || bit > 31) {
 
   77     void set(
int& mask)
 const 
  100     void set(
int& mask, 
const bool value)
 const 
  117       return (value << 
bit) & 
get();
 
  129       return (mask & 
get()) >> 
bit;
 
  139     bool has(
const int mask)
 const 
  141       return (mask & 
get()) != 0;
 
  172       if (lsb < 0   || lsb > 31 ||
 
  173           msb < lsb || msb > 31) {
 
  188       static const unsigned int mask[] = { 0x00000001,
 
  240       return (value << 
lsb) & 
get();
 
  252       return (mask & 
get()) >> 
lsb;
 
  262     bool has(
const int mask)
 const 
  264       return (
get() & mask) != 0;
 
  
int get() const
Get bit mask.
 
static const JBits DAQ_UDP_RECEIVED_PACKETS(0, 15)
Mask of UDP received packets.
 
JBits()
Default constructor.
 
bool has(const int mask) const
Test bit.
 
void unset(int &mask) const
Unset bit in given bit mask.
 
void set(int &mask) const
Set bit in given bit mask.
 
Auxiliary data structure for single bit.
 
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
 
int get() const
Get bit mask.
 
void set(int &mask, const bool value) const
Set bit in given bit mask.
 
JBit()
Default constructor.
 
static const JBit DAQ_UDP_TRAILER(31)
UDP trailer.
 
int write(const int value) const
Write given value as bit mask.
 
int write(const int value) const
Write given value as bit mask.
 
static const JBit DAQ_WHITE_RABBIT(31)
White Rabbit status.
 
Auxiliary data structure for range of bits.
 
int msb
most significant bit
 
static const JBits DAQ_UDP_SEQUENCE_NUMBER(16, 31)
Mask of UDP sequence number.
 
KM3NeT DAQ data structures and auxiliaries.
 
int lsb
least significant bit
 
int read(const int mask) const
Read given bit mask as value.
 
JBits(int __lsb, int __msb)
Constructor.
 
bool has(const int mask) const
Test bit mask.
 
static const JBits DAQ_FIFO(0, 30)
FIFO almost full bits.
 
int read(const int mask) const
Read given bit mask as value.
 
JBit(int __bit)
Constructor.
 
static const JBits DAQ_TDC(0, 30)
TDC high-rate veto status.