|
|
Go to the documentation of this file. 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) {
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) {
int tdcID() const
<== OBSOLETE!!
static void set(uint32_t &word, int rob_id, int event_id, int word_count)
DTROBTrailerWord()
Constructor.
int trackQuality(int first) const
int getBits(int first) const
static const uint32_t tdcHeaderControlWord
int cerosIdRosStatus() const
DTROBTrailerWord(const uint32_t index)
DTDDUFirstStatusWord(const DTDDUFirstStatusWord &obj)
int tdcID() const
<== OBSOLETE!!
DTTDCMeasurementWord(const DTTDCMeasurementWord &obj)
virtual ~DTDDUSecondStatusWord()
Destructor.
int opticalFiberSignalLost() const
static const uint32_t tdcTrailerControlWord
DTROSErrorWord()
Constructor.
virtual ~DTROSDebugWord()
Destructor.
int EventWordCount() const
static void set(uint32_t &word, int pc, int paf, int hu, int tdc_id, int event_id, int word_count)
virtual ~DTDDUFirstStatusWord()
Destructor.
DTLocalTriggerDataWord()
Constructor.
virtual ~DTROSErrorWord()
Destructor.
#define SC_TRIGGERDLY_MASK
DTTDCTrailerWord()
Constructor.
wordTypes
List of DT DDU Word Types.
#define L1A_FIFO_OCC_MASK
#define EV_ID_CEROS_STATUS_SHIFT
virtual ~DTTDCErrorWord()
Destructor.
DTLocalTriggerDataWord(const uint32_t index)
static void set(uint32_t &word, int debug_type, int ceros_id)
static void set(uint32_t &word, int pc, int paf, int hu, int tdc_id, int tdc_channel, int tdc_time)
DTROSErrorWord(const uint32_t index)
#define ERROR_CEROS_ID_MASK
int inputFifoAlmostFull() const
DTROSErrorWord(const DTROSErrorWord &obj)
int fifoAlmostFull() const
static const uint32_t headerControlWord
Control bits definitions.
#define TRIGGER_WORD_COUNT_MASK
DTDDUSecondStatusWord(const uint32_t index)
DTTDCMeasurementWord()
Constructor.
#define CEROS_ID_ROS_STATUS_MASK
static void set(uint32_t &word, int error_type, int rob_id)
int outOfSynchROSError() const
DTROSWordType(const DTROSWordType &obj)
DTTDCErrorWord(const uint32_t index)
DTTDCMeasurementWord(const uint32_t index)
#define SC_TRIGGERDLY_SHIFT
static const uint32_t tdcDataControlWord
virtual ~DTLocalTriggerDataWord()
Destructor.
DTDDUSecondStatusWord(const DTDDUSecondStatusWord &obj)
DTROSTrailerWord(const DTROSTrailerWord &obj)
DTDDUFirstStatusWord()
Constructor.
DTTDCErrorWord()
Constructor.
static void set(uint32_t &word, int tff, int tpx, int l1a_fifo_occ, int event_word_count)
static const uint32_t errorControlWord
DTTDCErrorWord(const DTTDCErrorWord &obj)
#define TRIGGER_DATA_MASK
DTTDCTrailerWord(const uint32_t index)
int channelEnabled() const
#define TTC_EVENT_COUNTER_MASK
DTLocalTriggerTrailerWord()
Constructor.
int inputFifoFull() const
DTDDUFirstStatusWord(const unsigned char index)
int tlkSignalLost() const
static void set(uint32_t &word, int pc, int paf, int hu, int tdc_id, int tdc_error)
#define EVENT_WORD_COUNT_MASK
DTROSDebugWord(const uint32_t index)
#define CEROS_ID_CEROS_STATUS_SHIFT
#define DONTREAD_CEROS_STATUS_MASK
int eventTrailerLost() const
DTLocalTriggerDataWord(const DTLocalTriggerDataWord &obj)
virtual ~DTROSWordType()
Destructor.
static void set(uint32_t &word, int sc_data)
DTROSTrailerWord()
Constructor.
static void set(uint32_t &word, int word_count)
#define DEBUG_MESSAGE_MASK
int tlkPropagationError() const
virtual ~DTTDCTrailerWord()
Destructor.
static const uint32_t scTypeWord
int l1AFifoOccupancy() const
DTLocalTriggerTrailerWord(const DTLocalTriggerTrailerWord &obj)
virtual ~DTTDCMeasurementWord()
Destructor.
static const uint32_t debugControlWord
#define TDC_CHANNEL_SHIFT
virtual ~DTLocalTriggerTrailerWord()
Destructor.
int tlkPatternError() const
#define ERROR_ROB_ID_MASK
DTROSDebugWord(const DTROSDebugWord &obj)
DTROSDebugWord()
Constructor.
static const uint32_t trailerControlWord
static const uint32_t rosTypeWord
Word Type bits definitions.
int warningROSPAF() const
virtual ~DTROSTrailerWord()
Destructor.
int tdcID() const
<== OBSOLETE!!
int outputFifoAlmostFull() const
int hasTrigger(int first) const
DTROBTrailerWord(const DTROBTrailerWord &obj)
DTDDUSecondStatusWord()
Constructor.
#define L1A_FIFO_OCC_SHIFT
#define CEROS_ID_CEROS_STATUS_MASK
#define EV_ID_CEROS_STATUS_MASK
DTROSTrailerWord(const uint32_t index)
int cerosIdCerosStatus() const
enum wordTypes type()
DDU word type getter.
static void set(uint32_t &word, int debug_type)
virtual ~DTROBTrailerWord()
Destructor.
int outputFifoFull() const
DTROSWordType(const uint32_t index)
Constructor.
DTTDCTrailerWord(const DTTDCTrailerWord &obj)
DTLocalTriggerTrailerWord(const uint32_t index)
#define ERROR_ROB_ID_SHIFT