CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)

Date:
2009/05/07 07:57:03
Revision:
1.13
Author
M. Zanetti - INFN Padova

Definition at line 625 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTTDCMeasurementWord::DTTDCMeasurementWord ( )
inline

Constructor.

Definition at line 630 of file DTDDUWords.h.

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

Definition at line 632 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

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

Definition at line 634 of file DTDDUWords.h.

634  :
635  word_(index) {}
virtual DTTDCMeasurementWord::~DTTDCMeasurementWord ( )
inlinevirtual

Destructor.

Definition at line 638 of file DTDDUWords.h.

638 {}

Member Function Documentation

int DTTDCMeasurementWord::HU ( ) const
inline

Definition at line 642 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

642 { 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 641 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

641 { 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 640 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

Referenced by DTDataIntegrityTask::processROS25().

640 { 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 648 of file DTDDUWords.h.

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

Referenced by DTDigiToRaw::createFedBuffers(), and betterConfigParser.BetterConfigParser::getGeneral().

654  {
655 
656  word =
658  pc << PC_SHIFT |
659  paf << PAF_SHIFT |
660  hu << PAF_SHIFT |
661  tdc_id << TDC_ID_SHIFT |
662  tdc_channel << TDC_CHANNEL_SHIFT |
663  tdc_time;
664  }
#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 644 of file DTDDUWords.h.

References TDC_CHANNEL_MASK, TDC_CHANNEL_SHIFT, and word_.

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

644 { 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 643 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

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

643 { 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 645 of file DTDDUWords.h.

References TDC_TIME_MASK, TDC_TIME_SHIFT, and word_.

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

645 { 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 670 of file DTDDUWords.h.

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