CMS 3D CMS Logo

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).

Author
M. Zanetti - INFN Padova

Definition at line 405 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTTDCHeaderWord() [1/3]

DTTDCHeaderWord::DTTDCHeaderWord ( )
inline

Constructor.

Definition at line 408 of file DTDDUWords.h.

408 {}

◆ DTTDCHeaderWord() [2/3]

DTTDCHeaderWord::DTTDCHeaderWord ( const DTTDCHeaderWord obj)
inline

Definition at line 410 of file DTDDUWords.h.

410 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTTDCHeaderWord() [3/3]

DTTDCHeaderWord::DTTDCHeaderWord ( const uint32_t  index)
inline

Definition at line 412 of file DTDDUWords.h.

412 : word_(index) {}

◆ ~DTTDCHeaderWord()

virtual DTTDCHeaderWord::~DTTDCHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 415 of file DTDDUWords.h.

415 {}

Member Function Documentation

◆ bunchID()

int DTTDCHeaderWord::bunchID ( ) const
inline

Definition at line 422 of file DTDDUWords.h.

422 { return (word_ & BUNCH_ID_MASK); }

References BUNCH_ID_MASK, and word_.

◆ eventID()

int DTTDCHeaderWord::eventID ( ) const
inline

Definition at line 421 of file DTDDUWords.h.

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

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

◆ HU()

int DTTDCHeaderWord::HU ( ) const
inline

Definition at line 419 of file DTDDUWords.h.

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

References PAF_MASK, PAF_SHIFT, and word_.

◆ PAF()

int DTTDCHeaderWord::PAF ( ) const
inline

Definition at line 418 of file DTDDUWords.h.

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

References PAF_MASK, PAF_SHIFT, and word_.

◆ PC()

int DTTDCHeaderWord::PC ( ) const
inline

Definition at line 417 of file DTDDUWords.h.

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

References PC_MASK, PC_SHIFT, and word_.

◆ set()

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

424  {
426  hu << PAF_SHIFT | tdc_id << TDC_ID_SHIFT | event_id << EVENT_ID_SHIFT | bunch_id;
427  }

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

◆ tdcID()

int DTTDCHeaderWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 420 of file DTDDUWords.h.

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

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

Member Data Documentation

◆ word_

uint32_t DTTDCHeaderWord::word_
private

Definition at line 430 of file DTDDUWords.h.

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

DTTDCHeaderWord::word_
uint32_t word_
Definition: DTDDUWords.h:430
DTROSWordType::tdcHeaderControlWord
static const uint32_t tdcHeaderControlWord
Definition: DTDDUWords.h:181
WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
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
BUNCH_ID_MASK
#define BUNCH_ID_MASK
Definition: DTDDUWords.h:48
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