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

Constructor & Destructor Documentation

◆ DTROSTrailerWord() [1/3]

DTROSTrailerWord::DTROSTrailerWord ( )
inline

Constructor.

Definition at line 237 of file DTDDUWords.h.

237 {}

◆ DTROSTrailerWord() [2/3]

DTROSTrailerWord::DTROSTrailerWord ( const DTROSTrailerWord obj)
inline

Definition at line 239 of file DTDDUWords.h.

239 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTROSTrailerWord() [3/3]

DTROSTrailerWord::DTROSTrailerWord ( const uint32_t  index)
inline

Definition at line 241 of file DTDDUWords.h.

241 : word_(index) {}

◆ ~DTROSTrailerWord()

virtual DTROSTrailerWord::~DTROSTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 244 of file DTDDUWords.h.

244 {}

Member Function Documentation

◆ EventWordCount()

int DTROSTrailerWord::EventWordCount ( ) const
inline

Definition at line 249 of file DTDDUWords.h.

249 { return word_ & EVENT_WORD_COUNT_MASK; }

References EVENT_WORD_COUNT_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

◆ l1AFifoOccupancy()

int DTROSTrailerWord::l1AFifoOccupancy ( ) const
inline

Definition at line 248 of file DTDDUWords.h.

248 { return (word_ & L1A_FIFO_OCC_MASK) >> L1A_FIFO_OCC_SHIFT; }

References L1A_FIFO_OCC_MASK, L1A_FIFO_OCC_SHIFT, and word_.

◆ set()

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

◆ TFF()

int DTROSTrailerWord::TFF ( ) const
inline

Definition at line 246 of file DTDDUWords.h.

246 { return (word_ & TFF_MASK) >> TFF_SHIFT; }

References TFF_MASK, TFF_SHIFT, and word_.

◆ TPX()

int DTROSTrailerWord::TPX ( ) const
inline

Definition at line 247 of file DTDDUWords.h.

247 { return (word_ & TPX_MASK) >> TPX_SHIFT; }

References TPX_MASK, TPX_SHIFT, and word_.

Member Data Documentation

◆ word_

uint32_t DTROSTrailerWord::word_
private

Definition at line 257 of file DTDDUWords.h.

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

DTROSTrailerWord::word_
uint32_t word_
Definition: DTDDUWords.h:257
L1A_FIFO_OCC_MASK
#define L1A_FIFO_OCC_MASK
Definition: DTDDUWords.h:35
WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
TFF_MASK
#define TFF_MASK
Definition: DTDDUWords.h:31
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
EVENT_WORD_COUNT_MASK
#define EVENT_WORD_COUNT_MASK
Definition: DTDDUWords.h:37
TPX_MASK
#define TPX_MASK
Definition: DTDDUWords.h:33
WORDTYPESHIFT
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
TFF_SHIFT
#define TFF_SHIFT
Definition: DTDDUWords.h:32
DTROSWordType::trailerControlWord
static const uint32_t trailerControlWord
Definition: DTDDUWords.h:180
DTROSWordType::rosTypeWord
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:188
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
L1A_FIFO_OCC_SHIFT
#define L1A_FIFO_OCC_SHIFT
Definition: DTDDUWords.h:36
TPX_SHIFT
#define TPX_SHIFT
Definition: DTDDUWords.h:34