CMS 3D CMS Logo

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

#include <CSCDDUStatusDigi.h>

Public Member Functions

 CSCDDUStatusDigi (const uint16_t *header, const uint16_t *trailer, uint16_t tts)
 Constructor for all variables. More...
 
 CSCDDUStatusDigi ()
 Default constructor. More...
 
const uint16_t getDDUTTS () const
 
const uint16_t * header () const
 Data Accessors. More...
 
void print () const
 Print the content of CSCDDUStatusDigi. More...
 
const uint16_t * trailer () const
 

Private Attributes

uint16_t header_ [12]
 
uint16_t trailer_ [12]
 
uint16_t tts_
 

Detailed Description

Digi for CSC DDU info available in DDU

Definition at line 15 of file CSCDDUStatusDigi.h.

Constructor & Destructor Documentation

◆ CSCDDUStatusDigi() [1/2]

CSCDDUStatusDigi::CSCDDUStatusDigi ( const uint16_t *  header,
const uint16_t *  trailer,
uint16_t  tts 
)

Constructor for all variables.

Definition at line 13 of file CSCDDUStatusDigi.cc.

References header(), header_, trailer(), trailer_, and tts_.

13  {
14  uint16_t headerSizeInBytes = 24;
15  uint16_t trailerSizeInBytes = 24;
16  memcpy(header_, header, headerSizeInBytes);
17  memcpy(trailer_, trailer, trailerSizeInBytes);
18  tts_ = tts;
19 }
const uint16_t * trailer() const
uint16_t trailer_[12]
const uint16_t * header() const
Data Accessors.
uint16_t header_[12]

◆ CSCDDUStatusDigi() [2/2]

CSCDDUStatusDigi::CSCDDUStatusDigi ( )
inline

Default constructor.

Definition at line 21 of file CSCDDUStatusDigi.h.

21 {}

Member Function Documentation

◆ getDDUTTS()

const uint16_t CSCDDUStatusDigi::getDDUTTS ( ) const

Definition at line 21 of file CSCDDUStatusDigi.cc.

References tts_.

Referenced by print().

21  {
22  uint16_t ttsBits = (tts_ & 0x00F0) >> 4;
23  return ttsBits;
24 }

◆ header()

const uint16_t* CSCDDUStatusDigi::header ( ) const
inline

Data Accessors.

Definition at line 24 of file CSCDDUStatusDigi.h.

References header_.

Referenced by CSCDDUHeader::CSCDDUHeader(), and CSCDDUStatusDigi().

24 { return header_; }
uint16_t header_[12]

◆ print()

void CSCDDUStatusDigi::print ( void  ) const

Print the content of CSCDDUStatusDigi.

Definition at line 26 of file CSCDDUStatusDigi.cc.

References TauDecayModes::dec, getDDUTTS(), header_, and trailer_.

26  {
27  edm::LogVerbatim("CSCDigi") << " Header: " << std::hex << *header_ << " Trailer: " << std::hex << *trailer_
28  << " TTS: " << getDDUTTS() << std::dec;
29 }
Log< level::Info, true > LogVerbatim
uint16_t trailer_[12]
uint16_t header_[12]
const uint16_t getDDUTTS() const

◆ trailer()

const uint16_t* CSCDDUStatusDigi::trailer ( ) const
inline

Definition at line 25 of file CSCDDUStatusDigi.h.

References trailer_.

Referenced by CSCDDUStatusDigi(), and CSCDDUTrailer::CSCDDUTrailer().

25 { return trailer_; }
uint16_t trailer_[12]

Member Data Documentation

◆ header_

uint16_t CSCDDUStatusDigi::header_[12]
private

Definition at line 32 of file CSCDDUStatusDigi.h.

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

◆ trailer_

uint16_t CSCDDUStatusDigi::trailer_[12]
private

Definition at line 33 of file CSCDDUStatusDigi.h.

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

◆ tts_

uint16_t CSCDDUStatusDigi::tts_
private

Definition at line 34 of file CSCDDUStatusDigi.h.

Referenced by CSCDDUStatusDigi(), and getDDUTTS().