CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 DTLocalTriggerHeaderWord &obj)
 
 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 543 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTLocalTriggerHeaderWord::DTLocalTriggerHeaderWord ( )
inline

Constructor.

Definition at line 546 of file DTDDUWords.h.

546 {}
DTLocalTriggerHeaderWord::DTLocalTriggerHeaderWord ( const DTLocalTriggerHeaderWord obj)
inline

Definition at line 548 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

548 { *this = obj; }
DTLocalTriggerHeaderWord::DTLocalTriggerHeaderWord ( const uint32_t  index)
inline

Definition at line 550 of file DTDDUWords.h.

virtual DTLocalTriggerHeaderWord::~DTLocalTriggerHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 553 of file DTDDUWords.h.

553 {}

Member Function Documentation

int DTLocalTriggerHeaderWord::eventID ( ) const
inline

Definition at line 555 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

555 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
#define EVENT_ID_MASK
Definition: DTDDUWords.h:46
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47
int DTLocalTriggerHeaderWord::SCFO ( ) const
inline

Definition at line 556 of file DTDDUWords.h.

References SCFO_MASK, and word_.

556 { return (word_ & SCFO_MASK); }
#define SCFO_MASK
Definition: DTDDUWords.h:65
static void DTLocalTriggerHeaderWord::set ( uint32_t &  word,
int  event_id,
int  scfo 
)
inlinestatic

Definition at line 558 of file DTDDUWords.h.

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

558  {
560  event_id << EVENT_ID_SHIFT | scfo;
561  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
static const uint32_t scTypeWord
Definition: DTDDUWords.h:189
#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:179

Member Data Documentation

uint32_t DTLocalTriggerHeaderWord::word_
private

Definition at line 564 of file DTDDUWords.h.

Referenced by eventID(), and SCFO().