CMS 3D CMS Logo

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

Constructor & Destructor Documentation

◆ DTROSTrailerWord() [1/2]

DTROSTrailerWord::DTROSTrailerWord ( )
inline

Constructor.

Definition at line 233 of file DTDDUWords.h.

233 {}

◆ DTROSTrailerWord() [2/2]

DTROSTrailerWord::DTROSTrailerWord ( const uint32_t  index)
inline

Definition at line 235 of file DTDDUWords.h.

◆ ~DTROSTrailerWord()

virtual DTROSTrailerWord::~DTROSTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 238 of file DTDDUWords.h.

238 {}

Member Function Documentation

◆ EventWordCount()

int DTROSTrailerWord::EventWordCount ( ) const
inline

Definition at line 243 of file DTDDUWords.h.

References EVENT_WORD_COUNT_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

243 { return word_ & EVENT_WORD_COUNT_MASK; }
#define EVENT_WORD_COUNT_MASK
Definition: DTDDUWords.h:37
uint32_t word_
Definition: DTDDUWords.h:251

◆ l1AFifoOccupancy()

int DTROSTrailerWord::l1AFifoOccupancy ( ) const
inline

Definition at line 242 of file DTDDUWords.h.

References L1A_FIFO_OCC_MASK, L1A_FIFO_OCC_SHIFT, and word_.

242 { return (word_ & L1A_FIFO_OCC_MASK) >> L1A_FIFO_OCC_SHIFT; }
#define L1A_FIFO_OCC_MASK
Definition: DTDDUWords.h:35
uint32_t word_
Definition: DTDDUWords.h:251
#define L1A_FIFO_OCC_SHIFT
Definition: DTDDUWords.h:36

◆ set()

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

Definition at line 245 of file DTDDUWords.h.

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

245  {
247  tff << TFF_SHIFT | tpx << TPX_SHIFT | l1a_fifo_occ << L1A_FIFO_OCC_SHIFT | event_word_count;
248  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t trailerControlWord
Definition: DTDDUWords.h:178
uint64_t word
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define TFF_SHIFT
Definition: DTDDUWords.h:32
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:186
#define TPX_SHIFT
Definition: DTDDUWords.h:34
#define L1A_FIFO_OCC_SHIFT
Definition: DTDDUWords.h:36

◆ TFF()

int DTROSTrailerWord::TFF ( ) const
inline

Definition at line 240 of file DTDDUWords.h.

References TFF_MASK, TFF_SHIFT, and word_.

240 { return (word_ & TFF_MASK) >> TFF_SHIFT; }
#define TFF_MASK
Definition: DTDDUWords.h:31
#define TFF_SHIFT
Definition: DTDDUWords.h:32
uint32_t word_
Definition: DTDDUWords.h:251

◆ TPX()

int DTROSTrailerWord::TPX ( ) const
inline

Definition at line 241 of file DTDDUWords.h.

References TPX_MASK, TPX_SHIFT, and word_.

241 { return (word_ & TPX_MASK) >> TPX_SHIFT; }
#define TPX_MASK
Definition: DTDDUWords.h:33
uint32_t word_
Definition: DTDDUWords.h:251
#define TPX_SHIFT
Definition: DTDDUWords.h:34

Member Data Documentation

◆ word_

uint32_t DTROSTrailerWord::word_
private

Definition at line 251 of file DTDDUWords.h.

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