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 DTTDCTrailerWord &obj)
 
 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 440 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTTDCTrailerWord() [1/3]

DTTDCTrailerWord::DTTDCTrailerWord ( )
inline

Constructor.

Definition at line 443 of file DTDDUWords.h.

443 {}

◆ DTTDCTrailerWord() [2/3]

DTTDCTrailerWord::DTTDCTrailerWord ( const DTTDCTrailerWord obj)
inline

Definition at line 445 of file DTDDUWords.h.

445 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTTDCTrailerWord() [3/3]

DTTDCTrailerWord::DTTDCTrailerWord ( const uint32_t  index)
inline

Definition at line 447 of file DTDDUWords.h.

447 : word_(index) {}

◆ ~DTTDCTrailerWord()

virtual DTTDCTrailerWord::~DTTDCTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 450 of file DTDDUWords.h.

450 {}

Member Function Documentation

◆ eventID()

int DTTDCTrailerWord::eventID ( ) const
inline

Definition at line 456 of file DTDDUWords.h.

456 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

◆ HU()

int DTTDCTrailerWord::HU ( ) const
inline

Definition at line 454 of file DTDDUWords.h.

454 { return (word_ & PAF_MASK) >> PAF_SHIFT; }

References PAF_MASK, PAF_SHIFT, and word_.

◆ PAF()

int DTTDCTrailerWord::PAF ( ) const
inline

Definition at line 453 of file DTDDUWords.h.

453 { return (word_ & PAF_MASK) >> PAF_SHIFT; }

References PAF_MASK, PAF_SHIFT, and word_.

◆ PC()

int DTTDCTrailerWord::PC ( ) const
inline

Definition at line 452 of file DTDDUWords.h.

452 { return (word_ & PC_MASK) >> PC_SHIFT; }

References PC_MASK, PC_SHIFT, and word_.

◆ 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 459 of file DTDDUWords.h.

459  {
461  hu << PAF_SHIFT | tdc_id << TDC_ID_SHIFT | event_id << EVENT_ID_SHIFT | word_count;
462  }

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

◆ tdcID()

int DTTDCTrailerWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 455 of file DTDDUWords.h.

455 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

◆ wordCount()

int DTTDCTrailerWord::wordCount ( ) const
inline

Definition at line 457 of file DTDDUWords.h.

457 { return (word_ & WORD_COUNT_MASK); }

References word_, and WORD_COUNT_MASK.

Member Data Documentation

◆ word_

uint32_t DTTDCTrailerWord::word_
private

Definition at line 465 of file DTDDUWords.h.

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

DTROSWordType::tdcTrailerControlWord
static const uint32_t tdcTrailerControlWord
Definition: DTDDUWords.h:182
WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
WORD_COUNT_MASK
#define WORD_COUNT_MASK
Definition: DTDDUWords.h:49
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
PC_SHIFT
#define PC_SHIFT
Definition: DTDDUWords.h:52
PC_MASK
#define PC_MASK
Definition: DTDDUWords.h:51
EVENT_ID_MASK
#define EVENT_ID_MASK
Definition: DTDDUWords.h:46
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
TDC_ID_MASK
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
PAF_MASK
#define PAF_MASK
Definition: DTDDUWords.h:53
PAF_SHIFT
#define PAF_SHIFT
Definition: DTDDUWords.h:54
EVENT_ID_SHIFT
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
TDC_ID_SHIFT
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
DTTDCTrailerWord::word_
uint32_t word_
Definition: DTDDUWords.h:465