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