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_.

16  {
17  errorFlag_ = error;
18  uint16_t headerSizeInBytes = 16;
19  uint16_t trailerSizeInBytes = 16;
20  memcpy(header_, header, headerSizeInBytes);
21  memcpy(trailer_, trailer, trailerSizeInBytes);
22  tts_ = tts;
23 }
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 19 of file CSCDCCStatusDigi.h.

References relativeConstraints::error, and errorFlag_.

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

Default constructor.

Definition at line 22 of file CSCDCCStatusDigi.h.

22 {}

Member Function Documentation

const uint32_t CSCDCCStatusDigi::errorFlag ( ) const
inline

Definition at line 27 of file CSCDCCStatusDigi.h.

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

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

Definition at line 25 of file CSCDCCStatusDigi.cc.

References tts_.

Referenced by errorFlag(), and print().

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

data accessors

Definition at line 25 of file CSCDCCStatusDigi.h.

References header_.

Referenced by CSCDCCHeader::CSCDCCHeader().

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

Print the content of CSCDCCStatusDigi.

Definition at line 30 of file CSCDCCStatusDigi.cc.

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

Referenced by errorFlag().

30  {
31  edm::LogVerbatim("CSCDigi") << " Header: " << std::hex << *header_ << " Trailer: " << std::hex << *trailer_
32  << " ErrorFlag: " << errorFlag_ << " 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 26 of file CSCDCCStatusDigi.h.

References trailer_.

Referenced by CSCDCCTrailer::CSCDCCTrailer().

26 { return trailer_; }
uint16_t trailer_[8]

Member Data Documentation

uint32_t CSCDCCStatusDigi::errorFlag_
private

Definition at line 36 of file CSCDCCStatusDigi.h.

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

uint16_t CSCDCCStatusDigi::header_[8]
private

Definition at line 34 of file CSCDCCStatusDigi.h.

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

uint16_t CSCDCCStatusDigi::trailer_[8]
private

Definition at line 35 of file CSCDCCStatusDigi.h.

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

short unsigned CSCDCCStatusDigi::tts_
private

Definition at line 37 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), and getDCCTTS().