CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 552 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTTDCTrailerWord::DTTDCTrailerWord ( )
inline

Constructor.

Definition at line 557 of file DTDDUWords.h.

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

Definition at line 559 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

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

Definition at line 561 of file DTDDUWords.h.

561  :
562  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:594
virtual DTTDCTrailerWord::~DTTDCTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 565 of file DTDDUWords.h.

565 {}

Member Function Documentation

int DTTDCTrailerWord::eventID ( ) const
inline

Definition at line 571 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

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

Definition at line 569 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

Definition at line 568 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

Definition at line 567 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

567 { return (word_ & PC_MASK) >> PC_SHIFT;}
#define PC_SHIFT
Definition: DTDDUWords.h:53
#define PC_MASK
Definition: DTDDUWords.h:52
uint32_t word_
Definition: DTDDUWords.h:594
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 574 of file DTDDUWords.h.

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

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

580  {
581 
582  word =
584  pc << PC_SHIFT |
585  paf << PAF_SHIFT |
586  hu << PAF_SHIFT |
587  tdc_id << TDC_ID_SHIFT |
588  event_id << EVENT_ID_SHIFT |
589  word_count;
590  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#define PC_SHIFT
Definition: DTDDUWords.h:53
static const uint32_t tdcTrailerControlWord
Definition: DTDDUWords.h:184
#define PAF_SHIFT
Definition: DTDDUWords.h:55
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:57
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:48
int DTTDCTrailerWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 570 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

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

Definition at line 572 of file DTDDUWords.h.

References word_, and WORD_COUNT_MASK.

572 { return (word_ & WORD_COUNT_MASK);}
#define WORD_COUNT_MASK
Definition: DTDDUWords.h:50
uint32_t word_
Definition: DTDDUWords.h:594

Member Data Documentation

uint32_t DTTDCTrailerWord::word_
private

Definition at line 594 of file DTDDUWords.h.

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