Belle II Software  release-08-01-10
PXDDAQDHCStatus Class Referencefinal

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...
 
virtual ~PXDDAQDHCStatus ()
 destructor
 
bool isUsable () const
 Return Usability of data. More...
 
void setErrorMask (const PXDErrorFlags &mask)
 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 (const PXDErrorFlags &mask)
 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 (bool gm)
 set gating info from the DHC END
 
bool getGatedFlag (void) const
 get gating info from the DHC END
 
void setGatedHER (bool isher)
 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, 5)
 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 31 of file PXDDAQDHCStatus.h.

Constructor & Destructor Documentation

◆ PXDDAQDHCStatus()

PXDDAQDHCStatus ( int  dhcid,
PXDErrorFlags &  mask 
)
inlineexplicit

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

Parameters
dhcidDHC id
maskerror mask

Definition at line 41 of file PXDDAQDHCStatus.h.

41  : m_errorMask(mask),
42  m_critErrorMask(0), m_usable(true), m_dhcID(dhcid), m_rawCount(0), m_redCount(0), m_errorinfo(0) {}
PXDErrorFlags m_critErrorMask
critical error mask
uint32_t m_redCount
reduced byte count for monitoring
PXDErrorFlags m_errorMask
errors found in this DHC/sensor
uint32_t m_errorinfo
errorinfo from the DHC END
uint32_t m_rawCount
raw byte count for monitoring
unsigned short m_dhcID
DHC ID as delivered by DAQ.
bool m_usable
data is useable.

Member Function Documentation

◆ addDHE()

void addDHE ( PXDDAQDHEStatus daqdhe)
inline

Add DHE information.

Parameters
daqdheDHE Status Object

Definition at line 112 of file PXDDAQDHCStatus.h.

◆ getCritErrorMask()

PXDErrorFlags getCritErrorMask ( void  ) const
inline

Return Critical Error bit mask.

Returns
bit mask

Definition at line 72 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 62 of file PXDDAQDHCStatus.h.

◆ isUsable()

bool isUsable ( ) const
inline

Return Usability of data.

Returns
conclusion if data is useable

Definition at line 50 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 118 of file PXDDAQDHCStatus.h.

◆ setCritErrorMask()

void setCritErrorMask ( const PXDErrorFlags &  mask)
inline

Set Critical Error bit mask.

Parameters
maskBit Mask to set

Definition at line 67 of file PXDDAQDHCStatus.h.

◆ setErrorMask()

void setErrorMask ( const PXDErrorFlags &  mask)
inline

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

Parameters
maskBit Mask to set

Definition at line 56 of file PXDDAQDHCStatus.h.


The documentation for this class was generated from the following file: