11#include <pxd/dataobjects/PXDDAQDHEStatus.h>
12#include <pxd/dataobjects/PXDErrorFlags.h>
21 using Belle2::PXD::PXDError::PXDErrorFlags;
120 m_pxdDHE.emplace_back(std::forward<Args>(params)...);
125 std::vector<PXDDAQDHEStatus>::iterator
begin() {
return m_pxdDHE.begin(); };
127 std::vector<PXDDAQDHEStatus>::iterator
end() {
return m_pxdDHE.end(); };
130 std::vector<PXDDAQDHEStatus>::const_iterator
cbegin()
const {
return m_pxdDHE.cbegin(); };
132 std::vector<PXDDAQDHEStatus>::const_iterator
cend()
const {
return m_pxdDHE.cend(); };
The PXD DAQ DHC Status class.
virtual ~PXDDAQDHCStatus()
destructor
ClassDef(PXDDAQDHCStatus, 5)
necessary for ROOT
unsigned short getDHCID(void) const
Get DHC ID.
void setCritErrorMask(const PXDErrorFlags &mask)
Set Critical Error bit mask.
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< PXDDAQDHEStatus >::iterator end()
iterator-based iteration for DHEs
uint32_t m_redCount
reduced byte count for monitoring
void setDHCID(int dhcid)
Set DHC ID.
std::vector< PXDDAQDHEStatus >::const_iterator cbegin() const
const iterator-based iteration for DHEs
PXDErrorFlags getCritErrorMask(void) const
Return Critical Error bit mask.
uint32_t getRawCnt(void) const
Set Raw Data counter for reduction calculation.
void setGatedFlag(bool gm)
set gating info from the DHC END
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 DHC/sensor
std::vector< PXDDAQDHEStatus >::const_iterator cend() const
const iterator-based iteration for DHEs
std::vector< PXDDAQDHEStatus > m_pxdDHE
Vector of DHE informations belonging to this event.
void Decide(void)
Calculate the usability decision If any of the critical bits is set in the error mask the PXD data fr...
void addDHE(PXDDAQDHEStatus &daqdhe)
Add DHE information.
PXDDAQDHEStatus & newDHE(Args &&... params)
Add new DHE information.
uint32_t m_errorinfo
errorinfo from the DHC END
bool getGatedHER(void) const
get HER/LER gating info from the DHC END
bool m_gated_mode
gated info from the DHC START
bool m_gated_her
gated info from the DHC START - true HER, 0 LER
void setGatedHER(bool isher)
set HER/LER gating info from the DHC END
PXDDAQDHCStatus(int dhcid, PXDErrorFlags &mask)
constructor setting the error mask, dhcid, raw and reduced data counters
std::vector< PXDDAQDHEStatus >::iterator begin()
iterator-based iteration for DHEs
PXDDAQDHEStatus & dhe_back()
Returns PXDDAQDHEStatus for last DHE.
void setEndErrorInfo(uint32_t e)
set errorinfo from the DHC END
uint32_t m_rawCount
raw byte count for monitoring
size_t dhe_size() const
Returns number of DHEs.
unsigned short m_dhcID
DHC ID as delivered by DAQ.
uint32_t getRedCnt(void) const
Set Reduced Data counter for reduction calculation.
void getCounters(uint32_t &raw, uint32_t &red) const
Get Data counters for reduction calculation.
bool getGatedFlag(void) const
get gating info from the DHC END
PXDDAQDHCStatus()
Default constructor for the ROOT IO.
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 errorinfo from the DHC END
bool m_usable
data is useable.
The PXD DAQ DHE Status class.
Abstract base class for different kinds of events.