![]() |
Belle II Software
release-05-02-19
|
The PXD DAQ Status class. More...
#include <PXDDAQStatus.h>
Public Member Functions | |
PXDDAQStatus () | |
Default constructor for the ROOT IO. | |
PXDDAQStatus (PXDErrorFlags mask) | |
constructor setting the error mask. More... | |
const PXDDAQDHEStatus * | findDHE (const VxdID &id) const |
Return pointer to PXDDAQDHEStatus for the DHE connected to sensor with VxdID id If id not found, it returns nullptr! More... | |
bool | isUsable () const |
Return Usability of data. More... | |
void | setUnfiltered (bool b) |
Set flag that data was recorded without ROI filtering. More... | |
bool | isUnfiltered () const |
Return if data was recorded without ROI filtering. More... | |
void | setGated (bool b) |
Set flag that data was while detector was gated. More... | |
bool | isGated () const |
Return if data was recorded while detector was gated. More... | |
void | setErrorMask (PXDErrorFlags m) |
Set Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE) More... | |
void | addErrorMask (PXDErrorFlags m) |
Add (OR) Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE) More... | |
PXDErrorFlags | getErrorMask (void) const |
Return Error bit mask This is the OR of error masks of all sub-objects (DHC, DHE) More... | |
void | setCritErrorMask (PXDErrorFlags m) |
Set Critical Error bit mask. More... | |
PXDErrorFlags | getCritErrorMask (void) const |
Return Critical Error bit mask. More... | |
void | Decide (void) |
Calculate the usability decision If any of the critical bits is set in the error mask, or the sensor was gated, the PXD data is not usable for analysis TODO Maybe this decision needs improvement. | |
void | addPacket (PXDDAQPacketStatus &daqpktstat) |
Add Data packet information including its DHC/DHE tree. More... | |
template<class ... Args> | |
PXDDAQPacketStatus & | newPacket (Args &&... params) |
Add new Packet information. More... | |
std::map< VxdID, bool > | getUsable () const |
Return map of module usability. More... | |
std::vector< PXDDAQPacketStatus >::iterator | begin () |
iterator-based iteration for packets | |
std::vector< PXDDAQPacketStatus >::iterator | end () |
iterator-based iteration for packets | |
std::vector< PXDDAQPacketStatus >::const_iterator | cbegin () const |
const iterator-based iteration for packets | |
std::vector< PXDDAQPacketStatus >::const_iterator | cend () const |
const iterator-based iteration for packets | |
PXDDAQPacketStatus & | pkt_back () |
Returns PXDDAQPacketStatus for last packet in this event | |
size_t | pkt_size () const |
Returns number of packets in this event | |
Private Attributes | |
PXDErrorFlags | m_errorMask |
errors found in any packet/DHC/DHE | |
PXDErrorFlags | m_critErrorMask |
critical error mask | |
bool | m_usable |
Data is useable. | |
bool | m_gated |
Sensor was in gated mode. | |
bool | m_unfiltered |
Data was not ROI filtered. | |
std::vector< PXDDAQPacketStatus > | m_pxdPacket |
Vector of packet informations beloning to this event. | |
The PXD DAQ Status class.
This is a small class that records information about PXD DAQ status It will record if the data of PXD is useable. In a tree structure, additional information per packet, DHC and DHE is stored. This preserves information which would normally get lost during unpacking
Definition at line 45 of file PXDDAQStatus.h.
|
inlineexplicit |
constructor setting the error mask.
mask | Error mask |
Definition at line 54 of file PXDDAQStatus.h.
|
inline |
Add (OR) Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE)
m | Bit Mask to add (or) |
Definition at line 98 of file PXDDAQStatus.h.
|
inline |
Add Data packet information including its DHC/DHE tree.
daqpktstat | Packet Status Object |
Definition at line 126 of file PXDDAQStatus.h.
const PXDDAQDHEStatus * findDHE | ( | const VxdID & | id | ) | const |
Return pointer to PXDDAQDHEStatus for the DHE connected to sensor with VxdID id If id not found, it returns nullptr!
id | VxdID for required DHE |
Definition at line 17 of file PXDDAQStatus.cc.
|
inline |
|
inline |
Return Error bit mask This is the OR of error masks of all sub-objects (DHC, DHE)
Definition at line 104 of file PXDDAQStatus.h.
std::map< VxdID, bool > getUsable | ( | ) | const |
Return map of module usability.
Definition at line 31 of file PXDDAQStatus.cc.
|
inline |
Return if data was recorded while detector was gated.
Definition at line 86 of file PXDDAQStatus.h.
|
inline |
Return if data was recorded without ROI filtering.
Definition at line 76 of file PXDDAQStatus.h.
|
inline |
Return Usability of data.
Definition at line 66 of file PXDDAQStatus.h.
|
inline |
Add new Packet information.
params | constructor parameter |
Definition at line 132 of file PXDDAQStatus.h.
|
inline |
Set Critical Error bit mask.
m | Bit Mask to set |
Definition at line 109 of file PXDDAQStatus.h.
|
inline |
Set Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE)
m | Bit Mask to set |
Definition at line 92 of file PXDDAQStatus.h.
|
inline |
Set flag that data was while detector was gated.
b | gated |
Definition at line 81 of file PXDDAQStatus.h.
|
inline |
Set flag that data was recorded without ROI filtering.
b | unfiltered |
Definition at line 71 of file PXDDAQStatus.h.