test
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:

Author
M. Zanetti - INFN Padova

Definition at line 254 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROSTrailerWord::DTROSTrailerWord ( )
inline

Constructor.

Definition at line 259 of file DTDDUWords.h.

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

Definition at line 261 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

261 { *this = obj; }
DTROSTrailerWord::DTROSTrailerWord ( const uint32_t  index)
inline

Definition at line 263 of file DTDDUWords.h.

263  :
264  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:292
virtual DTROSTrailerWord::~DTROSTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 267 of file DTDDUWords.h.

267 {}

Member Function Documentation

int DTROSTrailerWord::EventWordCount ( ) const
inline

Definition at line 272 of file DTDDUWords.h.

References EVENT_WORD_COUNT_MASK, and word_.

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

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

Definition at line 271 of file DTDDUWords.h.

References L1A_FIFO_OCC_MASK, L1A_FIFO_OCC_SHIFT, and word_.

Referenced by DTDataIntegrityTask::processROS25().

271 { 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:292
#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 274 of file DTDDUWords.h.

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

278  {
279 
280  word =
283  tff << TFF_SHIFT |
284  tpx << TPX_SHIFT |
285  l1a_fifo_occ << L1A_FIFO_OCC_SHIFT |
286  event_word_count;
287  }
#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 269 of file DTDDUWords.h.

References TFF_MASK, TFF_SHIFT, and word_.

269 { 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:292
int DTROSTrailerWord::TPX ( ) const
inline

Definition at line 270 of file DTDDUWords.h.

References TPX_MASK, TPX_SHIFT, and word_.

Referenced by DTDataIntegrityTask::processROS25().

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

Member Data Documentation

uint32_t DTROSTrailerWord::word_
private

Definition at line 292 of file DTDDUWords.h.

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