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

Constructor & Destructor Documentation

DTLocalTriggerHeaderWord::DTLocalTriggerHeaderWord ( )
inline

Constructor.

Definition at line 718 of file DTDDUWords.h.

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

Definition at line 720 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

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

Definition at line 722 of file DTDDUWords.h.

722  :
723  word_(index) {}
virtual DTLocalTriggerHeaderWord::~DTLocalTriggerHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 726 of file DTDDUWords.h.

726 {}

Member Function Documentation

int DTLocalTriggerHeaderWord::eventID ( ) const
inline

Definition at line 728 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

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

Definition at line 729 of file DTDDUWords.h.

References SCFO_MASK, and word_.

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

Definition at line 732 of file DTDDUWords.h.

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

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

734  {
735 
736  word =
739  event_id << EVENT_ID_SHIFT |
740  scfo;
741  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t scTypeWord
Definition: DTDDUWords.h:193
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:48
static const uint32_t headerControlWord
Control bits definitions.
Definition: DTDDUWords.h:183

Member Data Documentation

uint32_t DTLocalTriggerHeaderWord::word_
private

Definition at line 745 of file DTDDUWords.h.

Referenced by eventID(), and SCFO().