CMS 3D CMS Logo

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

#include <CSCDDUStatusDigi.h>

Public Member Functions

 CSCDDUStatusDigi ()
 Default constructor. More...
 
 CSCDDUStatusDigi (const uint16_t *header, const uint16_t *trailer, uint16_t tts)
 Constructor for all variables. 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.

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 }

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

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

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

References tts_.

Referenced by print().

◆ header()

const uint16_t* CSCDDUStatusDigi::header ( ) const
inline

Data Accessors.

Definition at line 24 of file CSCDDUStatusDigi.h.

24 { return header_; }

References header_.

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

◆ print()

void CSCDDUStatusDigi::print ( void  ) const

Print the content of CSCDDUStatusDigi.

Definition at line 26 of file CSCDDUStatusDigi.cc.

26  {
27  edm::LogVerbatim("CSCDigi") << " Header: " << std::hex << *header_ << " Trailer: " << std::hex << *trailer_
28  << " TTS: " << getDDUTTS() << std::dec;
29 }

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

◆ trailer()

const uint16_t* CSCDDUStatusDigi::trailer ( ) const
inline

Definition at line 25 of file CSCDDUStatusDigi.h.

25 { return trailer_; }

References trailer_.

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

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

CSCDDUStatusDigi::tts_
uint16_t tts_
Definition: CSCDDUStatusDigi.h:34
CSCDDUStatusDigi::getDDUTTS
const uint16_t getDDUTTS() const
Definition: CSCDDUStatusDigi.cc:21
CSCDDUStatusDigi::trailer
const uint16_t * trailer() const
Definition: CSCDDUStatusDigi.h:25
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
CSCDDUStatusDigi::header
const uint16_t * header() const
Data Accessors.
Definition: CSCDDUStatusDigi.h:24
CSCDDUStatusDigi::trailer_
uint16_t trailer_[12]
Definition: CSCDDUStatusDigi.h:33
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142
CSCDDUStatusDigi::header_
uint16_t header_[12]
Definition: CSCDDUStatusDigi.h:32