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::DTTDCMeasurementWord ( )
inline

Constructor.

Definition at line 478 of file DTDDUWords.h.

478 {}
DTTDCMeasurementWord::DTTDCMeasurementWord ( const DTTDCMeasurementWord obj)
inline

Definition at line 480 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

480 { *this = obj; }
DTTDCMeasurementWord::DTTDCMeasurementWord ( const uint32_t  index)
inline

Definition at line 482 of file DTDDUWords.h.

virtual DTTDCMeasurementWord::~DTTDCMeasurementWord ( )
inlinevirtual

Destructor.

Definition at line 485 of file DTDDUWords.h.

485 {}

Member Function Documentation

int DTTDCMeasurementWord::HU ( ) const
inline

Definition at line 489 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and DTROSWordType::word_.

489 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define PAF_MASK
Definition: DTDDUWords.h:53
int DTTDCMeasurementWord::PAF ( ) const
inline

Definition at line 488 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and DTROSWordType::word_.

488 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define PAF_MASK
Definition: DTDDUWords.h:53
int DTTDCMeasurementWord::PC ( ) const
inline

Definition at line 487 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and DTROSWordType::word_.

Referenced by DTDataIntegrityTask::processROS25().

487 { return (word_ & PC_MASK) >> PC_SHIFT; }
#define PC_SHIFT
Definition: DTDDUWords.h:52
#define PC_MASK
Definition: DTDDUWords.h:51
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.

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

Referenced by DTDigiToRaw::createFedBuffers().

494  {
496  tdc_id << TDC_ID_SHIFT | tdc_channel << TDC_CHANNEL_SHIFT | tdc_time;
497  }
#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:183
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
#define TDC_CHANNEL_SHIFT
Definition: DTDDUWords.h:59
int DTTDCMeasurementWord::tdcChannel ( ) const
inline

Definition at line 491 of file DTDDUWords.h.

References TDC_CHANNEL_MASK, TDC_CHANNEL_SHIFT, and DTROSWordType::word_.

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

491 { return (word_ & TDC_CHANNEL_MASK) >> TDC_CHANNEL_SHIFT; }
#define TDC_CHANNEL_MASK
Definition: DTDDUWords.h:58
#define TDC_CHANNEL_SHIFT
Definition: DTDDUWords.h:59
int DTTDCMeasurementWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 490 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and DTROSWordType::word_.

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

490 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56
int DTTDCMeasurementWord::tdcTime ( ) const
inline

Definition at line 492 of file DTDDUWords.h.

References TDC_TIME_MASK, TDC_TIME_SHIFT, and DTROSWordType::word_.

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

492 { 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

uint32_t DTTDCMeasurementWord::word_
private

Definition at line 500 of file DTDDUWords.h.