CMS 3D CMS Logo

Public Member Functions | Private Attributes

CSCDCCStatusDigi Class Reference

#include <CSCDCCStatusDigi.h>

List of all members.

Public Member Functions

 CSCDCCStatusDigi (const uint16_t *header, const uint16_t *trailer, const uint32_t &error, short unsigned tts)
 Constructor for all variables.
 CSCDCCStatusDigi (const uint32_t &error, short unsigned tts)
 CSCDCCStatusDigi ()
 Default constructor.
const uint32_t errorFlag () const
const uint16_t getDCCTTS () const
const uint16_t * header () const
 data accessors
void print () const
 Print the content of CSCDCCStatusDigi.
const uint16_t * trailer () const

Private Attributes

uint32_t errorFlag_
uint16_t header_ [8]
uint16_t trailer_ [8]
short unsigned tts_

Detailed Description

Digi for CSC DCC info available in DDU

Date:
2010/06/11 15:44:22
Revision:
1.8

Digi for CSC DCC info available in DDU

Date:
2010/06/11 15:44:22
Revision:
1.7

Definition at line 17 of file CSCDCCStatusDigi.h.


Constructor & Destructor Documentation

CSCDCCStatusDigi::CSCDCCStatusDigi ( const uint16_t *  header,
const uint16_t *  trailer,
const uint32_t &  error,
short unsigned  tts 
)

Constructor for all variables.

Definition at line 14 of file CSCDCCStatusDigi.cc.

References error, errorFlag_, header_, trailer_, and tts_.

{
  errorFlag_=error;
  uint16_t headerSizeInBytes =16;
  uint16_t trailerSizeInBytes =16;
  memcpy(header_, header, headerSizeInBytes);
  memcpy(trailer_, trailer, trailerSizeInBytes);
  tts_ = tts;
}
CSCDCCStatusDigi::CSCDCCStatusDigi ( const uint32_t &  error,
short unsigned  tts 
) [inline]

Definition at line 24 of file CSCDCCStatusDigi.h.

References error, and errorFlag_.

{errorFlag_=error;} //tts_ = tts;}
CSCDCCStatusDigi::CSCDCCStatusDigi ( ) [inline]

Default constructor.

Definition at line 27 of file CSCDCCStatusDigi.h.

{}

Member Function Documentation

const uint32_t CSCDCCStatusDigi::errorFlag ( ) const [inline]

Definition at line 32 of file CSCDCCStatusDigi.h.

References errorFlag_.

{return errorFlag_;}
const uint16_t CSCDCCStatusDigi::getDCCTTS ( ) const

Definition at line 25 of file CSCDCCStatusDigi.cc.

References tts_.

Referenced by print().

                                                 {
         uint16_t ttsBits = (tts_ & 0x00F0) >> 4;
         return ttsBits;
}
const uint16_t* CSCDCCStatusDigi::header ( ) const [inline]

data accessors

Definition at line 30 of file CSCDCCStatusDigi.h.

References header_.

Referenced by CSCDCCHeader::CSCDCCHeader().

{return header_;} 
void CSCDCCStatusDigi::print ( void  ) const

Print the content of CSCDCCStatusDigi.

Definition at line 30 of file CSCDCCStatusDigi.cc.

References gather_cfg::cout, errorFlag_, getDCCTTS(), header_, and trailer_.

                                   {
     std::cout << " Header: " << std::hex << *header_ <<
     " Trailer: " << std::hex << *trailer_ << " ErrorFlag: " <<  errorFlag_ <<
     " TTS: " << getDCCTTS() << std::dec << std::endl;
}
const uint16_t* CSCDCCStatusDigi::trailer ( ) const [inline]

Definition at line 31 of file CSCDCCStatusDigi.h.

References trailer_.

Referenced by CSCDCCTrailer::CSCDCCTrailer().

{return trailer_;}

Member Data Documentation

uint32_t CSCDCCStatusDigi::errorFlag_ [private]

Definition at line 42 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), errorFlag(), and print().

uint16_t CSCDCCStatusDigi::header_[8] [private]

Definition at line 40 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), header(), and print().

uint16_t CSCDCCStatusDigi::trailer_[8] [private]

Definition at line 41 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), print(), and trailer().

short unsigned CSCDCCStatusDigi::tts_ [private]

Definition at line 43 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), and getDCCTTS().