23#if NAMESPACE == ANTARES   
   24  static const int NUMBER_OF_PMTS          =  3;    
 
   26  static const int NUMBER_OF_PMTS          = 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;
 
 
 
  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;
 
 
 
KM3NeT DAQ data structures and auxiliaries.
 
static const JBits DAQ_UDP_RECEIVED_PACKETS(0, 15)
Mask of UDP received packets.
 
static const JBits DAQ_TDC(0, 30)
TDC high-rate veto status.
 
static const JBits DAQ_UDP_SEQUENCE_NUMBER(16, 31)
Mask of UDP sequence number.
 
static const JBits DAQ_FIFO(0, 30)
FIFO almost full bits.
 
static const JBit DAQ_WHITE_RABBIT(31)
White Rabbit status.
 
static const JBit DAQ_UDP_TRAILER(31)
UDP trailer.
 
Auxiliary data structure for single bit.
 
void unset(int &mask) const
Unset bit in given bit mask.
 
void set(int &mask, const bool value) const
Set bit in given bit mask.
 
int write(const int value) const
Write given value as bit mask.
 
JBit()
Default constructor.
 
JBit(int __bit)
Constructor.
 
int read(const int mask) const
Read given bit mask as value.
 
void set(int &mask) const
Set bit in given bit mask.
 
bool has(const int mask) const
Test bit.
 
int get() const
Get bit mask.
 
Auxiliary data structure for range of bits.
 
int write(const int value) const
Write given value as bit mask.
 
int get() const
Get bit mask.
 
int lsb
least significant bit
 
int read(const int mask) const
Read given bit mask as value.
 
JBits()
Default constructor.
 
bool has(const int mask) const
Test bit mask.
 
JBits(int __lsb, int __msb)
Constructor.
 
int msb
most significant bit