Belle II Software development
|
The PXD DAQ Status class. More...
#include <PXDDAQStatus.h>
Public Member Functions | |
PXDDAQStatus () | |
Default constructor for the ROOT IO. | |
PXDDAQStatus (const PXDErrorFlags &mask) | |
constructor setting the error mask. | |
virtual | ~PXDDAQStatus () |
destructor | |
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! | |
bool | isUsable () const |
Return Usability of data. | |
void | setUnfiltered (bool b) |
Set flag that data was recorded without ROI filtering. | |
bool | isUnfiltered () const |
Return if data was recorded without ROI filtering. | |
void | setGated (bool b) |
Set flag that data was while detector was gated. | |
bool | isGated () const |
Return if data was recorded while detector was gated. | |
void | setErrorMask (const PXDErrorFlags &mask) |
Set Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE) | |
void | addErrorMask (const PXDErrorFlags &mask) |
Add (OR) 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, 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. | |
template<class ... Args> | |
PXDDAQPacketStatus & | newPacket (Args &&... params) |
Add new Packet information. | |
std::map< VxdID, bool > | getUsable () const |
Return map of module usability. | |
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 33 of file PXDDAQStatus.h.
|
inline |
Default constructor for the ROOT IO.
Definition at line 37 of file PXDDAQStatus.h.
|
inlineexplicit |
constructor setting the error mask.
mask | Error mask |
Definition at line 42 of file PXDDAQStatus.h.
|
inlinevirtual |
|
inline |
Add (OR) Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE)
mask | Bit Mask to add (or) |
Definition at line 89 of file PXDDAQStatus.h.
|
inline |
Add Data packet information including its DHC/DHE tree.
daqpktstat | Packet Status Object |
Definition at line 117 of file PXDDAQStatus.h.
|
inline |
|
inline |
|
inline |
|
inline |
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.
Definition at line 112 of file PXDDAQStatus.h.
|
inline |
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 15 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 95 of file PXDDAQStatus.h.
std::map< VxdID, bool > getUsable | ( | ) | const |
Return map of module usability.
Definition at line 29 of file PXDDAQStatus.cc.
|
inline |
Return if data was recorded while detector was gated.
Definition at line 77 of file PXDDAQStatus.h.
|
inline |
Return if data was recorded without ROI filtering.
Definition at line 67 of file PXDDAQStatus.h.
|
inline |
Return Usability of data.
Definition at line 57 of file PXDDAQStatus.h.
|
inline |
Add new Packet information.
params | constructor parameter |
Definition at line 123 of file PXDDAQStatus.h.
|
inline |
Returns PXDDAQPacketStatus for last packet in this event
Definition at line 145 of file PXDDAQStatus.h.
|
inline |
|
inline |
Set Critical Error bit mask.
mask | Bit Mask to set |
Definition at line 100 of file PXDDAQStatus.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 83 of file PXDDAQStatus.h.
|
inline |
Set flag that data was while detector was gated.
b | gated |
Definition at line 72 of file PXDDAQStatus.h.
|
inline |
Set flag that data was recorded without ROI filtering.
b | unfiltered |
Definition at line 62 of file PXDDAQStatus.h.
|
private |
critical error mask
Definition at line 151 of file PXDDAQStatus.h.
|
private |
errors found in any packet/DHC/DHE
Definition at line 150 of file PXDDAQStatus.h.
|
private |
Sensor was in gated mode.
Definition at line 154 of file PXDDAQStatus.h.
|
private |
Vector of packet informations beloning to this event.
Definition at line 158 of file PXDDAQStatus.h.
|
private |
Data was not ROI filtered.
Definition at line 155 of file PXDDAQStatus.h.
|
private |
Data is useable.
Definition at line 153 of file PXDDAQStatus.h.