CMS 3D CMS Logo

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

#include <CSCDCCStatusDigi.h>

Public Member Functions

 CSCDCCStatusDigi ()
 Default constructor. More...
 
 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)
 
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.

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 }

References relativeConstraints::error, errorFlag_, header(), header_, trailer(), trailer_, and tts_.

◆ CSCDCCStatusDigi() [2/3]

CSCDCCStatusDigi::CSCDCCStatusDigi ( const uint32_t &  error,
short unsigned  tts 
)
inline

Definition at line 19 of file CSCDCCStatusDigi.h.

19 { errorFlag_ = error; } //tts_ = tts;}

References relativeConstraints::error, and errorFlag_.

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

27 { return errorFlag_; }

References errorFlag_.

◆ getDCCTTS()

const uint16_t CSCDCCStatusDigi::getDCCTTS ( ) const

Definition at line 25 of file CSCDCCStatusDigi.cc.

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

References tts_.

Referenced by print().

◆ header()

const uint16_t* CSCDCCStatusDigi::header ( ) const
inline

data accessors

Definition at line 25 of file CSCDCCStatusDigi.h.

25 { return header_; }

References header_.

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

◆ print()

void CSCDCCStatusDigi::print ( void  ) const

Print the content of CSCDCCStatusDigi.

Definition at line 30 of file CSCDCCStatusDigi.cc.

30  {
31  edm::LogVerbatim("CSCDigi") << " Header: " << std::hex << *header_ << " Trailer: " << std::hex << *trailer_
32  << " ErrorFlag: " << errorFlag_ << " TTS: " << getDCCTTS() << std::dec;
33 }

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

◆ trailer()

const uint16_t* CSCDCCStatusDigi::trailer ( ) const
inline

Definition at line 26 of file CSCDCCStatusDigi.h.

26 { return trailer_; }

References trailer_.

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

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().

CSCDCCStatusDigi::trailer_
uint16_t trailer_[8]
Definition: CSCDCCStatusDigi.h:35
CSCDCCStatusDigi::getDCCTTS
const uint16_t getDCCTTS() const
Definition: CSCDCCStatusDigi.cc:25
relativeConstraints.error
error
Definition: relativeConstraints.py:53
CSCDCCStatusDigi::header_
uint16_t header_[8]
Definition: CSCDCCStatusDigi.h:34
CSCDCCStatusDigi::errorFlag_
uint32_t errorFlag_
Definition: CSCDCCStatusDigi.h:36
CSCDCCStatusDigi::trailer
const uint16_t * trailer() const
Definition: CSCDCCStatusDigi.h:26
edm::LogVerbatim
Definition: MessageLogger.h:297
CSCDCCStatusDigi::header
const uint16_t * header() const
data accessors
Definition: CSCDCCStatusDigi.h:25
CSCDCCStatusDigi::tts_
short unsigned tts_
Definition: CSCDCCStatusDigi.h:37
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143