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)

Date:
2009/04/28 12:46:49
Revision:
1.12
Author
M. Zanetti - INFN Padova

Definition at line 735 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTLocalTriggerHeaderWord::DTLocalTriggerHeaderWord ( )
inline

Constructor.

Definition at line 740 of file DTDDUWords.h.

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

Definition at line 742 of file DTDDUWords.h.

References VarParsing::obj.

742 { *this = obj; }
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
DTLocalTriggerHeaderWord::DTLocalTriggerHeaderWord ( const uint32_t  index)
inline

Definition at line 744 of file DTDDUWords.h.

744  :
745  word_(index) {}
virtual DTLocalTriggerHeaderWord::~DTLocalTriggerHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 748 of file DTDDUWords.h.

748 {}

Member Function Documentation

int DTLocalTriggerHeaderWord::eventID ( ) const
inline

Definition at line 750 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

750 { 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 751 of file DTDDUWords.h.

References SCFO_MASK, and word_.

751 { 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 754 of file DTDDUWords.h.

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

756  {
757 
758  word =
761  event_id << EVENT_ID_SHIFT |
762  scfo;
763  }
#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 767 of file DTDDUWords.h.

Referenced by eventID(), and SCFO().