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
DTTDCHeaderWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

int bunchID () const
 
 DTTDCHeaderWord ()
 Constructor. More...
 
 DTTDCHeaderWord (const DTTDCHeaderWord &obj)
 
 DTTDCHeaderWord (const uint32_t index)
 
int eventID () const
 
int HU () const
 
int PAF () const
 
int PC () const
 
int tdcID () const
 <== OBSOLETE!! More...
 
virtual ~DTTDCHeaderWord ()
 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 bunch_id)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT TDC Header 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 Bunch ID (12 bits).

Date:
2009/05/07 07:57:03
Revision:
1.13
Author
M. Zanetti - INFN Padova

Definition at line 514 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTTDCHeaderWord::DTTDCHeaderWord ( )
inline

Constructor.

Definition at line 519 of file DTDDUWords.h.

519 {}
DTTDCHeaderWord::DTTDCHeaderWord ( const DTTDCHeaderWord obj)
inline

Definition at line 521 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

521 { *this = obj; }
DTTDCHeaderWord::DTTDCHeaderWord ( const uint32_t  index)
inline

Definition at line 523 of file DTDDUWords.h.

523  :
524  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:557
virtual DTTDCHeaderWord::~DTTDCHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 527 of file DTDDUWords.h.

527 {}

Member Function Documentation

int DTTDCHeaderWord::bunchID ( ) const
inline

Definition at line 534 of file DTDDUWords.h.

References BUNCH_ID_MASK, and word_.

534 { return (word_ & BUNCH_ID_MASK);}
#define BUNCH_ID_MASK
Definition: DTDDUWords.h:49
uint32_t word_
Definition: DTDDUWords.h:557
int DTTDCHeaderWord::eventID ( ) const
inline

Definition at line 533 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

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

Definition at line 531 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

Definition at line 530 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

Definition at line 529 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

529 { 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:557
static void DTTDCHeaderWord::set ( uint32_t &  word,
int  pc,
int  paf,
int  hu,
int  tdc_id,
int  event_id,
int  bunch_id 
)
inlinestatic

Definition at line 536 of file DTDDUWords.h.

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

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

542  {
543 
544  word =
546  pc << PC_SHIFT |
547  paf << PAF_SHIFT |
548  hu << PAF_SHIFT |
549  tdc_id << TDC_ID_SHIFT |
550  event_id << EVENT_ID_SHIFT |
551  bunch_id;
552  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t tdcHeaderControlWord
Definition: DTDDUWords.h:185
#define PC_SHIFT
Definition: DTDDUWords.h:53
#define PAF_SHIFT
Definition: DTDDUWords.h:55
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:57
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:48
int DTTDCHeaderWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 532 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

532 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT;}
#define TDC_ID_MASK
Definition: DTDDUWords.h:56
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:57
uint32_t word_
Definition: DTDDUWords.h:557

Member Data Documentation

uint32_t DTTDCHeaderWord::word_
private

Definition at line 557 of file DTDDUWords.h.

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