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() [1/3]

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(), header_, trailer(), 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 * trailer() const
uint16_t trailer_[8]
const uint16_t * header() const
data accessors
short unsigned tts_
uint16_t header_[8]

◆ CSCDCCStatusDigi() [2/3]

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() [3/3]

CSCDCCStatusDigi::CSCDCCStatusDigi ( )
inline

Default constructor.

Definition at line 22 of file CSCDCCStatusDigi.h.

22 {}

Member Function Documentation

◆ errorFlag()

const uint32_t CSCDCCStatusDigi::errorFlag ( ) const
inline

Definition at line 27 of file CSCDCCStatusDigi.h.

References errorFlag_.

27 { return errorFlag_; }

◆ getDCCTTS()

const uint16_t CSCDCCStatusDigi::getDCCTTS ( ) const

Definition at line 25 of file CSCDCCStatusDigi.cc.

References tts_.

Referenced by print().

25  {
26  uint16_t ttsBits = (tts_ & 0x00F0) >> 4;
27  return ttsBits;
28 }
short unsigned tts_

◆ header()

const uint16_t* CSCDCCStatusDigi::header ( ) const
inline

data accessors

Definition at line 25 of file CSCDCCStatusDigi.h.

References header_.

Referenced by CSCDCCHeader::CSCDCCHeader(), and CSCDCCStatusDigi().

25 { return header_; }
uint16_t header_[8]

◆ print()

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

30  {
31  edm::LogVerbatim("CSCDigi") << " Header: " << std::hex << *header_ << " Trailer: " << std::hex << *trailer_
32  << " ErrorFlag: " << errorFlag_ << " TTS: " << getDCCTTS() << std::dec;
33 }
Log< level::Info, true > LogVerbatim
uint16_t trailer_[8]
const uint16_t getDCCTTS() const
uint16_t header_[8]

◆ trailer()

const uint16_t* CSCDCCStatusDigi::trailer ( ) const
inline

Definition at line 26 of file CSCDCCStatusDigi.h.

References trailer_.

Referenced by CSCDCCStatusDigi(), and CSCDCCTrailer::CSCDCCTrailer().

26 { return trailer_; }
uint16_t trailer_[8]

Member Data Documentation

◆ errorFlag_

uint32_t CSCDCCStatusDigi::errorFlag_
private

Definition at line 36 of file CSCDCCStatusDigi.h.

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

◆ header_

uint16_t CSCDCCStatusDigi::header_[8]
private

Definition at line 34 of file CSCDCCStatusDigi.h.

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

◆ trailer_

uint16_t CSCDCCStatusDigi::trailer_[8]
private

Definition at line 35 of file CSCDCCStatusDigi.h.

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

◆ tts_

short unsigned CSCDCCStatusDigi::tts_
private

Definition at line 37 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), and getDCCTTS().