Belle II Software  release-05-02-19
PXDDAQDHCStatus Class Reference

The PXD DAQ DHC Status class. More...

#include <PXDDAQDHCStatus.h>

Collaboration diagram for PXDDAQDHCStatus:

Public Member Functions

 PXDDAQDHCStatus ()
 Default constructor for the ROOT IO.
 
 PXDDAQDHCStatus (int dhcid, PXDErrorFlags mask)
 constructor setting the error mask, dhcid, raw and reduced data counters More...
 
bool isUsable () const
 Return Usability of data. More...
 
void setErrorMask (PXDErrorFlags m)
 Set Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE) More...
 
PXDErrorFlags getErrorMask (void) const
 Return Error bit mask This is the OR of error masks of all sub-objects (DHC, DHE) More...
 
void setCritErrorMask (PXDErrorFlags m)
 Set Critical Error bit mask. More...
 
PXDErrorFlags getCritErrorMask (void) const
 Return Critical Error bit mask. More...
 
void Decide (void)
 Calculate the usability decision If any of the critical bits is set in the error mask the PXD data from this DHC is not usable for analysis TODO Maybe this decision needs improvement.
 
unsigned short getDHCID (void) const
 Get DHC ID.
 
void setDHCID (int dhcid)
 Set DHC ID.
 
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 setEndErrorInfo (uint32_t e)
 set errorinfo from the DHC END
 
uint32_t getEndErrorInfo (void) const
 get errorinfo from the DHC END
 
void setGatedFlag (uint32_t e)
 set gating info from the DHC END
 
bool getGatedFlag (void) const
 get gating info from the DHC END
 
void setGatedHER (uint32_t e)
 set HER/LER gating info from the DHC END
 
bool getGatedHER (void) const
 get HER/LER gating info from the DHC END
 
void addDHE (PXDDAQDHEStatus &daqdhe)
 Add DHE information. More...
 
template<class ... Args>
PXDDAQDHEStatusnewDHE (Args &&... params)
 Add new DHE information. More...
 
std::vector< PXDDAQDHEStatus >::iterator begin ()
 iterator-based iteration for DHEs
 
std::vector< PXDDAQDHEStatus >::iterator end ()
 iterator-based iteration for DHEs
 
std::vector< PXDDAQDHEStatus >::const_iterator cbegin () const
 const iterator-based iteration for DHEs
 
std::vector< PXDDAQDHEStatus >::const_iterator cend () const
 const iterator-based iteration for DHEs
 
PXDDAQDHEStatusdhe_back ()
 Returns PXDDAQDHEStatus for last DHE.
 
size_t dhe_size () const
 Returns number of DHEs.
 

Private Member Functions

 ClassDef (PXDDAQDHCStatus, 4)
 necessary for ROOT
 

Private Attributes

PXDErrorFlags m_errorMask
 errors found in this DHC/sensor
 
PXDErrorFlags m_critErrorMask
 critical error mask
 
bool m_usable
 data is useable.
 
unsigned short m_dhcID
 DHC ID as delivered by DAQ.
 
uint32_t m_rawCount
 raw byte count for monitoring
 
uint32_t m_redCount
 reduced byte count for monitoring
 
uint32_t m_errorinfo
 errorinfo from the DHC END
 
bool m_gated_mode {false}
 gated info from the DHC START
 
bool m_gated_her {false}
 gated info from the DHC START - true HER, 0 LER
 
std::vector< PXDDAQDHEStatusm_pxdDHE
 Vector of DHE informations belonging to this event.
 

Detailed Description

The PXD DAQ DHC Status class.

This is a small class that records information about PXD DAQ DHC status It will record if the data of sensors (readout by this DHC) is useable.

Definition at line 43 of file PXDDAQDHCStatus.h.

Constructor & Destructor Documentation

◆ PXDDAQDHCStatus()

PXDDAQDHCStatus ( int  dhcid,
PXDErrorFlags  mask 
)
inline

constructor setting the error mask, dhcid, raw and reduced data counters

Parameters
dhcidDHC id
maskerror mask

Definition at line 53 of file PXDDAQDHCStatus.h.

56  { m_errorMask = m; }

Member Function Documentation

◆ addDHE()

void addDHE ( PXDDAQDHEStatus daqdhe)
inline

Add DHE information.

Parameters
daqdheDHE Status Object

Definition at line 121 of file PXDDAQDHCStatus.h.

◆ getCritErrorMask()

PXDErrorFlags getCritErrorMask ( void  ) const
inline

Return Critical Error bit mask.

Returns
bit mask

Definition at line 81 of file PXDDAQDHCStatus.h.

◆ getErrorMask()

PXDErrorFlags getErrorMask ( void  ) const
inline

Return Error bit mask This is the OR of error masks of all sub-objects (DHC, DHE)

Returns
bit mask

Definition at line 71 of file PXDDAQDHCStatus.h.

◆ isUsable()

bool isUsable ( ) const
inline

Return Usability of data.

Returns
conclusion if data is useable

Definition at line 59 of file PXDDAQDHCStatus.h.

◆ newDHE()

PXDDAQDHEStatus& newDHE ( Args &&...  params)
inline

Add new DHE information.

Parameters
paramsconstructor parameter
Returns
new DHE Status Object

Definition at line 127 of file PXDDAQDHCStatus.h.

◆ setCritErrorMask()

void setCritErrorMask ( PXDErrorFlags  m)
inline

Set Critical Error bit mask.

Parameters
mBit Mask to set

Definition at line 76 of file PXDDAQDHCStatus.h.

◆ setErrorMask()

void setErrorMask ( PXDErrorFlags  m)
inline

Set Error bit mask This should be the OR of error masks of all sub-objects (DHC, DHE)

Parameters
mBit Mask to set

Definition at line 65 of file PXDDAQDHCStatus.h.


The documentation for this class was generated from the following file:
Belle2::PXDDAQDHCStatus::m_errorMask
PXDErrorFlags m_errorMask
errors found in this DHC/sensor
Definition: PXDDAQDHCStatus.h:145