Belle II Software development
|
The PXD DAQ Packet Status class. More...
#include <PXDDAQPacketStatus.h>
Public Member Functions | |
PXDDAQPacketStatus () | |
Default constructor for the ROOT IO. | |
PXDDAQPacketStatus (unsigned short inx) | |
constructor setting the error mask and packet index. | |
virtual | ~PXDDAQPacketStatus () |
destructor | |
bool | isUsable () const |
Return Usability of data. | |
void | setErrorMask (const PXDErrorFlags &mask) |
Set Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE) | |
PXDErrorFlags | getErrorMask (void) const |
Return Error bit mask This is the OR of error masks of all sub-objects (DHC, DHE) | |
void | setCritErrorMask (const PXDErrorFlags &mask) |
Set Critical Error bit mask. | |
PXDErrorFlags | getCritErrorMask (void) const |
Return Critical Error bit mask. | |
void | Decide (void) |
Calculate the usability decision If any of the critical bits is set in the error mask the PXD data from this packet is not usable for analysis TODO Maybe this decision needs improvement. | |
void | setPktIndex (unsigned short inx) |
Set Packet index. | |
unsigned short | getPktIndex (void) const |
Return Packet index. | |
void | addDHC (PXDDAQDHCStatus &daqdhcstat) |
Add DHC information including its DHE tree. | |
template<class ... Args> | |
PXDDAQDHCStatus & | newDHC (Args &&... params) |
Add new DHC information. | |
std::vector< PXDDAQDHCStatus >::iterator | begin () |
iterator-based iteration for DHCs | |
std::vector< PXDDAQDHCStatus >::iterator | end () |
iterator-based iteration for DHCs | |
std::vector< PXDDAQDHCStatus >::const_iterator | cbegin () const |
const iterator-based iteration for DHCs | |
std::vector< PXDDAQDHCStatus >::const_iterator | cend () const |
const iterator-based iteration for DHCs | |
PXDDAQDHCStatus & | dhc_back () |
Returns PXDDAQDHCStatus for last DHC. | |
size_t | dhc_size () const |
Returns number of DHCs. | |
Private Member Functions | |
ClassDef (PXDDAQPacketStatus, 3) | |
necessary for ROOT | |
Private Attributes | |
PXDErrorFlags | m_errorMask |
errors found in this packets sensors | |
PXDErrorFlags | m_critErrorMask |
critical error mask | |
bool | m_usable |
data is useable. | |
unsigned short | m_index |
Packet index as delivered by DAQ. | |
std::vector< PXDDAQDHCStatus > | m_pxdDHC |
Vector of DHC informations beloning to this event. | |
The PXD DAQ Packet Status class.
This is a small class that records information about PXD DAQ packet status It will record if the data of DHC/DHE/sensors (readout by this packet) is useable.
Definition at line 30 of file PXDDAQPacketStatus.h.
|
inline |
Default constructor for the ROOT IO.
Definition at line 34 of file PXDDAQPacketStatus.h.
|
inlineexplicit |
constructor setting the error mask and packet index.
inx | packet index |
Definition at line 39 of file PXDDAQPacketStatus.h.
|
inlinevirtual |
|
inline |
Add DHC information including its DHE tree.
daqdhcstat | DHC Status Object |
Definition at line 91 of file PXDDAQPacketStatus.h.
|
inline |
|
inline |
|
inline |
|
inline |
Calculate the usability decision If any of the critical bits is set in the error mask the PXD data from this packet is not usable for analysis TODO Maybe this decision needs improvement.
Definition at line 76 of file PXDDAQPacketStatus.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return Error bit mask This is the OR of error masks of all sub-objects (DHC, DHE)
Definition at line 59 of file PXDDAQPacketStatus.h.
|
inline |
|
inline |
Return Usability of data.
Definition at line 47 of file PXDDAQPacketStatus.h.
|
inline |
Add new DHC information.
params | constructor parameter |
Definition at line 97 of file PXDDAQPacketStatus.h.
|
inline |
Set Critical Error bit mask.
mask | Bit Mask to set |
Definition at line 64 of file PXDDAQPacketStatus.h.
|
inline |
Set Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE)
mask | Bit Mask to set |
Definition at line 53 of file PXDDAQPacketStatus.h.
|
inline |
Set Packet index.
inx | packet index |
Definition at line 81 of file PXDDAQPacketStatus.h.
|
private |
critical error mask
Definition at line 119 of file PXDDAQPacketStatus.h.
|
private |
errors found in this packets sensors
Definition at line 118 of file PXDDAQPacketStatus.h.
|
private |
Packet index as delivered by DAQ.
Definition at line 122 of file PXDDAQPacketStatus.h.
|
private |
Vector of DHC informations beloning to this event.
Definition at line 125 of file PXDDAQPacketStatus.h.
|
private |
data is useable.
Definition at line 120 of file PXDDAQPacketStatus.h.