11#include <pxd/dataobjects/PXDDAQDHCStatus.h>
12#include <pxd/dataobjects/PXDErrorFlags.h>
21 using Belle2::PXD::PXDError::PXDErrorFlags;
99 m_pxdDHC.emplace_back(std::forward<Args>(params)...);
104 std::vector<PXDDAQDHCStatus>::iterator
begin() {
return m_pxdDHC.begin(); };
106 std::vector<PXDDAQDHCStatus>::iterator
end() {
return m_pxdDHC.end(); };
109 std::vector<PXDDAQDHCStatus>::const_iterator
cbegin()
const {
return m_pxdDHC.cbegin(); };
111 std::vector<PXDDAQDHCStatus>::const_iterator
cend()
const {
return m_pxdDHC.cend(); };
The PXD DAQ DHC Status class.
The PXD DAQ Packet Status class.
std::vector< PXDDAQDHCStatus > m_pxdDHC
Vector of DHC informations beloning to this event.
unsigned short m_index
Packet index as delivered by DAQ.
unsigned short getPktIndex(void) const
Return Packet index.
void setCritErrorMask(const PXDErrorFlags &mask)
Set Critical Error bit mask.
PXDDAQPacketStatus(unsigned short inx)
constructor setting the error mask and packet index.
void setErrorMask(const PXDErrorFlags &mask)
Set Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE)
PXDErrorFlags m_critErrorMask
critical error mask
std::vector< PXDDAQDHCStatus >::iterator end()
iterator-based iteration for DHCs
PXDDAQPacketStatus()
Default constructor for the ROOT IO.
size_t dhc_size() const
Returns number of DHCs.
PXDErrorFlags getCritErrorMask(void) const
Return Critical Error bit mask.
PXDErrorFlags getErrorMask(void) const
Return Error bit mask This is the OR of error masks of all sub-objects (DHC, DHE)
PXDErrorFlags m_errorMask
errors found in this packets sensors
ClassDef(PXDDAQPacketStatus, 3)
necessary for ROOT
std::vector< PXDDAQDHCStatus >::const_iterator cbegin() const
const iterator-based iteration for DHCs
void setPktIndex(unsigned short inx)
Set Packet index.
virtual ~PXDDAQPacketStatus()
destructor
void Decide(void)
Calculate the usability decision If any of the critical bits is set in the error mask the PXD data fr...
std::vector< PXDDAQDHCStatus >::iterator begin()
iterator-based iteration for DHCs
PXDDAQDHCStatus & dhc_back()
Returns PXDDAQDHCStatus for last DHC.
std::vector< PXDDAQDHCStatus >::const_iterator cend() const
const iterator-based iteration for DHCs
PXDDAQDHCStatus & newDHC(Args &&... params)
Add new DHC information.
bool isUsable() const
Return Usability of data.
void addDHC(PXDDAQDHCStatus &daqdhcstat)
Add DHC information including its DHE tree.
bool m_usable
data is useable.
Abstract base class for different kinds of events.