CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
DTTDCTrailerWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

 DTTDCTrailerWord ()
 Constructor. More...
 
 DTTDCTrailerWord (const uint32_t index)
 
int eventID () const
 
int HU () const
 
int PAF () const
 
int PC () const
 
int tdcID () const
 <== OBSOLETE!! More...
 
int wordCount () const
 
virtual ~DTTDCTrailerWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int pc, int paf, int hu, int tdc_id, int event_id, int word_count)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT TDC Trailer interpreter. It interprets the Parity Checks, FIFO occupancy, Lokeced channels (all 1 bit), the TDC_ID (2 bits), the Event ID (12 bits) and the Word ID (12 bits).

Author
M. Zanetti - INFN Padova

Definition at line 424 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTTDCTrailerWord() [1/2]

DTTDCTrailerWord::DTTDCTrailerWord ( )
inline

Constructor.

Definition at line 427 of file DTDDUWords.h.

427 {}

◆ DTTDCTrailerWord() [2/2]

DTTDCTrailerWord::DTTDCTrailerWord ( const uint32_t  index)
inline

Definition at line 429 of file DTDDUWords.h.

◆ ~DTTDCTrailerWord()

virtual DTTDCTrailerWord::~DTTDCTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 432 of file DTDDUWords.h.

432 {}

Member Function Documentation

◆ eventID()

int DTTDCTrailerWord::eventID ( ) const
inline

Definition at line 438 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

438 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
#define EVENT_ID_MASK
Definition: DTDDUWords.h:46
uint32_t word_
Definition: DTDDUWords.h:447
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47

◆ HU()

int DTTDCTrailerWord::HU ( ) const
inline

Definition at line 436 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

436 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
#define PAF_SHIFT
Definition: DTDDUWords.h:54
uint32_t word_
Definition: DTDDUWords.h:447
#define PAF_MASK
Definition: DTDDUWords.h:53

◆ PAF()

int DTTDCTrailerWord::PAF ( ) const
inline

Definition at line 435 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

435 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
#define PAF_SHIFT
Definition: DTDDUWords.h:54
uint32_t word_
Definition: DTDDUWords.h:447
#define PAF_MASK
Definition: DTDDUWords.h:53

◆ PC()

int DTTDCTrailerWord::PC ( ) const
inline

Definition at line 434 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

434 { return (word_ & PC_MASK) >> PC_SHIFT; }
#define PC_SHIFT
Definition: DTDDUWords.h:52
#define PC_MASK
Definition: DTDDUWords.h:51
uint32_t word_
Definition: DTDDUWords.h:447

◆ set()

static void DTTDCTrailerWord::set ( uint32_t &  word,
int  pc,
int  paf,
int  hu,
int  tdc_id,
int  event_id,
int  word_count 
)
inlinestatic

Definition at line 441 of file DTDDUWords.h.

References EVENT_ID_SHIFT, PAF_SHIFT, PC_SHIFT, TDC_ID_SHIFT, DTROSWordType::tdcTrailerControlWord, and WORDCONTROLSHIFT.

441  {
443  hu << PAF_SHIFT | tdc_id << TDC_ID_SHIFT | event_id << EVENT_ID_SHIFT | word_count;
444  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
#define PC_SHIFT
Definition: DTDDUWords.h:52
static const uint32_t tdcTrailerControlWord
Definition: DTDDUWords.h:180
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47

◆ tdcID()

int DTTDCTrailerWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 437 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

437 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
uint32_t word_
Definition: DTDDUWords.h:447
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56

◆ wordCount()

int DTTDCTrailerWord::wordCount ( ) const
inline

Definition at line 439 of file DTDDUWords.h.

References word_, and WORD_COUNT_MASK.

439 { return (word_ & WORD_COUNT_MASK); }
#define WORD_COUNT_MASK
Definition: DTDDUWords.h:49
uint32_t word_
Definition: DTDDUWords.h:447

Member Data Documentation

◆ word_

uint32_t DTTDCTrailerWord::word_
private

Definition at line 447 of file DTDDUWords.h.

Referenced by eventID(), HU(), PAF(), PC(), tdcID(), and wordCount().