11#include <pxd/dataobjects/PXDDAQPacketStatus.h>
13#include <pxd/dataobjects/PXDErrorFlags.h>
22 using Belle2::PXD::PXDError::PXDErrorFlags;
125 m_pxdPacket.emplace_back(std::forward<Args>(params)...);
132 std::map <VxdID, bool>
getUsable()
const;
141 std::vector<PXDDAQPacketStatus>::const_iterator
cbegin()
const {
return m_pxdPacket.cbegin(); };
143 std::vector<PXDDAQPacketStatus>::const_iterator
cend()
const {
return m_pxdPacket.cend(); };
The PXD DAQ DHE Status class.
The PXD DAQ Packet Status class.
The PXD DAQ Status class.
PXDDAQStatus(const PXDErrorFlags &mask)
constructor setting the error mask.
void addPacket(PXDDAQPacketStatus &daqpktstat)
Add Data packet information including its DHC/DHE tree.
void setCritErrorMask(const PXDErrorFlags &mask)
Set Critical Error bit mask.
PXDDAQStatus()
Default constructor for the ROOT IO.
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
bool isGated() const
Return if data was recorded while detector was gated.
PXDDAQPacketStatus & newPacket(Args &&... params)
Add new Packet information.
size_t pkt_size() const
Returns number of packets in this event
std::vector< PXDDAQPacketStatus >::const_iterator cend() const
const iterator-based iteration for packets
void addErrorMask(const PXDErrorFlags &mask)
Add (OR) Error bit mask This should be the OR of error masks of all sub-objects (DHC,...
void setUnfiltered(bool b)
Set flag that data was recorded without ROI filtering.
PXDErrorFlags getCritErrorMask(void) const
Return Critical Error bit mask.
virtual ~PXDDAQStatus()
destructor
bool m_unfiltered
Data was not ROI filtered.
void setGated(bool b)
Set flag that data was while detector was gated.
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 any packet/DHC/DHE
PXDDAQPacketStatus & pkt_back()
Returns PXDDAQPacketStatus for last packet in this event
std::vector< PXDDAQPacketStatus >::iterator begin()
iterator-based iteration for packets
std::vector< PXDDAQPacketStatus > m_pxdPacket
Vector of packet informations beloning to this event.
void Decide(void)
Calculate the usability decision If any of the critical bits is set in the error mask,...
bool m_gated
Sensor was in gated mode.
std::map< VxdID, bool > getUsable() const
Return map of module usability.
std::vector< PXDDAQPacketStatus >::const_iterator cbegin() const
const iterator-based iteration for packets
bool isUnfiltered() const
Return if data was recorded without ROI filtering.
const PXDDAQDHEStatus * findDHE(const VxdID &id) const
Return pointer to PXDDAQDHEStatus for the DHE connected to sensor with VxdID id If id not found,...
bool isUsable() const
Return Usability of data.
bool m_usable
Data is useable.
std::vector< PXDDAQPacketStatus >::iterator end()
iterator-based iteration for packets
Class to uniquely identify a any structure of the PXD and SVD.
Abstract base class for different kinds of events.