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::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_, 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 }
uint16_t trailer_[12]
uint16_t header_[12]
const uint16_t * header() const
Data Accessors.
const uint16_t * trailer() const
CSCDDUStatusDigi::CSCDDUStatusDigi ( )
inline

Default constructor.

Definition at line 21 of file CSCDDUStatusDigi.h.

21 {}

Member Function Documentation

const uint16_t CSCDDUStatusDigi::getDDUTTS ( ) const

Definition at line 21 of file CSCDDUStatusDigi.cc.

References tts_.

Referenced by print(), and trailer().

21  {
22  uint16_t ttsBits = (tts_ & 0x00F0) >> 4;
23  return ttsBits;
24 }
const uint16_t* CSCDDUStatusDigi::header ( ) const
inline

Data Accessors.

Definition at line 24 of file CSCDDUStatusDigi.h.

References header_.

Referenced by CSCDDUHeader::CSCDDUHeader().

24 { return header_; }
uint16_t header_[12]
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_.

Referenced by trailer().

26  {
27  edm::LogVerbatim("CSCDigi") << " Header: " << std::hex << *header_ << " Trailer: " << std::hex << *trailer_
28  << " TTS: " << getDDUTTS() << std::dec;
29 }
uint16_t trailer_[12]
uint16_t header_[12]
const uint16_t getDDUTTS() const
const uint16_t* CSCDDUStatusDigi::trailer ( ) const
inline

Definition at line 25 of file CSCDDUStatusDigi.h.

References getDDUTTS(), print(), and trailer_.

Referenced by CSCDDUTrailer::CSCDDUTrailer().

25 { return trailer_; }
uint16_t trailer_[12]

Member Data Documentation

uint16_t CSCDDUStatusDigi::header_[12]
private

Definition at line 32 of file CSCDDUStatusDigi.h.

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

uint16_t CSCDDUStatusDigi::trailer_[12]
private

Definition at line 33 of file CSCDDUStatusDigi.h.

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

uint16_t CSCDDUStatusDigi::tts_
private

Definition at line 34 of file CSCDDUStatusDigi.h.

Referenced by CSCDDUStatusDigi(), and getDDUTTS().