1 #ifndef DTDigi_DTDDUWords_h 2 #define DTDigi_DTDDUWords_h 10 #define WORDCONTROLMASK 0xE0000000 11 #define WORDCONTROLSHIFT 29 12 #define WORDTYPEMASK 0x1F000000 13 #define WORDTYPESHIFT 24 16 #define ERRORMASK 0x8000 19 #define DEBUG_TYPE_MASK 0xE00000 20 #define DEBUG_TYPE_SHIFT 21 21 #define DEBUG_MESSAGE_MASK 0x7FFF 22 #define CEROS_ID_CEROS_STATUS_MASK 0x1F0000 23 #define CEROS_ID_CEROS_STATUS_SHIFT 16 24 #define EV_ID_CEROS_STATUS_MASK 0xFC0 25 #define EV_ID_CEROS_STATUS_SHIFT 6 26 #define DONTREAD_CEROS_STATUS_MASK 0x3F 27 #define CEROS_ID_ROS_STATUS_MASK 0x1F 29 #define TTC_EVENT_COUNTER_MASK 0xFFFFFF 31 #define TFF_MASK 0x800000 33 #define TPX_MASK 0x400000 35 #define L1A_FIFO_OCC_MASK 0x3F0000 36 #define L1A_FIFO_OCC_SHIFT 16 37 #define EVENT_WORD_COUNT_MASK 0xFFFF 39 #define ERROR_TYPE_MASK 0xE00000 40 #define ERROR_TYPE_SHIFT 21 41 #define ERROR_ROB_ID_MASK 0x1F0000 42 #define ERROR_ROB_ID_SHIFT 16 43 #define ERROR_CEROS_ID_MASK 0x3F 45 #define ROB_ID_MASK 0x1F000000 46 #define EVENT_ID_MASK 0xFFF000 47 #define EVENT_ID_SHIFT 12 48 #define BUNCH_ID_MASK 0xFFF 49 #define WORD_COUNT_MASK 0xFFF 51 #define PC_MASK 0x8000000 53 #define PAF_MASK 0x4000000 55 #define TDC_ID_MASK 0x3000000 56 #define TDC_ID_SHIFT 24 58 #define TDC_CHANNEL_MASK 0xF80000 59 #define TDC_CHANNEL_SHIFT 19 60 #define TDC_TIME_MASK 0x7FFFC // First two bits are excluded 61 #define TDC_TIME_SHIFT 2 63 #define TDC_ERROR_MASK 0x7FFF 65 #define SCFO_MASK 0xFF 67 #define TRIGGER_WORD_COUNT_MASK 0xFFFF 69 #define TRIGGER_DATA_MASK 0xFFFF 71 #define SC_LAT_SHIFT 8 72 #define SC_LAT_MASK 0x7F 74 #define SC_NW_MASK 0xFF 76 #define SC_TRIGGERDLY_MASK 0x7 77 #define SC_TRIGGERDLY_SHIFT 12 78 #define SC_BXC_MASK 0xFFF 215 static void set(uint32_t&
word,
int ttc_event_counter) {
251 static void set(uint32_t&
word,
int tff,
int tpx,
int l1a_fifo_occ,
int event_word_count) {
282 static void set(uint32_t&
word,
int error_type,
int rob_id) {
319 static void set(uint32_t&
word,
325 static void set(uint32_t&
word,
int debug_type,
int ceros_id) {
357 static void set(uint32_t&
word,
int rob_id,
int event_id,
int bunch_id) {
389 static void set(uint32_t&
word,
int rob_id,
int event_id,
int word_count) {
424 static void set(uint32_t&
word,
int pc,
int paf,
int hu,
int tdc_id,
int event_id,
int bunch_id) {
459 static void set(uint32_t&
word,
int pc,
int paf,
int hu,
int tdc_id,
int event_id,
int word_count) {
494 static void set(uint32_t&
word,
int pc,
int paf,
int hu,
int tdc_id,
int tdc_channel,
int tdc_time) {
528 static void set(uint32_t&
word,
int pc,
int paf,
int hu,
int tdc_id,
int tdc_error) {
558 static void set(uint32_t&
word,
int event_id,
int scfo) {
587 static void set(uint32_t&
word,
int word_count) {
624 static void set(uint32_t&
word,
int sc_data) {
727 static void set(uint32_t&
word,
int lat,
int nw) {
758 static void set(uint32_t&
word,
int trigdly,
int bxcount) {
DTROSWordType(const uint32_t index)
Constructor.
int cerosIdCerosStatus() const
DTLocalTriggerDataWord()
Constructor.
virtual ~DTTDCErrorWord()
Destructor.
DTLocalTriggerDataWord(const uint32_t index)
int trackQuality(int first) const
#define EV_ID_CEROS_STATUS_SHIFT
virtual ~DTROSTrailerWord()
Destructor.
DTDDUFirstStatusWord(const DTDDUFirstStatusWord &obj)
DTLocalTriggerTrailerWord(const uint32_t index)
DTDDUSecondStatusWord()
Constructor.
DTDDUSecondStatusWord(const DTDDUSecondStatusWord &obj)
DTROSErrorWord(const uint32_t index)
#define SC_TRIGGERDLY_MASK
#define L1A_FIFO_OCC_MASK
DTROSDebugWord(const uint32_t index)
static const uint32_t trailerControlWord
DTTDCErrorWord()
Constructor.
#define ERROR_CEROS_ID_MASK
int inputFifoAlmostFull() const
DTROBTrailerWord()
Constructor.
virtual ~DTROBTrailerWord()
Destructor.
int tdcID() const
<== OBSOLETE!!
DTTDCTrailerWord(const DTTDCTrailerWord &obj)
int l1AFifoOccupancy() const
static const uint32_t tdcHeaderControlWord
int eventTrailerLost() const
#define TRIGGER_DATA_MASK
#define SC_TRIGGERDLY_SHIFT
DTDDUFirstStatusWord(const unsigned char index)
int tlkSignalLost() const
int tlkPropagationError() const
#define TTC_EVENT_COUNTER_MASK
DTTDCMeasurementWord()
Constructor.
virtual ~DTLocalTriggerDataWord()
Destructor.
int getBits(int first) const
int outOfSynchROSError() const
static const uint32_t errorControlWord
int cerosIdRosStatus() const
DTTDCMeasurementWord(const DTTDCMeasurementWord &obj)
DTROBTrailerWord(const uint32_t index)
int tdcID() const
<== OBSOLETE!!
virtual ~DTTDCTrailerWord()
Destructor.
#define TRIGGER_WORD_COUNT_MASK
#define CEROS_ID_ROS_STATUS_MASK
static const uint32_t tdcTrailerControlWord
static const uint32_t scTypeWord
int outputFifoFull() const
DTLocalTriggerDataWord(const DTLocalTriggerDataWord &obj)
DTROSWordType(const DTROSWordType &obj)
DTROBTrailerWord(const DTROBTrailerWord &obj)
virtual ~DTTDCMeasurementWord()
Destructor.
virtual ~DTDDUFirstStatusWord()
Destructor.
int outputFifoAlmostFull() const
DTTDCTrailerWord()
Constructor.
#define DEBUG_MESSAGE_MASK
#define CEROS_ID_CEROS_STATUS_SHIFT
DTROSDebugWord(const DTROSDebugWord &obj)
#define ERROR_ROB_ID_MASK
DTTDCErrorWord(const uint32_t index)
DTROSTrailerWord(const uint32_t index)
#define EVENT_WORD_COUNT_MASK
DTROSDebugWord()
Constructor.
enum wordTypes type()
DDU word type getter.
virtual ~DTDDUSecondStatusWord()
Destructor.
int inputFifoFull() const
#define DONTREAD_CEROS_STATUS_MASK
DTROSTrailerWord(const DTROSTrailerWord &obj)
static const uint32_t tdcDataControlWord
wordTypes
List of DT DDU Word Types.
static const uint32_t rosTypeWord
Word Type bits definitions.
int hasTrigger(int first) const
int tdcID() const
<== OBSOLETE!!
int channelEnabled() const
DTTDCTrailerWord(const uint32_t index)
#define CEROS_ID_CEROS_STATUS_MASK
static const uint32_t debugControlWord
DTTDCErrorWord(const DTTDCErrorWord &obj)
#define EV_ID_CEROS_STATUS_MASK
int tlkPatternError() const
int EventWordCount() const
DTROSErrorWord()
Constructor.
#define TDC_CHANNEL_SHIFT
static const uint32_t headerControlWord
Control bits definitions.
DTLocalTriggerTrailerWord(const DTLocalTriggerTrailerWord &obj)
virtual ~DTROSWordType()
Destructor.
virtual ~DTROSErrorWord()
Destructor.
int warningROSPAF() const
DTROSTrailerWord()
Constructor.
DTROSErrorWord(const DTROSErrorWord &obj)
DTTDCMeasurementWord(const uint32_t index)
DTLocalTriggerTrailerWord()
Constructor.
int fifoAlmostFull() const
DTDDUSecondStatusWord(const uint32_t index)
#define ERROR_ROB_ID_SHIFT
virtual ~DTLocalTriggerTrailerWord()
Destructor.
int opticalFiberSignalLost() const
DTDDUFirstStatusWord()
Constructor.
virtual ~DTROSDebugWord()
Destructor.
#define L1A_FIFO_OCC_SHIFT