CMS 3D CMS Logo

DTDDUWords.h
Go to the documentation of this file.
1 #ifndef DTDigi_DTDDUWords_h
2 #define DTDigi_DTDDUWords_h
3 
10 #define WORDCONTROLMASK 0xE0000000
11 #define WORDCONTROLSHIFT 29
12 #define WORDTYPEMASK 0x1F000000
13 #define WORDTYPESHIFT 24
14 
16 #define ERRORMASK 0x8000
17 #define ERRORSHIFT 15
18 
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
28 
29 #define TTC_EVENT_COUNTER_MASK 0xFFFFFF
30 
31 #define TFF_MASK 0x800000
32 #define TFF_SHIFT 23
33 #define TPX_MASK 0x400000
34 #define TPX_SHIFT 22
35 #define L1A_FIFO_OCC_MASK 0x3F0000
36 #define L1A_FIFO_OCC_SHIFT 16
37 #define EVENT_WORD_COUNT_MASK 0xFFFF
38 
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
44 
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
50 
51 #define PC_MASK 0x8000000
52 #define PC_SHIFT 27
53 #define PAF_MASK 0x4000000
54 #define PAF_SHIFT 26
55 #define TDC_ID_MASK 0x3000000
56 #define TDC_ID_SHIFT 24
57 
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
62 
63 #define TDC_ERROR_MASK 0x7FFF
64 
65 #define SCFO_MASK 0xFF
66 
67 #define TRIGGER_WORD_COUNT_MASK 0xFFFF
68 
69 #define TRIGGER_DATA_MASK 0xFFFF
70 
71 #define SC_LAT_SHIFT 8
72 #define SC_LAT_MASK 0x7F
73 
74 #define SC_NW_MASK 0xFF
75 
76 #define SC_TRIGGERDLY_MASK 0x7
77 #define SC_TRIGGERDLY_SHIFT 12
78 #define SC_BXC_MASK 0xFFF
79 
80 #include <iostream>
81 #include <cstdint>
82 
89 public:
91  DTROSWordType(const uint32_t index) { word_ = index; }
92 
93  DTROSWordType() : word_(0) {}
94 
96  virtual ~DTROSWordType() {}
97 
99  enum wordTypes {
102  ROSError = 3,
108  TDCError = 9,
109  SCHeader = 10,
110  SCTrailer = 11,
111  SCData = 12,
112  ROSDebug = 13,
113  TDCDebug = 14,
114  Control = 15
115  };
116 
118  enum wordTypes type() {
119  enum wordTypes wordType = Control;
120 
121  // ROS/ROB/SC Headers
124  wordType = ROSHeader;
125  if (((word_ & WORDTYPEMASK) >> WORDTYPESHIFT) == scTypeWord)
126  wordType = SCHeader;
128  wordType = GroupHeader;
129  }
130 
131  // ROS/ROB/SC Trailers
134  wordType = ROSTrailer;
135  if (((word_ & WORDTYPEMASK) >> WORDTYPESHIFT) == scTypeWord)
136  wordType = SCTrailer;
138  wordType = GroupTrailer;
139  }
140 
141  // TDC Header
143  wordType = TDCHeader;
144 
145  // TDC Trailer
147  wordType = TDCTrailer;
148 
149  // TDC/SC Data
151  if (((word_ & WORDTYPEMASK) >> WORDTYPESHIFT) == scTypeWord)
152  wordType = SCData;
153  else
154  wordType = TDCMeasurement;
155  }
156 
157  // Errors
160  wordType = ROSError;
162  wordType = TDCError;
163  }
164 
165  // ROS Debug
168  wordType = ROSDebug;
170  wordType = TDCDebug;
171  }
172 
173  return wordType;
174  }
175 
177  static const uint32_t headerControlWord = 0;
178  static const uint32_t trailerControlWord = 1;
179  static const uint32_t tdcHeaderControlWord = 2;
180  static const uint32_t tdcTrailerControlWord = 3;
181  static const uint32_t tdcDataControlWord = 4;
182  static const uint32_t errorControlWord = 6;
183  static const uint32_t debugControlWord = 7;
184 
186  static const uint32_t rosTypeWord = 31;
187  static const uint32_t scTypeWord = 25;
188 
189 private:
190  uint32_t word_;
191 };
192 
200 public:
203 
204  DTROSHeaderWord(const uint32_t index) : word_(index) {}
205 
207  virtual ~DTROSHeaderWord() {}
208 
209  int TTCEventCounter() const { return word_ & TTC_EVENT_COUNTER_MASK; }
210 
211  static void set(uint32_t& word, int ttc_event_counter) {
213  ttc_event_counter;
214  }
215 
216 private:
217  uint32_t word_;
218 };
219 
231 public:
234 
235  DTROSTrailerWord(const uint32_t index) : word_(index) {}
236 
238  virtual ~DTROSTrailerWord() {}
239 
240  int TFF() const { return (word_ & TFF_MASK) >> TFF_SHIFT; }
241  int TPX() const { return (word_ & TPX_MASK) >> TPX_SHIFT; }
243  int EventWordCount() const { return word_ & EVENT_WORD_COUNT_MASK; }
244 
245  static void set(uint32_t& word, int tff, int tpx, int l1a_fifo_occ, int event_word_count) {
247  tff << TFF_SHIFT | tpx << TPX_SHIFT | l1a_fifo_occ << L1A_FIFO_OCC_SHIFT | event_word_count;
248  }
249 
250 private:
251  uint32_t word_;
252 };
253 
261 public:
264 
265  DTROSErrorWord(const uint32_t index) : word_(index) {}
266 
268  virtual ~DTROSErrorWord() {}
269 
270  int errorType() const { return (word_ & ERROR_TYPE_MASK) >> ERROR_TYPE_SHIFT; }
271  int robID() const { return (word_ & ERROR_ROB_ID_MASK) >> ERROR_ROB_ID_SHIFT; }
272  int cerosID() const { return errorType() == 4 ? (word_ & ERROR_CEROS_ID_MASK) : 0; }
273 
274  static void set(uint32_t& word, int error_type, int rob_id) {
276  error_type << ERROR_TYPE_SHIFT | rob_id << ERROR_ROB_ID_SHIFT | 1 << ERRORSHIFT;
277  }
278 
279 private:
280  uint32_t word_;
281 };
282 
291 public:
294 
295  DTROSDebugWord(const uint32_t index) : word_(index) {}
296 
298  virtual ~DTROSDebugWord() {}
299 
300  int debugType() const { return (word_ & DEBUG_TYPE_MASK) >> DEBUG_TYPE_SHIFT; }
301  int debugMessage() const { return (word_ & DEBUG_MESSAGE_MASK); }
302  int cerosIdCerosStatus() const {
304  }
305  int evIdMis() const { return debugType() == 3 ? (word_ & EV_ID_CEROS_STATUS_MASK) >> EV_ID_CEROS_STATUS_SHIFT : 0; }
306  int dontRead() const { return debugType() == 3 ? (word_ & DONTREAD_CEROS_STATUS_MASK) : 0; }
307  int cerosIdRosStatus() const { return debugType() == 4 ? (word_ & CEROS_ID_ROS_STATUS_MASK) : 0; }
308 
309  static void set(uint32_t& word, //CB FIXME do we need setters for DEBUG Types 3 and 4?
310  int debug_type) {
312  debug_type << DEBUG_TYPE_SHIFT | 504 << 15; // TEMPORARY
313  }
314 
315  static void set(uint32_t& word, int debug_type, int ceros_id) {
317  debug_type << DEBUG_TYPE_SHIFT | ceros_id << CEROS_ID_CEROS_STATUS_SHIFT | 1 << 15;
318  }
319 
320 private:
321  uint32_t word_;
322 };
323 
332 public:
335 
336  DTROBHeaderWord(const uint32_t index) : word_(index) {}
337 
339  virtual ~DTROBHeaderWord() {}
340 
341  int robID() const { return (word_ & ROB_ID_MASK) >> WORDTYPESHIFT; }
342  int eventID() const { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
343  int bunchID() const { return (word_ & BUNCH_ID_MASK); }
344 
345  static void set(uint32_t& word, int rob_id, int event_id, int bunch_id) {
347  bunch_id;
348  }
349 
350 private:
351  uint32_t word_;
352 };
353 
362 public:
365 
366  DTROBTrailerWord(const uint32_t index) : word_(index) {}
367 
369  virtual ~DTROBTrailerWord() {}
370 
371  int robID() const { return (word_ & ROB_ID_MASK) >> WORDTYPESHIFT; }
372  int eventID() const { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
373  int wordCount() const { return (word_ & WORD_COUNT_MASK); }
374 
375  static void set(uint32_t& word, int rob_id, int event_id, int word_count) {
377  event_id << EVENT_ID_SHIFT | word_count;
378  }
379 
380 private:
381  uint32_t word_;
382 };
383 
392 public:
395 
396  DTTDCHeaderWord(const uint32_t index) : word_(index) {}
397 
399  virtual ~DTTDCHeaderWord() {}
400 
401  int PC() const { return (word_ & PC_MASK) >> PC_SHIFT; }
402  int PAF() const { return (word_ & PAF_MASK) >> PAF_SHIFT; }
403  int HU() const { return (word_ & PAF_MASK) >> PAF_SHIFT; }
404  int tdcID() const { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
405  int eventID() const { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
406  int bunchID() const { return (word_ & BUNCH_ID_MASK); }
407 
408  static void set(uint32_t& word, int pc, int paf, int hu, int tdc_id, int event_id, int bunch_id) {
410  hu << PAF_SHIFT | tdc_id << TDC_ID_SHIFT | event_id << EVENT_ID_SHIFT | bunch_id;
411  }
412 
413 private:
414  uint32_t word_;
415 };
416 
425 public:
428 
429  DTTDCTrailerWord(const uint32_t index) : word_(index) {}
430 
432  virtual ~DTTDCTrailerWord() {}
433 
434  int PC() const { return (word_ & PC_MASK) >> PC_SHIFT; }
435  int PAF() const { return (word_ & PAF_MASK) >> PAF_SHIFT; }
436  int HU() const { return (word_ & PAF_MASK) >> PAF_SHIFT; }
437  int tdcID() const { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
438  int eventID() const { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
439  int wordCount() const { return (word_ & WORD_COUNT_MASK); }
440 
441  static void set(uint32_t& word, int pc, int paf, int hu, int tdc_id, int event_id, int word_count) {
443  hu << PAF_SHIFT | tdc_id << TDC_ID_SHIFT | event_id << EVENT_ID_SHIFT | word_count;
444  }
445 
446 private:
447  uint32_t word_;
448 };
449 
458 public:
461 
462  DTTDCMeasurementWord(const uint32_t index) : word_(index) {}
463 
466 
467  int PC() const { return (word_ & PC_MASK) >> PC_SHIFT; }
468  int PAF() const { return (word_ & PAF_MASK) >> PAF_SHIFT; }
469  int HU() const { return (word_ & PAF_MASK) >> PAF_SHIFT; }
470  int tdcID() const { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
471  int tdcChannel() const { return (word_ & TDC_CHANNEL_MASK) >> TDC_CHANNEL_SHIFT; }
472  int tdcTime() const { return (word_ & TDC_TIME_MASK) >> TDC_TIME_SHIFT; }
473 
474  static void set(uint32_t& word, int pc, int paf, int hu, int tdc_id, int tdc_channel, int tdc_time) {
476  tdc_id << TDC_ID_SHIFT | tdc_channel << TDC_CHANNEL_SHIFT | tdc_time;
477  }
478 
479 private:
480  uint32_t word_;
481 };
482 
491 public:
494 
495  DTTDCErrorWord(const uint32_t index) : word_(index) {}
496 
498  virtual ~DTTDCErrorWord() {}
499 
500  int PC() const { return (word_ & PC_MASK) >> PC_SHIFT; }
501  int PAF() const { return (word_ & PAF_MASK) >> PAF_SHIFT; }
502  int HU() const { return (word_ & PAF_MASK) >> PAF_SHIFT; }
503  int tdcID() const { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
504  int tdcError() const { return (word_ & TDC_ERROR_MASK); }
505 
506  static void set(uint32_t& word, int pc, int paf, int hu, int tdc_id, int tdc_error) {
508  tdc_id << TDC_ID_SHIFT | 0 << ERRORSHIFT | tdc_error;
509  }
510 
511 private:
512  uint32_t word_;
513 };
514 
522 public:
525 
527 
530 
531  int eventID() const { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
532  int SCFO() const { return (word_ & SCFO_MASK); }
533 
534  static void set(uint32_t& word, int event_id, int scfo) {
536  event_id << EVENT_ID_SHIFT | scfo;
537  }
538 
539 private:
540  uint32_t word_;
541 };
542 
550 public:
553 
555 
558 
559  int wordCount() const { return (word_ & TRIGGER_WORD_COUNT_MASK); }
560 
561  static void set(uint32_t& word, int word_count) {
562  word =
564  }
565 
566 private:
567  uint32_t word_;
568 };
569 
577 public:
580 
581  DTLocalTriggerDataWord(const uint32_t index) : word_(index) {}
582 
585 
586  int SCData() const { return (word_ & TRIGGER_DATA_MASK); }
587 
588  int getBits(int first) const {
589  return first == 1 ? ((word_ & TRIGGER_DATA_MASK) >> 8) : ((word_ & TRIGGER_DATA_MASK) & 0xFF);
590  }
591 
592  //int hasTrigger(int first) const { return (getBits(first) & 0x40) >> 6; }
593  int hasTrigger(int first) const { return (trackQuality(first) != 7 ? 1 : 0); }
594  int trackQuality(int first) const { return (getBits(first) & 0xE) >> 1; }
595 
596  static void set(uint32_t& word, int sc_data) {
598  }
599 
600 private:
601  uint32_t word_;
602 };
603 
611 public:
614 
615  DTDDUFirstStatusWord(const unsigned char index) : word_(index) {}
616 
619 
620  int channelEnabled() const { return (word_ & 0x1); }
621  int timeout() const { return (word_ & 0x2) >> 1; }
622  int eventTrailerLost() const { return (word_ & 0x4) >> 2; }
623  int opticalFiberSignalLost() const { return (word_ & 0x8) >> 3; }
624  int tlkPropagationError() const { return (word_ & 0x10) >> 4; }
625  int tlkPatternError() const { return (word_ & 0x20) >> 5; }
626  int tlkSignalLost() const { return (word_ & 0x40) >> 6; }
627  int errorFromROS() const { return (word_ & 0x80) >> 7; }
628 
629 private:
630  unsigned char word_;
631 };
632 
641 public:
644 
645  DTDDUSecondStatusWord(const uint32_t index) : word_(index) {}
646 
649 
650  int l1AIDError() const { return (word_ & 0x1); }
651  int bxIDError() const { return (word_ & 0x2) >> 1; }
652  int fifoFull() const { return (word_ & 0x1C) >> 2; }
653  int inputFifoFull() const { return (word_ & 0xE0) >> 5; }
654  int fifoAlmostFull() const { return (word_ & 0x700) >> 8; }
655  int inputFifoAlmostFull() const { return (word_ & 0x3800) >> 11; }
656  int outputFifoFull() const { return (word_ & 0x4000) >> 14; }
657  int outputFifoAlmostFull() const { return (word_ & 0x8000) >> 15; }
658  int rosList() const { return (word_ & 0xFFF0000) >> 16; }
659  int warningROSPAF() const { return (word_ & 0x10000000) >> 28; }
660  int busyROSPAF() const { return (word_ & 0x20000000) >> 29; }
661  int outOfSynchROSError() const { return (word_ & 0x40000000) >> 30; }
662 
663  // int fifoAlmostEmpty() const { return (word_ & 0x1C000) >> 14; }
664  // int inputFifoAlmostEmpty() const { return (word_ & 0xE0000) >> 17; }
665  // int outputFifoFull() const { return (word_ & 0x100000) >> 20; }
666  // int outputFifoAlmostFull() const { return (word_ & 0x200000) >> 21; }
667  // int outputFifoAlmostEmpty() const { return (word_ & 0x400000) >> 22; }
668 
669 private:
670  uint32_t word_;
671 };
672 
681 public:
684 
686 
689 
690  int Latency() const { return ((word_ >> SC_LAT_SHIFT) & SC_LAT_MASK); }
691  int NumberOf16bitWords() const { return (word_ & SC_NW_MASK); }
692 
693  static void set(uint32_t& word, int lat, int nw) {
695  (lat & SC_LAT_MASK) << SC_LAT_SHIFT | (nw & SC_NW_MASK);
696  }
697 
698 private:
699  uint32_t word_;
700 };
701 
710 public:
713 
715 
718 
719  int TriggerDelay() const { return ((word_ >> SC_TRIGGERDLY_SHIFT) & SC_TRIGGERDLY_MASK); }
720  int LocalBunchCounter() const { return (word_ & SC_BXC_MASK); }
721 
722  static void set(uint32_t& word, int trigdly, int bxcount) {
724  (trigdly & SC_TRIGGERDLY_MASK) << SC_TRIGGERDLY_SHIFT | (bxcount & SC_BXC_MASK);
725  }
726 
727 private:
728  uint32_t word_;
729 };
730 
731 #endif
int robID() const
Definition: DTDDUWords.h:271
int dontRead() const
Definition: DTDDUWords.h:306
DTROSWordType(const uint32_t index)
Constructor.
Definition: DTDDUWords.h:91
int cerosIdCerosStatus() const
Definition: DTDDUWords.h:302
DTLocalTriggerDataWord()
Constructor.
Definition: DTDDUWords.h:579
virtual ~DTTDCErrorWord()
Destructor.
Definition: DTDDUWords.h:498
DTTDCHeaderWord()
Constructor.
Definition: DTDDUWords.h:394
#define WORDCONTROLMASK
Definition: DTDDUWords.h:10
DTLocalTriggerDataWord(const uint32_t index)
Definition: DTDDUWords.h:581
int trackQuality(int first) const
Definition: DTDDUWords.h:594
#define EV_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:25
int cerosID() const
Definition: DTDDUWords.h:272
#define TDC_TIME_MASK
Definition: DTDDUWords.h:60
int tdcTime() const
Definition: DTDDUWords.h:472
int TTCEventCounter() const
Definition: DTDDUWords.h:209
int TFF() const
Definition: DTDDUWords.h:240
virtual ~DTROSTrailerWord()
Destructor.
Definition: DTDDUWords.h:238
DTLocalTriggerTrailerWord(const uint32_t index)
Definition: DTDDUWords.h:554
#define DEBUG_TYPE_MASK
Definition: DTDDUWords.h:19
DTDDUSecondStatusWord()
Constructor.
Definition: DTDDUWords.h:643
int l1AIDError() const
Definition: DTDDUWords.h:650
int rosList() const
Definition: DTDDUWords.h:658
int eventID() const
Definition: DTDDUWords.h:405
int errorType() const
Definition: DTDDUWords.h:270
int debugMessage() const
Definition: DTDDUWords.h:301
uint32_t word_
Definition: DTDDUWords.h:321
int PAF() const
Definition: DTDDUWords.h:435
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
virtual ~DTTDCHeaderWord()
Destructor.
Definition: DTDDUWords.h:399
int tdcChannel() const
Definition: DTDDUWords.h:471
DTROSErrorWord(const uint32_t index)
Definition: DTDDUWords.h:265
#define SC_TRIGGERDLY_MASK
Definition: DTDDUWords.h:76
int HU() const
Definition: DTDDUWords.h:502
#define L1A_FIFO_OCC_MASK
Definition: DTDDUWords.h:35
DTROSDebugWord(const uint32_t index)
Definition: DTDDUWords.h:295
int PC() const
Definition: DTDDUWords.h:500
#define WORD_COUNT_MASK
Definition: DTDDUWords.h:49
virtual ~DTROSHeaderWord()
Destructor.
Definition: DTDDUWords.h:207
static const uint32_t trailerControlWord
Definition: DTDDUWords.h:178
DTTDCErrorWord()
Constructor.
Definition: DTDDUWords.h:493
DTROBHeaderWord(const uint32_t index)
Definition: DTDDUWords.h:336
int errorFromROS() const
Definition: DTDDUWords.h:627
#define ERROR_CEROS_ID_MASK
Definition: DTDDUWords.h:43
uint32_t word_
Definition: DTDDUWords.h:190
uint32_t word_
Definition: DTDDUWords.h:512
int PC() const
Definition: DTDDUWords.h:434
int inputFifoAlmostFull() const
Definition: DTDDUWords.h:655
DTLocalTriggerSectorCollectorSubHeaderWord(const uint32_t index)
Definition: DTDDUWords.h:714
DTROBTrailerWord()
Constructor.
Definition: DTDDUWords.h:364
int timeout() const
Definition: DTDDUWords.h:621
virtual ~DTLocalTriggerHeaderWord()
Destructor.
Definition: DTDDUWords.h:529
#define WORDTYPEMASK
Definition: DTDDUWords.h:12
int busyROSPAF() const
Definition: DTDDUWords.h:660
DTLocalTriggerSectorCollectorSubHeaderWord()
Constructor.
Definition: DTDDUWords.h:712
virtual ~DTROBTrailerWord()
Destructor.
Definition: DTDDUWords.h:369
int eventID() const
Definition: DTDDUWords.h:372
int tdcID() const
<== OBSOLETE!!
Definition: DTDDUWords.h:470
int wordCount() const
Definition: DTDDUWords.h:373
int eventID() const
Definition: DTDDUWords.h:342
DTLocalTriggerHeaderWord()
Constructor.
Definition: DTDDUWords.h:524
int l1AFifoOccupancy() const
Definition: DTDDUWords.h:242
#define SC_LAT_MASK
Definition: DTDDUWords.h:72
static const uint32_t tdcHeaderControlWord
Definition: DTDDUWords.h:179
int eventTrailerLost() const
Definition: DTDDUWords.h:622
#define TRIGGER_DATA_MASK
Definition: DTDDUWords.h:69
#define SC_TRIGGERDLY_SHIFT
Definition: DTDDUWords.h:77
DTDDUFirstStatusWord(const unsigned char index)
Definition: DTDDUWords.h:615
int tlkSignalLost() const
Definition: DTDDUWords.h:626
unsigned char word_
Definition: DTDDUWords.h:630
int tlkPropagationError() const
Definition: DTDDUWords.h:624
#define TFF_MASK
Definition: DTDDUWords.h:31
#define TTC_EVENT_COUNTER_MASK
Definition: DTDDUWords.h:29
DTTDCMeasurementWord()
Constructor.
Definition: DTDDUWords.h:460
virtual ~DTLocalTriggerDataWord()
Destructor.
Definition: DTDDUWords.h:584
int getBits(int first) const
Definition: DTDDUWords.h:588
uint64_t word
int outOfSynchROSError() const
Definition: DTDDUWords.h:661
int robID() const
Definition: DTDDUWords.h:341
DTTDCHeaderWord(const uint32_t index)
Definition: DTDDUWords.h:396
static const uint32_t errorControlWord
Definition: DTDDUWords.h:182
#define PC_SHIFT
Definition: DTDDUWords.h:52
DTLocalTriggerSectorCollectorHeaderWord(const uint32_t index)
Definition: DTDDUWords.h:685
int cerosIdRosStatus() const
Definition: DTDDUWords.h:307
int HU() const
Definition: DTDDUWords.h:436
DTROBTrailerWord(const uint32_t index)
Definition: DTDDUWords.h:366
#define EVENT_ID_MASK
Definition: DTDDUWords.h:46
int tdcID() const
<== OBSOLETE!!
Definition: DTDDUWords.h:503
int PAF() const
Definition: DTDDUWords.h:402
#define ERROR_TYPE_MASK
Definition: DTDDUWords.h:39
int bunchID() const
Definition: DTDDUWords.h:343
virtual ~DTTDCTrailerWord()
Destructor.
Definition: DTDDUWords.h:432
#define TRIGGER_WORD_COUNT_MASK
Definition: DTDDUWords.h:67
DTLocalTriggerHeaderWord(const uint32_t index)
Definition: DTDDUWords.h:526
DTLocalTriggerSectorCollectorHeaderWord()
Constructor.
Definition: DTDDUWords.h:683
#define ROB_ID_MASK
Definition: DTDDUWords.h:45
#define CEROS_ID_ROS_STATUS_MASK
Definition: DTDDUWords.h:27
static const uint32_t tdcTrailerControlWord
Definition: DTDDUWords.h:180
int eventID() const
Definition: DTDDUWords.h:438
static const uint32_t scTypeWord
Definition: DTDDUWords.h:187
int outputFifoFull() const
Definition: DTDDUWords.h:656
#define PC_MASK
Definition: DTDDUWords.h:51
int PC() const
Definition: DTDDUWords.h:401
#define ERRORSHIFT
Definition: DTDDUWords.h:17
virtual ~DTROBHeaderWord()
Destructor.
Definition: DTDDUWords.h:339
DTROSHeaderWord(const uint32_t index)
Definition: DTDDUWords.h:204
virtual ~DTLocalTriggerSectorCollectorHeaderWord()
Destructor.
Definition: DTDDUWords.h:688
int bunchID() const
Definition: DTDDUWords.h:406
virtual ~DTTDCMeasurementWord()
Destructor.
Definition: DTDDUWords.h:465
virtual ~DTDDUFirstStatusWord()
Destructor.
Definition: DTDDUWords.h:618
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
int outputFifoAlmostFull() const
Definition: DTDDUWords.h:657
DTTDCTrailerWord()
Constructor.
Definition: DTDDUWords.h:427
#define DEBUG_MESSAGE_MASK
Definition: DTDDUWords.h:21
#define CEROS_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:23
int evIdMis() const
Definition: DTDDUWords.h:305
uint32_t word_
Definition: DTDDUWords.h:351
#define ERROR_ROB_ID_MASK
Definition: DTDDUWords.h:41
#define PAF_SHIFT
Definition: DTDDUWords.h:54
DTTDCErrorWord(const uint32_t index)
Definition: DTDDUWords.h:495
DTROSTrailerWord(const uint32_t index)
Definition: DTDDUWords.h:235
uint32_t word_
Definition: DTDDUWords.h:381
#define SC_BXC_MASK
Definition: DTDDUWords.h:78
#define TPX_MASK
Definition: DTDDUWords.h:33
int TPX() const
Definition: DTDDUWords.h:241
#define EVENT_WORD_COUNT_MASK
Definition: DTDDUWords.h:37
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
DTROSDebugWord()
Constructor.
Definition: DTDDUWords.h:293
enum wordTypes type()
DDU word type getter.
Definition: DTDDUWords.h:118
#define TFF_SHIFT
Definition: DTDDUWords.h:32
virtual ~DTDDUSecondStatusWord()
Destructor.
Definition: DTDDUWords.h:648
int inputFifoFull() const
Definition: DTDDUWords.h:653
#define DONTREAD_CEROS_STATUS_MASK
Definition: DTDDUWords.h:26
int wordCount() const
Definition: DTDDUWords.h:439
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20
virtual ~DTLocalTriggerSectorCollectorSubHeaderWord()
Destructor.
Definition: DTDDUWords.h:717
uint32_t word_
Definition: DTDDUWords.h:447
static const uint32_t tdcDataControlWord
Definition: DTDDUWords.h:181
wordTypes
List of DT DDU Word Types.
Definition: DTDDUWords.h:99
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:186
int hasTrigger(int first) const
Definition: DTDDUWords.h:593
int PAF() const
Definition: DTDDUWords.h:501
int robID() const
Definition: DTDDUWords.h:371
int tdcID() const
<== OBSOLETE!!
Definition: DTDDUWords.h:404
int tdcID() const
<== OBSOLETE!!
Definition: DTDDUWords.h:437
int channelEnabled() const
Definition: DTDDUWords.h:620
DTTDCTrailerWord(const uint32_t index)
Definition: DTDDUWords.h:429
#define BUNCH_ID_MASK
Definition: DTDDUWords.h:48
#define CEROS_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:22
#define TDC_CHANNEL_MASK
Definition: DTDDUWords.h:58
static const uint32_t debugControlWord
Definition: DTDDUWords.h:183
int fifoFull() const
Definition: DTDDUWords.h:652
#define EV_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:24
#define SC_LAT_SHIFT
Definition: DTDDUWords.h:71
int tlkPatternError() const
Definition: DTDDUWords.h:625
#define TDC_ERROR_MASK
Definition: DTDDUWords.h:63
int HU() const
Definition: DTDDUWords.h:403
int bxIDError() const
Definition: DTDDUWords.h:651
int EventWordCount() const
Definition: DTDDUWords.h:243
#define ERROR_TYPE_SHIFT
Definition: DTDDUWords.h:40
int debugType() const
Definition: DTDDUWords.h:300
#define SCFO_MASK
Definition: DTDDUWords.h:65
#define SC_NW_MASK
Definition: DTDDUWords.h:74
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
#define PAF_MASK
Definition: DTDDUWords.h:53
DTROSErrorWord()
Constructor.
Definition: DTDDUWords.h:263
uint32_t word_
Definition: DTDDUWords.h:251
#define TDC_CHANNEL_SHIFT
Definition: DTDDUWords.h:59
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47
static const uint32_t headerControlWord
Control bits definitions.
Definition: DTDDUWords.h:177
DTROSHeaderWord()
Constructor.
Definition: DTDDUWords.h:202
virtual ~DTROSWordType()
Destructor.
Definition: DTDDUWords.h:96
int tdcError() const
Definition: DTDDUWords.h:504
virtual ~DTROSErrorWord()
Destructor.
Definition: DTDDUWords.h:268
uint32_t word_
Definition: DTDDUWords.h:217
DTROBHeaderWord()
Constructor.
Definition: DTDDUWords.h:334
int warningROSPAF() const
Definition: DTDDUWords.h:659
DTROSTrailerWord()
Constructor.
Definition: DTDDUWords.h:233
uint32_t word_
Definition: DTDDUWords.h:280
DTTDCMeasurementWord(const uint32_t index)
Definition: DTDDUWords.h:462
uint32_t word_
Definition: DTDDUWords.h:414
DTLocalTriggerTrailerWord()
Constructor.
Definition: DTDDUWords.h:552
int fifoAlmostFull() const
Definition: DTDDUWords.h:654
#define TPX_SHIFT
Definition: DTDDUWords.h:34
DTDDUSecondStatusWord(const uint32_t index)
Definition: DTDDUWords.h:645
#define ERROR_ROB_ID_SHIFT
Definition: DTDDUWords.h:42
virtual ~DTLocalTriggerTrailerWord()
Destructor.
Definition: DTDDUWords.h:557
int opticalFiberSignalLost() const
Definition: DTDDUWords.h:623
DTDDUFirstStatusWord()
Constructor.
Definition: DTDDUWords.h:613
virtual ~DTROSDebugWord()
Destructor.
Definition: DTDDUWords.h:298
#define TDC_TIME_SHIFT
Definition: DTDDUWords.h:61
#define L1A_FIFO_OCC_SHIFT
Definition: DTDDUWords.h:36