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
DTROSTrailerWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

 DTROSTrailerWord ()
 Constructor. More...
 
 DTROSTrailerWord (const DTROSTrailerWord &obj)
 
 DTROSTrailerWord (const uint32_t index)
 
int EventWordCount () const
 
int l1AFifoOccupancy () const
 
int TFF () const
 
int TPX () const
 
virtual ~DTROSTrailerWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int tff, int tpx, int l1a_fifo_occ, int event_word_count)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT ROS Trailer interpreter. Information interpreted:

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

Definition at line 258 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROSTrailerWord::DTROSTrailerWord ( )
inline

Constructor.

Definition at line 263 of file DTDDUWords.h.

263 {}
DTROSTrailerWord::DTROSTrailerWord ( const DTROSTrailerWord obj)
inline

Definition at line 265 of file DTDDUWords.h.

References VarParsing::obj.

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

Definition at line 267 of file DTDDUWords.h.

267  :
268  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:296
virtual DTROSTrailerWord::~DTROSTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 271 of file DTDDUWords.h.

271 {}

Member Function Documentation

int DTROSTrailerWord::EventWordCount ( ) const
inline

Definition at line 276 of file DTDDUWords.h.

References EVENT_WORD_COUNT_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData(), and DTDataIntegrityTask::processROS25().

276 { return word_ & EVENT_WORD_COUNT_MASK; }
#define EVENT_WORD_COUNT_MASK
Definition: DTDDUWords.h:38
uint32_t word_
Definition: DTDDUWords.h:296
int DTROSTrailerWord::l1AFifoOccupancy ( ) const
inline

Definition at line 275 of file DTDDUWords.h.

References L1A_FIFO_OCC_MASK, L1A_FIFO_OCC_SHIFT, and word_.

Referenced by DTDataIntegrityTask::processROS25().

275 { return (word_ & L1A_FIFO_OCC_MASK) >> L1A_FIFO_OCC_SHIFT; }
#define L1A_FIFO_OCC_MASK
Definition: DTDDUWords.h:36
uint32_t word_
Definition: DTDDUWords.h:296
#define L1A_FIFO_OCC_SHIFT
Definition: DTDDUWords.h:37
static void DTROSTrailerWord::set ( uint32_t &  word,
int  tff,
int  tpx,
int  l1a_fifo_occ,
int  event_word_count 
)
inlinestatic

Definition at line 278 of file DTDDUWords.h.

References L1A_FIFO_OCC_SHIFT, DTROSWordType::rosTypeWord, TFF_SHIFT, TPX_SHIFT, DTROSWordType::trailerControlWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

282  {
283 
284  word =
287  tff << TFF_SHIFT |
288  tpx << TPX_SHIFT |
289  l1a_fifo_occ << L1A_FIFO_OCC_SHIFT |
290  event_word_count;
291  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t trailerControlWord
Definition: DTDDUWords.h:184
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define TFF_SHIFT
Definition: DTDDUWords.h:33
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:192
#define TPX_SHIFT
Definition: DTDDUWords.h:35
#define L1A_FIFO_OCC_SHIFT
Definition: DTDDUWords.h:37
int DTROSTrailerWord::TFF ( ) const
inline

Definition at line 273 of file DTDDUWords.h.

References TFF_MASK, TFF_SHIFT, and word_.

273 { return (word_ & TFF_MASK) >> TFF_SHIFT; }
#define TFF_MASK
Definition: DTDDUWords.h:32
#define TFF_SHIFT
Definition: DTDDUWords.h:33
uint32_t word_
Definition: DTDDUWords.h:296
int DTROSTrailerWord::TPX ( ) const
inline

Definition at line 274 of file DTDDUWords.h.

References TPX_MASK, TPX_SHIFT, and word_.

Referenced by DTDataIntegrityTask::processROS25().

274 { return (word_ & TPX_MASK) >> TPX_SHIFT; }
#define TPX_MASK
Definition: DTDDUWords.h:34
uint32_t word_
Definition: DTDDUWords.h:296
#define TPX_SHIFT
Definition: DTDDUWords.h:35

Member Data Documentation

uint32_t DTROSTrailerWord::word_
private

Definition at line 296 of file DTDDUWords.h.

Referenced by EventWordCount(), l1AFifoOccupancy(), TFF(), and TPX().