CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 234 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROSTrailerWord::DTROSTrailerWord ( )
inline

Constructor.

Definition at line 237 of file DTDDUWords.h.

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

Definition at line 239 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

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

Definition at line 241 of file DTDDUWords.h.

virtual DTROSTrailerWord::~DTROSTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 244 of file DTDDUWords.h.

244 {}

Member Function Documentation

int DTROSTrailerWord::EventWordCount ( ) const
inline

Definition at line 249 of file DTDDUWords.h.

References EVENT_WORD_COUNT_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

249 { return word_ & EVENT_WORD_COUNT_MASK; }
#define EVENT_WORD_COUNT_MASK
Definition: DTDDUWords.h:37
uint32_t word_
Definition: DTDDUWords.h:257
int DTROSTrailerWord::l1AFifoOccupancy ( ) const
inline

Definition at line 248 of file DTDDUWords.h.

References L1A_FIFO_OCC_MASK, L1A_FIFO_OCC_SHIFT, and word_.

Referenced by DTDataIntegrityROSOffline::processROS25().

248 { 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:257
#define L1A_FIFO_OCC_SHIFT
Definition: DTDDUWords.h:36
static void DTROSTrailerWord::set ( uint32_t &  word,
int  tff,
int  tpx,
int  l1a_fifo_occ,
int  event_word_count 
)
inlinestatic

Definition at line 251 of file DTDDUWords.h.

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

251  {
253  tff << TFF_SHIFT | tpx << TPX_SHIFT | l1a_fifo_occ << L1A_FIFO_OCC_SHIFT | event_word_count;
254  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t trailerControlWord
Definition: DTDDUWords.h:180
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:188
#define TPX_SHIFT
Definition: DTDDUWords.h:34
#define L1A_FIFO_OCC_SHIFT
Definition: DTDDUWords.h:36
int DTROSTrailerWord::TFF ( ) const
inline

Definition at line 246 of file DTDDUWords.h.

References TFF_MASK, TFF_SHIFT, and word_.

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

Definition at line 247 of file DTDDUWords.h.

References TPX_MASK, TPX_SHIFT, and word_.

Referenced by DTDataIntegrityROSOffline::processROS25().

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

Member Data Documentation

uint32_t DTROSTrailerWord::word_
private

Definition at line 257 of file DTDDUWords.h.

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