CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCDCCStatusDigi Class Reference

#include <CSCDCCStatusDigi.h>

Public Member Functions

 CSCDCCStatusDigi (const uint16_t *header, const uint16_t *trailer, const uint32_t &error, short unsigned tts)
 Constructor for all variables. More...
 
 CSCDCCStatusDigi (const uint32_t &error, short unsigned tts)
 
 CSCDCCStatusDigi ()
 Default constructor. More...
 
const uint32_t errorFlag () const
 
const uint16_t getDCCTTS () const
 
const uint16_t * header () const
 data accessors More...
 
void print () const
 Print the content of CSCDCCStatusDigi. More...
 
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

Definition at line 15 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 13 of file CSCDCCStatusDigi.cc.

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

15 {
17  uint16_t headerSizeInBytes =16;
18  uint16_t trailerSizeInBytes =16;
19  memcpy(header_, header, headerSizeInBytes);
20  memcpy(trailer_, trailer, trailerSizeInBytes);
21  tts_ = tts;
22 }
const uint16_t * header() const
data accessors
uint16_t trailer_[8]
short unsigned tts_
const uint16_t * trailer() const
uint16_t header_[8]
CSCDCCStatusDigi::CSCDCCStatusDigi ( const uint32_t &  error,
short unsigned  tts 
)
inline

Definition at line 22 of file CSCDCCStatusDigi.h.

References relativeConstraints::error, and errorFlag_.

CSCDCCStatusDigi::CSCDCCStatusDigi ( )
inline

Default constructor.

Definition at line 25 of file CSCDCCStatusDigi.h.

25 {}

Member Function Documentation

const uint32_t CSCDCCStatusDigi::errorFlag ( ) const
inline

Definition at line 30 of file CSCDCCStatusDigi.h.

References errorFlag_, getDCCTTS(), and print().

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

Definition at line 24 of file CSCDCCStatusDigi.cc.

References tts_.

Referenced by errorFlag(), and print().

24  {
25  uint16_t ttsBits = (tts_ & 0x00F0) >> 4;
26  return ttsBits;
27 }
short unsigned tts_
const uint16_t* CSCDCCStatusDigi::header ( ) const
inline

data accessors

Definition at line 28 of file CSCDCCStatusDigi.h.

References header_.

Referenced by CSCDCCHeader::CSCDCCHeader().

28 {return header_;}
uint16_t header_[8]
void CSCDCCStatusDigi::print ( void  ) const

Print the content of CSCDCCStatusDigi.

Definition at line 29 of file CSCDCCStatusDigi.cc.

References TauDecayModes::dec, errorFlag_, getDCCTTS(), header_, and trailer_.

Referenced by errorFlag().

29  {
30  edm::LogVerbatim("CSCDigi") << " Header: " << std::hex << *header_ <<
31  " Trailer: " << std::hex << *trailer_ << " ErrorFlag: " << errorFlag_ <<
32  " TTS: " << getDCCTTS() << std::dec;
33 }
uint16_t trailer_[8]
const uint16_t getDCCTTS() const
uint16_t header_[8]
const uint16_t* CSCDCCStatusDigi::trailer ( ) const
inline

Definition at line 29 of file CSCDCCStatusDigi.h.

References trailer_.

Referenced by CSCDCCTrailer::CSCDCCTrailer().

29 {return trailer_;}
uint16_t trailer_[8]

Member Data Documentation

uint32_t CSCDCCStatusDigi::errorFlag_
private

Definition at line 40 of file CSCDCCStatusDigi.h.

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

uint16_t CSCDCCStatusDigi::header_[8]
private

Definition at line 38 of file CSCDCCStatusDigi.h.

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

uint16_t CSCDCCStatusDigi::trailer_[8]
private

Definition at line 39 of file CSCDCCStatusDigi.h.

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

short unsigned CSCDCCStatusDigi::tts_
private

Definition at line 41 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), and getDCCTTS().