 |
Belle II Software
release-05-01-25
|
11 #ifndef SVDDAQDIAGNOSTICS_H
12 #define SVDDAQDIAGNOSTICS_H
15 #include <framework/datastore/RelationsObject.h>
80 SVDDAQDiagnostic(uint8_t triggerNumber, uint8_t triggerType, uint8_t pipelineAddress, uint8_t cmc1, uint8_t cmc2, uint8_t apvError,
81 uint8_t ftbError,
bool fadcMatch,
bool apvMatch,
bool badHeader,
bool missedHeader,
bool missedTrailer, uint8_t fadcNo = uint8_t(0),
82 uint8_t apvNo = uint8_t(0))
109 SVDDAQDiagnostic():
SVDDAQDiagnostic(0, 0, 0, 0, 0, 0, 0, 0, 0, false, 0, 0) {}
118 uint16_t
getCMC1()
const {
return static_cast<uint16_t
>(
m_cmc1); }
233 #endif //SVDDAQDIAGNOSTICS_H
@ PipelineAddressBits
Number of bits available to represent a pipeline address.
@ APVErrorORBits
Number of bits available to represent an APV error OR code.
bool getAPVMatch() const
Get the APVmatch code.
uint16_t m_ftbFlags
FTB Flags Field.
bool getBadMapping() const
Get the Bad Mapping code.
bool getFADCMatch() const
Get the FADCmatch code.
void setBadMapping(bool BadMapping)
functions for setting values for
@ UpsetAPVBits
Number of bits available to represent an upset APV code.
uint16_t getCMC2() const
Get the Common Mode Correction performed after masking particle signals.
bool getMissedTrailer() const
Get the missed Trailer.
uint8_t m_apvError
APV error code.
@ FADCMatchBits
Number of bits available to represent an FADC match code.
void setAPVMatch(bool APVMatch)
functions for setting values of
void setApvErrorOR(uint8_t apvErrorOR)
functions for setting values unpacked from FADC trailer
@ MissedHeaderBits
Number of Bits available to represent missed header.
bool m_missedTrailer
missed Trailer
@ MissedTrailerBits
Number of Bits available to represent missed trailer.
@ BadHeaderBits
Number of Bits available to represent bad header.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
bool getUpsetAPV() const
Get the UpsetAPV code.
@ TriggerTypeBits
Number of bits available to represent a trigger type.
bool m_badMapping
Bad mapping.
uint16_t getFTBFlags() const
Get the FTB Flags field.
void setFTBFlags(uint16_t ftbFlags)
functions for setting values unpacked from FADC trailer
void setBadTrailer(bool BadTrailer)
functions for setting values for
void setMissedTrailer(bool MissedTrailer)
functions for setting values for
uint8_t m_apvErrorOR
APV error code in FADC trailer.
uint16_t getEmuPipelineAddress() const
Get the emulated pipeline address.
void setUpsetAPV(bool UpsetAPV)
functions for setting values for
@ APVMatchBits
Number of bits available to represent an APV match code.
bool m_badTrailer
Bad fadc Trailer.
uint8_t m_pipelineAddress
Pipeline address.
@ CMC1Bits
Number of bits available to represent Common Mode Correction w/o masking out particle signals.
bool getBadTrailer() const
Get the Bad Trailer code.
@ CMC2Bits
Number of bits available to represent Common Mode Correction performed after masking particle signals...
@ APVErrorBits
Number of bits available to represent an APV error code.
bool m_badHeader
Bad fadc Header.
uint16_t getPipelineAddress() const
Get the pipeline address.
uint16_t getTriggerType() const
Get the trigger type.
Abstract base class for different kinds of events.
@ BadTrailerBits
Number of Bits available to represent bad trailer code.
bool m_apvMatch
if # of APV headers match # of APVs for given FADC
uint8_t m_triggerNumber
Trigger number.
@ FTBFlagsBits
Number of bits available to represent a FTB Flags Field.
void setMissedHeader(bool MissedHeader)
functions for setting values for
@ BadMappingBits
Number of bits available to represent bad mapping.
uint16_t getAPVError() const
Get the APV error code.
@ EMUPipelineAddressBits
Number of bits available to represent an Emulated pipeline adress.
uint16_t getFTBError() const
Get the FTB errors field.
void setEmuPipelineAddress(uint8_t emuPipelineAddress)
functions for setting values unpacked from FADC trailer
bool getBadHeader() const
Get the Bad Header code.
uint8_t m_emuPipelineAddress
emulated pipeline Address
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
bool getMissedHeader() const
Get the missed Header.
bool m_upsetApv
Upset APV.
unsigned short getAPVNumber() const
Get APV number.
unsigned short getFADCNumber() const
Get FADC number.
uint16_t getTriggerNumber() const
Get the trigger number.
uint16_t getAPVErrorOR() const
Get the APV error OR code.
@ TriggerNumberBits
Number of bits available to represent a trigger number.
Class to store SVD DAQ diagnostic information.
SVDDAQDiagnostic()
Default constructor.
@ Bits
Total bit size of the SVDDAQDiagnostic.
uint8_t m_ftbError
FTB error code.
uint16_t getCMC1() const
Get the Common Mode Correction w/o masking out particle signals.
uint8_t m_triggerType
Trigger type.
bool m_missedHeader
missed Header
bool m_fadcMatch
if # of FADC boards match # of RawData objects
@ FTBErrorBits
Number of bits available to represent a FTB error code.