Belle II Software development
|
The PXD DAQ DHC Status class. More...
#include <PXDDAQDHCStatus.h>
Public Member Functions | |
PXDDAQDHCStatus () | |
Default constructor for the ROOT IO. | |
PXDDAQDHCStatus (int dhcid, PXDErrorFlags &mask) | |
constructor setting the error mask, dhcid, raw and reduced data counters | |
virtual | ~PXDDAQDHCStatus () |
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 DHC is not usable for analysis TODO Maybe this decision needs improvement. | |
unsigned short | getDHCID (void) const |
Get DHC ID. | |
void | setDHCID (int dhcid) |
Set DHC ID. | |
void | setCounters (uint32_t raw, uint32_t red) |
Set Data counters for reduction calculation. | |
void | getCounters (uint32_t &raw, uint32_t &red) const |
Get Data counters for reduction calculation. | |
uint32_t | getRawCnt (void) const |
Set Raw Data counter for reduction calculation. | |
uint32_t | getRedCnt (void) const |
Set Reduced Data counter for reduction calculation. | |
void | setEndErrorInfo (uint32_t e) |
set errorinfo from the DHC END | |
uint32_t | getEndErrorInfo (void) const |
get errorinfo from the DHC END | |
void | setGatedFlag (bool gm) |
set gating info from the DHC END | |
bool | getGatedFlag (void) const |
get gating info from the DHC END | |
void | setGatedHER (bool isher) |
set HER/LER gating info from the DHC END | |
bool | getGatedHER (void) const |
get HER/LER gating info from the DHC END | |
void | addDHE (PXDDAQDHEStatus &daqdhe) |
Add DHE information. | |
template<class ... Args> | |
PXDDAQDHEStatus & | newDHE (Args &&... params) |
Add new DHE information. | |
std::vector< PXDDAQDHEStatus >::iterator | begin () |
iterator-based iteration for DHEs | |
std::vector< PXDDAQDHEStatus >::iterator | end () |
iterator-based iteration for DHEs | |
std::vector< PXDDAQDHEStatus >::const_iterator | cbegin () const |
const iterator-based iteration for DHEs | |
std::vector< PXDDAQDHEStatus >::const_iterator | cend () const |
const iterator-based iteration for DHEs | |
PXDDAQDHEStatus & | dhe_back () |
Returns PXDDAQDHEStatus for last DHE. | |
size_t | dhe_size () const |
Returns number of DHEs. | |
Private Member Functions | |
ClassDef (PXDDAQDHCStatus, 5) | |
necessary for ROOT | |
Private Attributes | |
PXDErrorFlags | m_errorMask |
errors found in this DHC/sensor | |
PXDErrorFlags | m_critErrorMask |
critical error mask | |
bool | m_usable |
data is useable. | |
unsigned short | m_dhcID |
DHC ID as delivered by DAQ. | |
uint32_t | m_rawCount |
raw byte count for monitoring | |
uint32_t | m_redCount |
reduced byte count for monitoring | |
uint32_t | m_errorinfo |
errorinfo from the DHC END | |
bool | m_gated_mode {false} |
gated info from the DHC START | |
bool | m_gated_her {false} |
gated info from the DHC START - true HER, 0 LER | |
std::vector< PXDDAQDHEStatus > | m_pxdDHE |
Vector of DHE informations belonging to this event. | |
The PXD DAQ DHC Status class.
This is a small class that records information about PXD DAQ DHC status It will record if the data of sensors (readout by this DHC) is useable.
Definition at line 31 of file PXDDAQDHCStatus.h.
|
inline |
Default constructor for the ROOT IO.
Definition at line 35 of file PXDDAQDHCStatus.h.
|
inlineexplicit |
constructor setting the error mask, dhcid, raw and reduced data counters
dhcid | DHC id |
mask | error mask |
Definition at line 41 of file PXDDAQDHCStatus.h.
|
inlinevirtual |
|
inline |
Add DHE information.
daqdhe | DHE Status Object |
Definition at line 112 of file PXDDAQDHCStatus.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 DHC is not usable for analysis TODO Maybe this decision needs improvement.
Definition at line 79 of file PXDDAQDHCStatus.h.
|
inline |
|
inline |
|
inline |
|
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 62 of file PXDDAQDHCStatus.h.
|
inline |
get gating info from the DHC END
Definition at line 102 of file PXDDAQDHCStatus.h.
|
inline |
get HER/LER gating info from the DHC END
Definition at line 106 of file PXDDAQDHCStatus.h.
|
inline |
|
inline |
Set Reduced Data counter for reduction calculation.
Definition at line 93 of file PXDDAQDHCStatus.h.
|
inline |
Return Usability of data.
Definition at line 50 of file PXDDAQDHCStatus.h.
|
inline |
Add new DHE information.
params | constructor parameter |
Definition at line 118 of file PXDDAQDHCStatus.h.
|
inline |
|
inline |
Set Critical Error bit mask.
mask | Bit Mask to set |
Definition at line 67 of file PXDDAQDHCStatus.h.
|
inline |
|
inline |
set errorinfo from the DHC END
Definition at line 95 of file PXDDAQDHCStatus.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 56 of file PXDDAQDHCStatus.h.
|
inline |
set gating info from the DHC END
Definition at line 100 of file PXDDAQDHCStatus.h.
|
inline |
set HER/LER gating info from the DHC END
Definition at line 104 of file PXDDAQDHCStatus.h.
|
private |
critical error mask
Definition at line 140 of file PXDDAQDHCStatus.h.
|
private |
DHC ID as delivered by DAQ.
Definition at line 143 of file PXDDAQDHCStatus.h.
|
private |
errorinfo from the DHC END
Definition at line 146 of file PXDDAQDHCStatus.h.
|
private |
errors found in this DHC/sensor
Definition at line 139 of file PXDDAQDHCStatus.h.
|
private |
gated info from the DHC START - true HER, 0 LER
Definition at line 148 of file PXDDAQDHCStatus.h.
|
private |
gated info from the DHC START
Definition at line 147 of file PXDDAQDHCStatus.h.
|
private |
Vector of DHE informations belonging to this event.
Definition at line 151 of file PXDDAQDHCStatus.h.
|
private |
raw byte count for monitoring
Definition at line 144 of file PXDDAQDHCStatus.h.
|
private |
reduced byte count for monitoring
Definition at line 145 of file PXDDAQDHCStatus.h.
|
private |
data is useable.
Definition at line 141 of file PXDDAQDHCStatus.h.