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 DTTDCMeasurementWord &obj)
 
 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 475 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTTDCMeasurementWord() [1/3]

DTTDCMeasurementWord::DTTDCMeasurementWord ( )
inline

Constructor.

Definition at line 478 of file DTDDUWords.h.

478 {}

◆ DTTDCMeasurementWord() [2/3]

DTTDCMeasurementWord::DTTDCMeasurementWord ( const DTTDCMeasurementWord obj)
inline

Definition at line 480 of file DTDDUWords.h.

480 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTTDCMeasurementWord() [3/3]

DTTDCMeasurementWord::DTTDCMeasurementWord ( const uint32_t  index)
inline

Definition at line 482 of file DTDDUWords.h.

482 : word_(index) {}

◆ ~DTTDCMeasurementWord()

virtual DTTDCMeasurementWord::~DTTDCMeasurementWord ( )
inlinevirtual

Destructor.

Definition at line 485 of file DTDDUWords.h.

485 {}

Member Function Documentation

◆ HU()

int DTTDCMeasurementWord::HU ( ) const
inline

Definition at line 489 of file DTDDUWords.h.

489 { return (word_ & PAF_MASK) >> PAF_SHIFT; }

References PAF_MASK, PAF_SHIFT, and word_.

◆ PAF()

int DTTDCMeasurementWord::PAF ( ) const
inline

Definition at line 488 of file DTDDUWords.h.

488 { return (word_ & PAF_MASK) >> PAF_SHIFT; }

References PAF_MASK, PAF_SHIFT, and word_.

◆ PC()

int DTTDCMeasurementWord::PC ( ) const
inline

Definition at line 487 of file DTDDUWords.h.

487 { return (word_ & PC_MASK) >> PC_SHIFT; }

References PC_MASK, PC_SHIFT, and word_.

Referenced by DTDataIntegrityROSOffline::processROS25().

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

494  {
496  tdc_id << TDC_ID_SHIFT | tdc_channel << TDC_CHANNEL_SHIFT | tdc_time;
497  }

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

Referenced by DTDigiToRaw::createFedBuffers().

◆ tdcChannel()

int DTTDCMeasurementWord::tdcChannel ( ) const
inline

◆ tdcID()

int DTTDCMeasurementWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 490 of file DTDDUWords.h.

490 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

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

◆ tdcTime()

int DTTDCMeasurementWord::tdcTime ( ) const
inline

Definition at line 492 of file DTDDUWords.h.

492 { return (word_ & TDC_TIME_MASK) >> TDC_TIME_SHIFT; }

References TDC_TIME_MASK, TDC_TIME_SHIFT, and word_.

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

Member Data Documentation

◆ word_

uint32_t DTTDCMeasurementWord::word_
private

Definition at line 500 of file DTDDUWords.h.

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

DTTDCMeasurementWord::word_
uint32_t word_
Definition: DTDDUWords.h:500
WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
TDC_TIME_MASK
#define TDC_TIME_MASK
Definition: DTDDUWords.h:60
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
PC_SHIFT
#define PC_SHIFT
Definition: DTDDUWords.h:52
DTROSWordType::tdcDataControlWord
static const uint32_t tdcDataControlWord
Definition: DTDDUWords.h:183
PC_MASK
#define PC_MASK
Definition: DTDDUWords.h:51
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
TDC_ID_MASK
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
PAF_MASK
#define PAF_MASK
Definition: DTDDUWords.h:53
TDC_CHANNEL_SHIFT
#define TDC_CHANNEL_SHIFT
Definition: DTDDUWords.h:59
PAF_SHIFT
#define PAF_SHIFT
Definition: DTDDUWords.h:54
TDC_CHANNEL_MASK
#define TDC_CHANNEL_MASK
Definition: DTDDUWords.h:58
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
TDC_ID_SHIFT
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
TDC_TIME_SHIFT
#define TDC_TIME_SHIFT
Definition: DTDDUWords.h:61