DAQ frame status.
More...
#include <JDAQFrameStatus.hh>
DAQ frame status.
Definition at line 17 of file JDAQFrameStatus.hh.
◆ JDAQFrameStatus() [1/2]
KM3NETDAQ::JDAQFrameStatus::JDAQFrameStatus |
( |
| ) |
|
|
inline |
◆ JDAQFrameStatus() [2/2]
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 45 of file JDAQFrameStatus.hh.
◆ getInstance()
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 65 of file JDAQFrameStatus.hh.
◆ getDAQFrameStatus()
const JDAQFrameStatus& KM3NETDAQ::JDAQFrameStatus::getDAQFrameStatus |
( |
| ) |
const |
|
inline |
Get DAQ frame status.
- Returns
- DAQ frame status
Definition at line 80 of file JDAQFrameStatus.hh.
82 return static_cast<const JDAQFrameStatus&>(*
this);
◆ setDAQFrameStatus()
void KM3NETDAQ::JDAQFrameStatus::setDAQFrameStatus |
( |
const JDAQFrameStatus & |
status | ) |
|
|
inline |
Set DAQ frame status.
- Parameters
-
Definition at line 91 of file JDAQFrameStatus.hh.
93 static_cast<JDAQFrameStatus&>(*
this) =
status;
◆ getDAQStatus()
int KM3NETDAQ::JDAQFrameStatus::getDAQStatus |
( |
| ) |
const |
|
inline |
◆ getStatus()
int KM3NETDAQ::JDAQFrameStatus::getStatus |
( |
| ) |
const |
|
inline |
◆ getFIFOStatus()
int KM3NETDAQ::JDAQFrameStatus::getFIFOStatus |
( |
| ) |
const |
|
inline |
◆ testDAQStatus()
bool KM3NETDAQ::JDAQFrameStatus::testDAQStatus |
( |
| ) |
const |
|
inline |
Test DAQ status of packets.
- Returns
- true if okay; else false
Definition at line 135 of file JDAQFrameStatus.hh.
◆ testStatus()
bool KM3NETDAQ::JDAQFrameStatus::testStatus |
( |
| ) |
const |
|
inline |
Test TDC and White Rabbit status.
- Returns
- true if okay; else false
Definition at line 146 of file JDAQFrameStatus.hh.
◆ getUDPNumberOfReceivedPackets()
int KM3NETDAQ::JDAQFrameStatus::getUDPNumberOfReceivedPackets |
( |
| ) |
const |
|
inline |
Get number of received UDP packets.
- Returns
- UDP received packets
Definition at line 157 of file JDAQFrameStatus.hh.
◆ getUDPMaximalSequenceNumber()
int KM3NETDAQ::JDAQFrameStatus::getUDPMaximalSequenceNumber |
( |
| ) |
const |
|
inline |
Get maximal sequence number of UDP packet.
- Returns
- UDP sequence number
Definition at line 168 of file JDAQFrameStatus.hh.
◆ testWhiteRabbitStatus()
bool KM3NETDAQ::JDAQFrameStatus::testWhiteRabbitStatus |
( |
| ) |
const |
|
inline |
Test White Rabbit status.
- Returns
- true if okay; else false
Definition at line 179 of file JDAQFrameStatus.hh.
◆ testTDCStatus()
bool KM3NETDAQ::JDAQFrameStatus::testTDCStatus |
( |
| ) |
const |
|
inline |
◆ testHighRateVeto() [1/2]
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 201 of file JDAQFrameStatus.hh.
◆ testHighRateVeto() [2/2]
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 213 of file JDAQFrameStatus.hh.
◆ countHighRateVeto()
int KM3NETDAQ::JDAQFrameStatus::countHighRateVeto |
( |
| ) |
const |
|
inline |
Count high-rate veto status.
- Returns
- number of the TDCs with high-rate veto
Definition at line 224 of file JDAQFrameStatus.hh.
◆ testFIFOStatus() [1/2]
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 245 of file JDAQFrameStatus.hh.
◆ testFIFOStatus() [2/2]
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 257 of file JDAQFrameStatus.hh.
◆ countFIFOStatus()
int KM3NETDAQ::JDAQFrameStatus::countFIFOStatus |
( |
| ) |
const |
|
inline |
Count FIFO status.
- Returns
- number of the TDCs with FIFO almost full
Definition at line 268 of file JDAQFrameStatus.hh.
◆ countActiveChannels()
int KM3NETDAQ::JDAQFrameStatus::countActiveChannels |
( |
| ) |
const |
|
inline |
Count active channels.
- Returns
- number of TDCs without high rate veto or FIFO almost full
Definition at line 287 of file JDAQFrameStatus.hh.
◆ hasUDPTrailer()
bool KM3NETDAQ::JDAQFrameStatus::hasUDPTrailer |
( |
| ) |
const |
|
inline |
Get UDP trailer status.
- Returns
- true if UDP trailer present; else false
Definition at line 309 of file JDAQFrameStatus.hh.
◆ setHighRateVeto()
void KM3NETDAQ::JDAQFrameStatus::setHighRateVeto |
( |
const int |
tdc, |
|
|
const bool |
value |
|
) |
| |
|
inline |
◆ ClassDefNV()
◆ getSizeof
Definition of method to get size of data type.
This method should be specialised for each desired data type with fixed length.
- Returns
- number of bytes
◆ operator>>
Read DAQ frame status from input.
- Parameters
-
in | reader |
status | DAQ frame status |
- Returns
- reader
Definition at line 36 of file JDAQFrameStatusIO.hh.
◆ operator<<
Write DAQ frame status to output.
- Parameters
-
out | writer |
status | DAQ frame status |
- Returns
- writer
Definition at line 55 of file JDAQFrameStatusIO.hh.
◆ daq
int KM3NETDAQ::JDAQFrameStatus::daq |
|
protected |
◆ status
int KM3NETDAQ::JDAQFrameStatus::status |
|
protected |
◆ fifo
int KM3NETDAQ::JDAQFrameStatus::fifo |
|
protected |
◆ status_3
int KM3NETDAQ::JDAQFrameStatus::status_3 |
|
protected |
◆ status_4
int KM3NETDAQ::JDAQFrameStatus::status_4 |
|
protected |
The documentation for this class was generated from the following file:
bool testHighRateVeto() const
Test high-rate veto status.
static const JBits DAQ_UDP_RECEIVED_PACKETS(0, 15)
Mask of UDP received packets.
bool has(const int mask) const
Test bit.
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.
static const JBit DAQ_UDP_TRAILER(31)
UDP trailer.
int getUDPMaximalSequenceNumber() const
Get maximal sequence number of UDP packet.
bool hasUDPTrailer() const
Get UDP trailer status.
int getUDPNumberOfReceivedPackets() const
Get number of received UDP packets.
bool testFIFOStatus() const
Test FIFO status.
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.
static const JBits DAQ_UDP_SEQUENCE_NUMBER(16, 31)
Mask of UDP sequence number.
bool testTDCStatus() const
Test TDC status.
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.
static const JBits DAQ_TDC(0, 30)
TDC high-rate veto status.