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::DTTDCTrailerWord ( )
inline

Constructor.

Definition at line 443 of file DTDDUWords.h.

443 {}
DTTDCTrailerWord::DTTDCTrailerWord ( const DTTDCTrailerWord obj)
inline

Definition at line 445 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

445 { *this = obj; }
DTTDCTrailerWord::DTTDCTrailerWord ( const uint32_t  index)
inline

Definition at line 447 of file DTDDUWords.h.

virtual DTTDCTrailerWord::~DTTDCTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 450 of file DTDDUWords.h.

450 {}

Member Function Documentation

int DTTDCTrailerWord::eventID ( ) const
inline

Definition at line 456 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and DTROSWordType::word_.

456 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
#define EVENT_ID_MASK
Definition: DTDDUWords.h:46
uint32_t word_
Definition: DTDDUWords.h:465
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47
int DTTDCTrailerWord::HU ( ) const
inline

Definition at line 454 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and DTROSWordType::word_.

454 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
#define PAF_SHIFT
Definition: DTDDUWords.h:54
uint32_t word_
Definition: DTDDUWords.h:465
#define PAF_MASK
Definition: DTDDUWords.h:53
int DTTDCTrailerWord::PAF ( ) const
inline

Definition at line 453 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and DTROSWordType::word_.

453 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
#define PAF_SHIFT
Definition: DTDDUWords.h:54
uint32_t word_
Definition: DTDDUWords.h:465
#define PAF_MASK
Definition: DTDDUWords.h:53
int DTTDCTrailerWord::PC ( ) const
inline

Definition at line 452 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and DTROSWordType::word_.

452 { 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:465
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.

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

459  {
461  hu << PAF_SHIFT | tdc_id << TDC_ID_SHIFT | event_id << EVENT_ID_SHIFT | word_count;
462  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
#define PC_SHIFT
Definition: DTDDUWords.h:52
static const uint32_t tdcTrailerControlWord
Definition: DTDDUWords.h:182
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47
int DTTDCTrailerWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 455 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and DTROSWordType::word_.

455 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
uint32_t word_
Definition: DTDDUWords.h:465
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
int DTTDCTrailerWord::wordCount ( ) const
inline

Definition at line 457 of file DTDDUWords.h.

References DTROSWordType::word_, and WORD_COUNT_MASK.

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

Member Data Documentation

uint32_t DTTDCTrailerWord::word_
private

Definition at line 465 of file DTDDUWords.h.