CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

DTLocalTriggerDataWord Class Reference

#include <DTDDUWords.h>

List of all members.

Public Member Functions

 DTLocalTriggerDataWord ()
 Constructor.
 DTLocalTriggerDataWord (const DTLocalTriggerDataWord &obj)
 DTLocalTriggerDataWord (const uint32_t index)
int getBits (int first) const
int hasTrigger (int first) const
int SCData () const
int trackQuality (int first) const
virtual ~DTLocalTriggerDataWord ()
 Destructor.

Static Public Member Functions

static void set (uint32_t &word, int sc_data)

Private Attributes

uint32_t word_

Detailed Description

DT Sector Collector data interpreter. It interprets the Sector Collector data (16 bits)

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

Definition at line 820 of file DTDDUWords.h.


Constructor & Destructor Documentation

DTLocalTriggerDataWord::DTLocalTriggerDataWord ( ) [inline]

Constructor.

Definition at line 825 of file DTDDUWords.h.

{}
DTLocalTriggerDataWord::DTLocalTriggerDataWord ( const DTLocalTriggerDataWord obj) [inline]

Definition at line 827 of file DTDDUWords.h.

References VarParsing::obj.

{ *this = obj; }
DTLocalTriggerDataWord::DTLocalTriggerDataWord ( const uint32_t  index) [inline]

Definition at line 829 of file DTDDUWords.h.

                                               : 
    word_(index) {}
virtual DTLocalTriggerDataWord::~DTLocalTriggerDataWord ( ) [inline, virtual]

Destructor.

Definition at line 833 of file DTDDUWords.h.

{}

Member Function Documentation

int DTLocalTriggerDataWord::getBits ( int  first) const [inline]

Definition at line 837 of file DTDDUWords.h.

References TRIGGER_DATA_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData(), and trackQuality().

                               { 
    return first==1 ? ((word_ & TRIGGER_DATA_MASK) >> 8) : ((word_ & TRIGGER_DATA_MASK)&0xFF);  
  }
int DTLocalTriggerDataWord::hasTrigger ( int  first) const [inline]

Definition at line 842 of file DTDDUWords.h.

References trackQuality().

Referenced by DTROS25Unpacker::interpretRawData().

{ return (trackQuality(first) != 7? 1 : 0);}
int DTLocalTriggerDataWord::SCData ( ) const [inline]

Definition at line 835 of file DTDDUWords.h.

References TRIGGER_DATA_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

{ return (word_ & TRIGGER_DATA_MASK);}
static void DTLocalTriggerDataWord::set ( uint32_t &  word,
int  sc_data 
) [inline, static]
int DTLocalTriggerDataWord::trackQuality ( int  first) const [inline]

Definition at line 843 of file DTDDUWords.h.

References getBits().

Referenced by hasTrigger(), and DTROS25Unpacker::interpretRawData().

{ return (getBits(first) & 0xE) >> 1; }

Member Data Documentation

uint32_t DTLocalTriggerDataWord::word_ [private]

Definition at line 858 of file DTDDUWords.h.

Referenced by getBits(), and SCData().