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

14 {
15  uint16_t headerSizeInBytes =24;
16  uint16_t trailerSizeInBytes =24;
17  memcpy(header_, header, headerSizeInBytes);
18  memcpy(trailer_, trailer, trailerSizeInBytes);
19  tts_=tts;
20 }
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 23 of file CSCDDUStatusDigi.h.

23 {}

Member Function Documentation

const uint16_t CSCDDUStatusDigi::getDDUTTS ( ) const

Definition at line 22 of file CSCDDUStatusDigi.cc.

References tts_.

Referenced by print(), and trailer().

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

Data Accessors.

Definition at line 26 of file CSCDDUStatusDigi.h.

References header_.

Referenced by CSCDDUHeader::CSCDDUHeader().

26 { return header_;}
uint16_t header_[12]
void CSCDDUStatusDigi::print ( void  ) const

Print the content of CSCDDUStatusDigi.

Definition at line 27 of file CSCDDUStatusDigi.cc.

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

Referenced by trailer().

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

Definition at line 27 of file CSCDDUStatusDigi.h.

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

Referenced by CSCDDUTrailer::CSCDDUTrailer().

27 {return trailer_;}
uint16_t trailer_[12]

Member Data Documentation

uint16_t CSCDDUStatusDigi::header_[12]
private

Definition at line 35 of file CSCDDUStatusDigi.h.

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

uint16_t CSCDDUStatusDigi::trailer_[12]
private

Definition at line 36 of file CSCDDUStatusDigi.h.

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

uint16_t CSCDDUStatusDigi::tts_
private

Definition at line 37 of file CSCDDUStatusDigi.h.

Referenced by CSCDDUStatusDigi(), and getDDUTTS().