DAQ frame status.
More...
#include <JDAQFrameStatus.hh>
DAQ frame status.
Definition at line 23 of file JDAQFrameStatus.hh.
KM3NETDAQ::JDAQFrameStatus::JDAQFrameStatus |
( |
| ) |
|
|
inline |
KM3NETDAQ::JDAQFrameStatus::JDAQFrameStatus |
( |
const int |
__daq, |
|
|
const int |
__status, |
|
|
const int |
__fifo, |
|
|
const int |
__status_3 = 0 , |
|
|
const int |
__status_4 = 0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
__daq | DAQ status |
__status | TDC status |
__fifo | FIFO status |
__status_3 | spare |
__status_4 | spare |
Definition at line 46 of file JDAQFrameStatus.hh.
Get reference to unique instance of this class object.
This instance has default values which correspond to a valid DAQ frame status.
- Returns
- reference to this class object
Definition at line 66 of file JDAQFrameStatus.hh.
static const JBits DAQ_UDP_RECEIVED_PACKETS(0, 15)
Mask of UDP received packets.
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 JBits DAQ_FIFO(0, 30)
FIFO almost full bits.
static const JBit DAQ_UDP_TRAILER(31)
UDP trailer.
static const JBit DAQ_WHITE_RABBIT(31)
White Rabbit status.
static const JBits DAQ_UDP_SEQUENCE_NUMBER(16, 31)
Mask of UDP sequence number.
JDAQFrameStatus()
Default constructor.
const JDAQFrameStatus& KM3NETDAQ::JDAQFrameStatus::getDAQFrameStatus |
( |
| ) |
const |
|
inline |
Get DAQ frame status.
- Returns
- DAQ frame status
Definition at line 81 of file JDAQFrameStatus.hh.
JDAQFrameStatus()
Default constructor.
void KM3NETDAQ::JDAQFrameStatus::setDAQFrameStatus |
( |
const JDAQFrameStatus & |
status | ) |
|
|
inline |
Set DAQ frame status.
- Parameters
-
Definition at line 92 of file JDAQFrameStatus.hh.
JDAQFrameStatus()
Default constructor.
int KM3NETDAQ::JDAQFrameStatus::getDAQStatus |
( |
| ) |
const |
|
inline |
int KM3NETDAQ::JDAQFrameStatus::getStatus |
( |
| ) |
const |
|
inline |
int KM3NETDAQ::JDAQFrameStatus::getFIFOStatus |
( |
| ) |
const |
|
inline |
bool KM3NETDAQ::JDAQFrameStatus::testDAQStatus |
( |
| ) |
const |
|
inline |
Test DAQ status of packets.
- Returns
- true if okay; else false
Definition at line 136 of file JDAQFrameStatus.hh.
bool hasUDPTrailer() const
Get UDP trailer status.
int getUDPNumberOfReceivedPackets() const
Get number of received UDP packets.
int getUDPMaximalSequenceNumber() const
Get maximal sequence number of UDP packet.
bool KM3NETDAQ::JDAQFrameStatus::testStatus |
( |
| ) |
const |
|
inline |
Test TDC and White Rabbit status.
- Returns
- true if okay; else false
Definition at line 147 of file JDAQFrameStatus.hh.
bool testTDCStatus() const
Test TDC status.
bool testWhiteRabbitStatus() const
Test White Rabbit status.
int KM3NETDAQ::JDAQFrameStatus::getUDPNumberOfReceivedPackets |
( |
| ) |
const |
|
inline |
Get number of received UDP packets.
- Returns
- UDP received packets
Definition at line 158 of file JDAQFrameStatus.hh.
static const JBits DAQ_UDP_RECEIVED_PACKETS(0, 15)
Mask of UDP received packets.
int read(const int mask) const
Read given bit mask as value.
int KM3NETDAQ::JDAQFrameStatus::getUDPMaximalSequenceNumber |
( |
| ) |
const |
|
inline |
Get maximal sequence number of UDP packet.
- Returns
- UDP sequence number
Definition at line 169 of file JDAQFrameStatus.hh.
int read(const int mask) const
Read given bit mask as value.
static const JBits DAQ_UDP_SEQUENCE_NUMBER(16, 31)
Mask of UDP sequence number.
bool KM3NETDAQ::JDAQFrameStatus::testWhiteRabbitStatus |
( |
| ) |
const |
|
inline |
Test White Rabbit status.
- Returns
- true if okay; else false
Definition at line 180 of file JDAQFrameStatus.hh.
bool has(const int mask) const
Test bit.
static const JBit DAQ_WHITE_RABBIT(31)
White Rabbit status.
bool KM3NETDAQ::JDAQFrameStatus::testTDCStatus |
( |
| ) |
const |
|
inline |
Test TDC status.
- Returns
- true if okay; else false
Definition at line 191 of file JDAQFrameStatus.hh.
bool testHighRateVeto() const
Test high-rate veto status.
bool KM3NETDAQ::JDAQFrameStatus::testHighRateVeto |
( |
| ) |
const |
|
inline |
Test high-rate veto status.
- Returns
- true if one of the TDCs is high-rate vetoed; else false
Definition at line 202 of file JDAQFrameStatus.hh.
bool has(const int mask) const
Test bit mask.
static const JBits DAQ_TDC(0, 30)
TDC high-rate veto status.
bool KM3NETDAQ::JDAQFrameStatus::testHighRateVeto |
( |
const int |
tdc | ) |
const |
|
inline |
Test high-rate veto status.
- Parameters
-
- Returns
- true if TDC is high-rate vetoed; else false
Definition at line 214 of file JDAQFrameStatus.hh.
216 return JBit(tdc).has(this->
status);
int KM3NETDAQ::JDAQFrameStatus::countHighRateVeto |
( |
| ) |
const |
|
inline |
Count high-rate veto status.
- Returns
- number of the TDCs with high-rate veto
Definition at line 225 of file JDAQFrameStatus.hh.
231 if (JBit(pmt).has(this->
status)) {
bool testHighRateVeto() const
Test high-rate veto status.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
bool KM3NETDAQ::JDAQFrameStatus::testFIFOStatus |
( |
| ) |
const |
|
inline |
Test FIFO status.
- Returns
- true if one of the TDCs has FIFO almost full; else false
Definition at line 246 of file JDAQFrameStatus.hh.
static const JBits DAQ_FIFO(0, 30)
FIFO almost full bits.
bool has(const int mask) const
Test bit mask.
bool KM3NETDAQ::JDAQFrameStatus::testFIFOStatus |
( |
const int |
tdc | ) |
const |
|
inline |
Test FIFO status.
- Parameters
-
- Returns
- true if FIFO is almost full; else false
Definition at line 258 of file JDAQFrameStatus.hh.
260 return JBit(tdc).has(this->
fifo);
int KM3NETDAQ::JDAQFrameStatus::countFIFOStatus |
( |
| ) |
const |
|
inline |
Count FIFO status.
- Returns
- number of the TDCs with FIFO almost full
Definition at line 269 of file JDAQFrameStatus.hh.
275 if (JBit(pmt).has(this->
fifo)) {
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
bool testFIFOStatus() const
Test FIFO status.
bool KM3NETDAQ::JDAQFrameStatus::hasUDPTrailer |
( |
| ) |
const |
|
inline |
Get UDP trailer status.
- Returns
- true if UDP trailer present; else false
Definition at line 290 of file JDAQFrameStatus.hh.
static const JBit DAQ_UDP_TRAILER(31)
UDP trailer.
bool has(const int mask) const
Test bit.
void KM3NETDAQ::JDAQFrameStatus::setHighRateVeto |
( |
const int |
tdc, |
|
|
const bool |
value |
|
) |
| |
|
inline |
static int KM3NETDAQ::JDAQFrameStatus::sizeOf |
( |
| ) |
|
|
inlinestatic |
Get size of object.
- Returns
- number of bytes
Definition at line 351 of file JDAQFrameStatus.hh.
353 return (
sizeof(
int) +
Read DAQ frame status from input.
- Parameters
-
- Returns
- JReader
Definition at line 315 of file JDAQFrameStatus.hh.
Write DAQ frame status to output.
- Parameters
-
- Returns
- JWriter
Definition at line 334 of file JDAQFrameStatus.hh.
int KM3NETDAQ::JDAQFrameStatus::daq |
|
protected |
int KM3NETDAQ::JDAQFrameStatus::status |
|
protected |
int KM3NETDAQ::JDAQFrameStatus::fifo |
|
protected |
int KM3NETDAQ::JDAQFrameStatus::status_3 |
|
protected |
int KM3NETDAQ::JDAQFrameStatus::status_4 |
|
protected |
The documentation for this class was generated from the following file: