11#include <vxd/dataobjects/VxdID.h>
12#include <pxd/dataobjects/PXDDAQDHPStatus.h>
13#include <pxd/dataobjects/PXDErrorFlags.h>
24 using Belle2::PXD::PXDError::PXDErrorFlags;
25 using Belle2::PXD::PXDError::EPXDErrNr;
140 m_pxdDHP.emplace_back(std::forward<Args>(params)...);
145 std::vector<PXDDAQDHPStatus>::iterator
begin() {
return m_pxdDHP.begin(); };
147 std::vector<PXDDAQDHPStatus>::iterator
end() {
return m_pxdDHP.end(); };
150 std::vector<PXDDAQDHPStatus>::const_iterator
cbegin()
const {
return m_pxdDHP.cbegin(); };
152 std::vector<PXDDAQDHPStatus>::const_iterator
cend()
const {
return m_pxdDHP.cend(); };
The PXD DAQ DHE Status class.
std::vector< PXDDAQDHPComMode > m_commode
Vector of Common Mode informations belonging to this event.
unsigned short getStartRow(void) const
get Trigger Start Row
PXDDAQDHPStatus & newDHP(Args &&... params)
New DHP information.
void setDHPFoundMask(unsigned short dhpmask)
set Mask for found DHPs with valid data
void markUnusable()
Mark Data in DHE as Unusable.
void setCritErrorMask(const PXDErrorFlags &mask)
Set Critical Error bit mask.
void setDHEID(VxdID id, int dheid)
Set VxdID and DHE ID of sensor.
void setErrorMask(const PXDErrorFlags &mask)
Set Error bit mask.
PXDErrorFlags m_critErrorMask
critical error mask
unsigned short m_sensorID
Sensor ID.
size_t cm_size() const
Returns number of Common Mode blocks in this event.
std::vector< PXDDAQDHPStatus >::iterator begin()
iterator-based iteration for DHPs
void setFrameNr(unsigned int fn)
set Readout Frame number
PXDDAQDHPComMode & cm_back()
Returns last Common Mode for this event.
uint32_t m_redCount
reduced byte count for monitoring
int get_cm_dhp(int i) const
Returns CM DHP ID at position i.
PXDErrorFlags getCritErrorMask(void) const
Return Critical Error bit mask.
uint32_t getRawCnt(void) const
Set Raw Data counter for reduction calculation.
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, ...
std::vector< PXDDAQDHPComMode >::iterator cm_end()
iterator-based iteration for Common Mode
ClassDef(PXDDAQDHEStatus, 8)
necessary for ROOT
int get_cm_row(int i) const
Returns CM row at position i.
PXDErrorFlags getErrorMask(void) const
Return Error bit mask.
std::vector< PXDDAQDHPStatus >::iterator end()
iterator-based iteration for DHPs
std::vector< PXDDAQDHPComMode >::iterator cm_begin()
iterator-based iteration for Common Mode
PXDErrorFlags m_errorMask
errors found in this DHE/sensor
unsigned short m_dheID
DHE ID as delivered by DAQ.
void Decide(void)
Calculate the usability decision If any of the critical bits is set in the error mask the PXD data fr...
PXDDAQDHEStatus()
Default constructor for the ROOT IO.
uint32_t m_errorinfo
erroinfo from the DHE END
std::vector< PXDDAQDHPStatus >::const_iterator cend() const
const iterator-based iteration for DHPs
int get_cm_value(int i) const
Returns CM value at position i.
unsigned short getDHPFoundMask(void)
get Mask for found DHPs with valid data
unsigned short getTriggerGate(void) const
get Trigger Gate
auto addCM(PXDDAQDHPComMode &daqcm)
Add Common Mode information.
PXDDAQDHPStatus & dhp_back()
Returns PXDDAQDHPStatus for the last DHP.
void setEndErrorInfo(uint32_t e)
set erroinfo from the DHE END
uint32_t m_rawCount
raw byte count for monitoring
unsigned short m_dhp_found_mask
Mask for DHP with valid data.
virtual ~PXDDAQDHEStatus()
destructor
void setTriggerGate(unsigned int tg)
set Trigger Gate
unsigned short getFrameNr(void) const
get Readout Frame number
std::vector< PXDDAQDHPStatus > m_pxdDHP
Vector of DHP informations belonging to this event.
void addDHP(PXDDAQDHPStatus &daqdhp)
Add DHP information.
uint32_t getRedCnt(void) const
Set Reduced Data counter for reduction calculation.
size_t dhp_size() const
Returns number of DHPs.
std::vector< PXDDAQDHPStatus >::const_iterator cbegin() const
const iterator-based iteration for DHPs
unsigned short m_triggerGate
Trigger Gate ("Startrow") from DHE header.
void getCounters(uint32_t &raw, uint32_t &red) const
Get Data counters for reduction calculation.
VxdID getSensorID(void) const
Get VxdID of sensor.
unsigned short m_frameNr
Frame number (low bits) from DHE header.
unsigned short getDHEID(void) const
Get DHE ID of sensor.
void setCounters(uint32_t raw, uint32_t red)
Set Data counters for reduction calculation.
bool isUsable() const
Return Usability of data.
uint32_t getEndErrorInfo(void) const
get erroinfo from the DHE END
bool m_usable
data is useable.
The PXD DAQ DHP Status class.
Class to uniquely identify a any structure of the PXD and SVD.
std::tuple< uint8_t, uint16_t, uint8_t > PXDDAQDHPComMode
tuple of Chip ID (2 bit), Row (10 bit), Common Mode (6 bit)
Abstract base class for different kinds of events.