Go to the documentation of this file. 1 #ifndef __JDAQFRAMESTATUS__
2 #define __JDAQFRAMESTATUS__
48 const int __status_3 = 0,
49 const int __status_4 = 0) :
82 return static_cast<const JDAQFrameStatus&>(*
this);
93 static_cast<JDAQFrameStatus&>(*
this) =
status;
364 return !(first == second);
Interface for binary input.
bool testHighRateVeto() const
Test high-rate veto status.
bool testStatus() const
Test TDC and White Rabbit status.
static const JBits DAQ_UDP_RECEIVED_PACKETS(0, 15)
Mask of UDP received packets.
int countFIFOStatus() const
Count FIFO status.
bool has(const int mask) const
Test bit.
friend JReader & operator>>(JReader &, JDAQFrameStatus &)
Read DAQ frame status from input.
int getFIFOStatus() const
Get FIFO status.
void set(int &mask) const
Set bit in given bit mask.
Auxiliary data structure for single bit.
void setHighRateVeto(const int tdc, const bool value)
Set high-rate veto.
int countActiveChannels() const
Count active channels.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
void setDAQFrameStatus(const JDAQFrameStatus &status)
Set DAQ frame status.
JDAQFrameStatus(const int __daq, const int __status, const int __fifo, const int __status_3=0, const int __status_4=0)
Constructor.
static const JBit DAQ_UDP_TRAILER(31)
UDP trailer.
int getUDPMaximalSequenceNumber() const
Get maximal sequence number of UDP packet.
int countHighRateVeto() const
Count high-rate veto status.
JDAQFrameStatus()
Default constructor.
bool hasUDPTrailer() const
Get UDP trailer status.
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
int getUDPNumberOfReceivedPackets() const
Get number of received UDP packets.
bool testHighRateVeto(const int tdc) const
Test high-rate veto status.
Interface for binary output.
bool testFIFOStatus() const
Test FIFO status.
static const JDAQFrameStatus & getInstance()
Get reference to unique instance of this class object.
int write(const int value) const
Write given value as bit mask.
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
bool testDAQStatus() const
Test DAQ status of packets.
friend JWriter & operator<<(JWriter &, const JDAQFrameStatus &)
Write DAQ frame status to output.
int write(const int value) const
Write given value as bit mask.
int getDAQStatus() const
Get DAQ status.
static const JBit DAQ_WHITE_RABBIT(31)
White Rabbit status.
bool testFIFOStatus(const int tdc) const
Test FIFO status.
static const JBits DAQ_UDP_SEQUENCE_NUMBER(16, 31)
Mask of UDP sequence number.
bool testTDCStatus() const
Test TDC status.
size_t getSizeof< JDAQFrameStatus >()
Get size of type.
KM3NeT DAQ data structures and auxiliaries.
int read(const int mask) const
Read given bit mask as value.
bool has(const int mask) const
Test bit mask.
static const JBits DAQ_FIFO(0, 30)
FIFO almost full bits.
bool testWhiteRabbitStatus() const
Test White Rabbit status.
const JDAQFrameStatus & getDAQFrameStatus() const
Get DAQ frame status.
static const JBits DAQ_TDC(0, 30)
TDC high-rate veto status.
int getStatus() const
Get TDC and White Rabbit status.
ClassDefNV(JDAQFrameStatus, 1)