CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
DTTDCMeasurementWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

 DTTDCMeasurementWord ()
 Constructor. More...
 
 DTTDCMeasurementWord (const uint32_t index)
 
int HU () const
 
int PAF () const
 
int PC () const
 
int tdcChannel () const
 
int tdcID () const
 <== OBSOLETE!! More...
 
int tdcTime () const
 
virtual ~DTTDCMeasurementWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int pc, int paf, int hu, int tdc_id, int tdc_channel, int tdc_time)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT TDC Measurement interpreter. It interprets the Parity Checks, FIFO occupancy, Lokeced channels (all 1 bit), the TDC_ID (2 bits), the TDC channel (5 bits), and the TDC time (19 bits)

Author
M. Zanetti - INFN Padova

Definition at line 457 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTTDCMeasurementWord() [1/2]

DTTDCMeasurementWord::DTTDCMeasurementWord ( )
inline

Constructor.

Definition at line 460 of file DTDDUWords.h.

460 {}

◆ DTTDCMeasurementWord() [2/2]

DTTDCMeasurementWord::DTTDCMeasurementWord ( const uint32_t  index)
inline

Definition at line 462 of file DTDDUWords.h.

◆ ~DTTDCMeasurementWord()

virtual DTTDCMeasurementWord::~DTTDCMeasurementWord ( )
inlinevirtual

Destructor.

Definition at line 465 of file DTDDUWords.h.

465 {}

Member Function Documentation

◆ HU()

int DTTDCMeasurementWord::HU ( ) const
inline

Definition at line 469 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

469 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define PAF_MASK
Definition: DTDDUWords.h:53

◆ PAF()

int DTTDCMeasurementWord::PAF ( ) const
inline

Definition at line 468 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

468 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define PAF_MASK
Definition: DTDDUWords.h:53

◆ PC()

int DTTDCMeasurementWord::PC ( ) const
inline

Definition at line 467 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

Referenced by DTDataIntegrityROSOffline::processROS25().

467 { return (word_ & PC_MASK) >> PC_SHIFT; }
#define PC_SHIFT
Definition: DTDDUWords.h:52
#define PC_MASK
Definition: DTDDUWords.h:51

◆ set()

static void DTTDCMeasurementWord::set ( uint32_t &  word,
int  pc,
int  paf,
int  hu,
int  tdc_id,
int  tdc_channel,
int  tdc_time 
)
inlinestatic

Definition at line 474 of file DTDDUWords.h.

References PAF_SHIFT, PC_SHIFT, TDC_CHANNEL_SHIFT, TDC_ID_SHIFT, DTROSWordType::tdcDataControlWord, and WORDCONTROLSHIFT.

Referenced by DTDigiToRaw::createFedBuffers().

474  {
476  tdc_id << TDC_ID_SHIFT | tdc_channel << TDC_CHANNEL_SHIFT | tdc_time;
477  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
#define PC_SHIFT
Definition: DTDDUWords.h:52
#define PAF_SHIFT
Definition: DTDDUWords.h:54
static const uint32_t tdcDataControlWord
Definition: DTDDUWords.h:181
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
#define TDC_CHANNEL_SHIFT
Definition: DTDDUWords.h:59

◆ tdcChannel()

int DTTDCMeasurementWord::tdcChannel ( ) const
inline

Definition at line 471 of file DTDDUWords.h.

References TDC_CHANNEL_MASK, TDC_CHANNEL_SHIFT, and word_.

Referenced by DTDigiToRaw::createFedBuffers(), and DTROS25Unpacker::interpretRawData().

471 { return (word_ & TDC_CHANNEL_MASK) >> TDC_CHANNEL_SHIFT; }
#define TDC_CHANNEL_MASK
Definition: DTDDUWords.h:58
#define TDC_CHANNEL_SHIFT
Definition: DTDDUWords.h:59

◆ tdcID()

int DTTDCMeasurementWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 470 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

Referenced by DTDigiToRaw::createFedBuffers(), and DTROS25Unpacker::interpretRawData().

470 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56

◆ tdcTime()

int DTTDCMeasurementWord::tdcTime ( ) const
inline

Definition at line 472 of file DTDDUWords.h.

References TDC_TIME_MASK, TDC_TIME_SHIFT, and word_.

Referenced by DTDigiToRaw::createFedBuffers(), and DTROS25Unpacker::interpretRawData().

472 { return (word_ & TDC_TIME_MASK) >> TDC_TIME_SHIFT; }
#define TDC_TIME_MASK
Definition: DTDDUWords.h:60
#define TDC_TIME_SHIFT
Definition: DTDDUWords.h:61

Member Data Documentation

◆ word_

uint32_t DTTDCMeasurementWord::word_
private

Definition at line 480 of file DTDDUWords.h.

Referenced by HU(), PAF(), PC(), tdcChannel(), tdcID(), and tdcTime().