CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
DTLocalTriggerHeaderWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

 DTLocalTriggerHeaderWord ()
 Constructor. More...
 
 DTLocalTriggerHeaderWord (const uint32_t index)
 
int eventID () const
 
int SCFO () const
 
virtual ~DTLocalTriggerHeaderWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int event_id, int scfo)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT Sector Collector header interpreter. It interprets ROS event ID (12 bits) and the Sector Collector FIFO occupancy (8 bits)

Author
M. Zanetti - INFN Padova

Definition at line 521 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTLocalTriggerHeaderWord() [1/2]

DTLocalTriggerHeaderWord::DTLocalTriggerHeaderWord ( )
inline

Constructor.

Definition at line 524 of file DTDDUWords.h.

524 {}

◆ DTLocalTriggerHeaderWord() [2/2]

DTLocalTriggerHeaderWord::DTLocalTriggerHeaderWord ( const uint32_t  index)
inline

Definition at line 526 of file DTDDUWords.h.

◆ ~DTLocalTriggerHeaderWord()

virtual DTLocalTriggerHeaderWord::~DTLocalTriggerHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 529 of file DTDDUWords.h.

529 {}

Member Function Documentation

◆ eventID()

int DTLocalTriggerHeaderWord::eventID ( ) const
inline

Definition at line 531 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

531 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
#define EVENT_ID_MASK
Definition: DTDDUWords.h:46
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47

◆ SCFO()

int DTLocalTriggerHeaderWord::SCFO ( ) const
inline

Definition at line 532 of file DTDDUWords.h.

References SCFO_MASK, and word_.

532 { return (word_ & SCFO_MASK); }
#define SCFO_MASK
Definition: DTDDUWords.h:65

◆ set()

static void DTLocalTriggerHeaderWord::set ( uint32_t &  word,
int  event_id,
int  scfo 
)
inlinestatic

Definition at line 534 of file DTDDUWords.h.

References EVENT_ID_SHIFT, DTROSWordType::headerControlWord, DTROSWordType::scTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

534  {
536  event_id << EVENT_ID_SHIFT | scfo;
537  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
static const uint32_t scTypeWord
Definition: DTDDUWords.h:187
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47
static const uint32_t headerControlWord
Control bits definitions.
Definition: DTDDUWords.h:177

Member Data Documentation

◆ word_

uint32_t DTLocalTriggerHeaderWord::word_
private

Definition at line 540 of file DTDDUWords.h.

Referenced by eventID(), and SCFO().