Belle II Software development
|
The PXD DAQ DHE Status class. More...
#include <PXDDAQDHEStatus.h>
Public Member Functions | |
PXDDAQDHEStatus () | |
Default constructor for the ROOT IO. | |
PXDDAQDHEStatus (VxdID id, int dheid, const PXDErrorFlags &mask, unsigned short tg, unsigned short fn) | |
constructor setting the error mask, dheid, raw and reduced data counters, ... | |
virtual | ~PXDDAQDHEStatus () |
destructor | |
bool | isUsable () const |
Return Usability of data. | |
void | markUnusable () |
Mark Data in DHE as Unusable. | |
void | setErrorMask (const PXDErrorFlags &mask) |
Set Error bit mask. | |
PXDErrorFlags | getErrorMask (void) const |
Return Error bit mask. | |
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 DHE is not usable for analysis TODO Maybe this decision needs improvement. | |
void | setDHEID (VxdID id, int dheid) |
Set VxdID and DHE ID of sensor. | |
unsigned short | getDHEID (void) const |
Get DHE ID of sensor. | |
VxdID | getSensorID (void) const |
Get VxdID of sensor. | |
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 | setTriggerGate (unsigned int tg) |
set Trigger Gate | |
unsigned short | getTriggerGate (void) const |
get Trigger Gate | |
unsigned short | getStartRow (void) const |
get Trigger Start Row | |
void | setFrameNr (unsigned int fn) |
set Readout Frame number | |
unsigned short | getFrameNr (void) const |
get Readout Frame number | |
unsigned short | getDHPFoundMask (void) |
get Mask for found DHPs with valid data | |
void | setDHPFoundMask (unsigned short dhpmask) |
set Mask for found DHPs with valid data | |
void | setEndErrorInfo (uint32_t e) |
set erroinfo from the DHE END | |
uint32_t | getEndErrorInfo (void) const |
get erroinfo from the DHE END | |
void | addDHP (PXDDAQDHPStatus &daqdhp) |
Add DHP information. | |
template<class ... Args> | |
PXDDAQDHPStatus & | newDHP (Args &&... params) |
New DHP information. | |
std::vector< PXDDAQDHPStatus >::iterator | begin () |
iterator-based iteration for DHPs | |
std::vector< PXDDAQDHPStatus >::iterator | end () |
iterator-based iteration for DHPs | |
std::vector< PXDDAQDHPStatus >::const_iterator | cbegin () const |
const iterator-based iteration for DHPs | |
std::vector< PXDDAQDHPStatus >::const_iterator | cend () const |
const iterator-based iteration for DHPs | |
PXDDAQDHPStatus & | dhp_back () |
Returns PXDDAQDHPStatus for the last DHP. | |
size_t | dhp_size () const |
Returns number of DHPs. | |
auto | addCM (PXDDAQDHPComMode &daqcm) |
Add Common Mode information. | |
std::vector< PXDDAQDHPComMode >::iterator | cm_begin () |
iterator-based iteration for Common Mode | |
std::vector< PXDDAQDHPComMode >::iterator | cm_end () |
iterator-based iteration for Common Mode | |
PXDDAQDHPComMode & | cm_back () |
Returns last Common Mode for this event. | |
size_t | cm_size () const |
Returns number of Common Mode blocks in this event. | |
int | get_cm_dhp (int i) const |
Returns CM DHP ID at position i. | |
int | get_cm_row (int i) const |
Returns CM row at position i. | |
int | get_cm_value (int i) const |
Returns CM value at position i. | |
Private Member Functions | |
ClassDef (PXDDAQDHEStatus, 8) | |
necessary for ROOT | |
Private Attributes | |
PXDErrorFlags | m_errorMask |
errors found in this DHE/sensor | |
PXDErrorFlags | m_critErrorMask |
critical error mask | |
bool | m_usable |
data is useable. | |
unsigned short | m_sensorID |
Sensor ID. | |
unsigned short | m_dheID |
DHE ID as delivered by DAQ. | |
unsigned short | m_triggerGate |
Trigger Gate ("Startrow") from DHE header. | |
unsigned short | m_frameNr |
Frame number (low bits) from DHE header. | |
unsigned short | m_dhp_found_mask |
Mask for DHP with valid data. | |
uint32_t | m_rawCount |
raw byte count for monitoring | |
uint32_t | m_redCount |
reduced byte count for monitoring | |
uint32_t | m_errorinfo |
erroinfo from the DHE END | |
std::vector< PXDDAQDHPStatus > | m_pxdDHP |
Vector of DHP informations belonging to this event. | |
std::vector< PXDDAQDHPComMode > | m_commode |
Vector of Common Mode informations belonging to this event. | |
The PXD DAQ DHE Status class.
This is a small class that records information about PXD DAQ DHE status It will record if the data of this sensor (readout by this DHE) is useable.
Definition at line 34 of file PXDDAQDHEStatus.h.
|
inline |
Default constructor for the ROOT IO.
Definition at line 38 of file PXDDAQDHEStatus.h.
|
inline |
constructor setting the error mask, dheid, raw and reduced data counters, ...
id | VxdID of sensor |
dheid | DHEID of sensor |
mask | Error mask |
tg | Trigger Gate (Start Row, Trigger Offset) |
fn | (absolute) Readout Frame Number, lower bits only |
Definition at line 49 of file PXDDAQDHEStatus.h.
|
inlinevirtual |
|
inline |
Add Common Mode information.
daqcm | DHP Common Mode object |
Definition at line 161 of file PXDDAQDHEStatus.h.
|
inline |
Add DHP information.
daqdhp | DHP Status Object |
Definition at line 132 of file PXDDAQDHEStatus.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns number of Common Mode blocks in this event.
Definition at line 170 of file PXDDAQDHEStatus.h.
|
inline |
Calculate the usability decision If any of the critical bits is set in the error mask the PXD data from this DHE is not usable for analysis TODO Maybe this decision needs improvement.
Definition at line 90 of file PXDDAQDHEStatus.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set Reduced Data counter for reduction calculation.
Definition at line 106 of file PXDDAQDHEStatus.h.
|
inline |
|
inline |
|
inline |
|
inline |
Return Usability of data.
Definition at line 60 of file PXDDAQDHEStatus.h.
|
inline |
|
inline |
New DHP information.
params | constructor parameter |
Definition at line 138 of file PXDDAQDHEStatus.h.
|
inline |
|
inline |
Set Critical Error bit mask.
mask | Bit Mask to set |
Definition at line 78 of file PXDDAQDHEStatus.h.
|
inline |
|
inline |
set Mask for found DHPs with valid data
Definition at line 122 of file PXDDAQDHEStatus.h.
|
inline |
set erroinfo from the DHE END
Definition at line 125 of file PXDDAQDHEStatus.h.
|
inline |
Set Error bit mask.
mask | Bit Mask to set |
Definition at line 69 of file PXDDAQDHEStatus.h.
|
inline |
|
inline |
|
private |
Vector of Common Mode informations belonging to this event.
Definition at line 196 of file PXDDAQDHEStatus.h.
|
private |
critical error mask
Definition at line 180 of file PXDDAQDHEStatus.h.
|
private |
DHE ID as delivered by DAQ.
Definition at line 184 of file PXDDAQDHEStatus.h.
|
private |
Mask for DHP with valid data.
Definition at line 187 of file PXDDAQDHEStatus.h.
|
private |
erroinfo from the DHE END
Definition at line 190 of file PXDDAQDHEStatus.h.
|
private |
errors found in this DHE/sensor
Definition at line 179 of file PXDDAQDHEStatus.h.
|
private |
Frame number (low bits) from DHE header.
Definition at line 186 of file PXDDAQDHEStatus.h.
|
private |
Vector of DHP informations belonging to this event.
Definition at line 193 of file PXDDAQDHEStatus.h.
|
private |
raw byte count for monitoring
Definition at line 188 of file PXDDAQDHEStatus.h.
|
private |
reduced byte count for monitoring
Definition at line 189 of file PXDDAQDHEStatus.h.
|
private |
Sensor ID.
Definition at line 183 of file PXDDAQDHEStatus.h.
|
private |
Trigger Gate ("Startrow") from DHE header.
Definition at line 185 of file PXDDAQDHEStatus.h.
|
private |
data is useable.
Definition at line 181 of file PXDDAQDHEStatus.h.