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

Constructor & Destructor Documentation

DTTDCMeasurementWord::DTTDCMeasurementWord ( )
inline

Constructor.

Definition at line 612 of file DTDDUWords.h.

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

Definition at line 614 of file DTDDUWords.h.

References GetRecoTauVFromDQM_MC_cff::obj.

DTTDCMeasurementWord::DTTDCMeasurementWord ( const uint32_t  index)
inline

Definition at line 616 of file DTDDUWords.h.

616  :
617  word_(index) {}
virtual DTTDCMeasurementWord::~DTTDCMeasurementWord ( )
inlinevirtual

Destructor.

Definition at line 620 of file DTDDUWords.h.

620 {}

Member Function Documentation

int DTTDCMeasurementWord::HU ( ) const
inline

Definition at line 624 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and DTROSWordType::word_.

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

Definition at line 623 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and DTROSWordType::word_.

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

Definition at line 622 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and DTROSWordType::word_.

Referenced by DTDataIntegrityTask::processROS25().

622 { return (word_ & PC_MASK) >> PC_SHIFT;}
#define PC_SHIFT
Definition: DTDDUWords.h:53
#define PC_MASK
Definition: DTDDUWords.h:52
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 630 of file DTDDUWords.h.

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

Referenced by DTDigiToRaw::createFedBuffers().

636  {
637 
638  word =
640  pc << PC_SHIFT |
641  paf << PAF_SHIFT |
642  hu << PAF_SHIFT |
643  tdc_id << TDC_ID_SHIFT |
644  tdc_channel << TDC_CHANNEL_SHIFT |
645  tdc_time;
646  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#define PC_SHIFT
Definition: DTDDUWords.h:53
#define PAF_SHIFT
Definition: DTDDUWords.h:55
static const uint32_t tdcDataControlWord
Definition: DTDDUWords.h:187
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:57
#define TDC_CHANNEL_SHIFT
Definition: DTDDUWords.h:60
int DTTDCMeasurementWord::tdcChannel ( ) const
inline

Definition at line 626 of file DTDDUWords.h.

References TDC_CHANNEL_MASK, TDC_CHANNEL_SHIFT, and DTROSWordType::word_.

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

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

<== OBSOLETE!!

Definition at line 625 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and DTROSWordType::word_.

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

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

Definition at line 627 of file DTDDUWords.h.

References TDC_TIME_MASK, TDC_TIME_SHIFT, and DTROSWordType::word_.

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

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

Member Data Documentation

uint32_t DTTDCMeasurementWord::word_
private

Definition at line 652 of file DTDDUWords.h.