CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 12 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 23 of file CSCDDUStatusDigi.h.

23 {}

Member Function Documentation

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 }
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 26 of file CSCDDUStatusDigi.cc.

References gather_cfg::cout, getDDUTTS(), header_, and trailer_.

26  {
27  std::cout << " Header: " << std::hex << *header_ <<
28  " Trailer: " << std::hex << *trailer_ << " TTS: " << getDDUTTS() << std::dec << std::endl;
29 }
uint16_t trailer_[12]
uint16_t header_[12]
const uint16_t getDDUTTS() const
tuple cout
Definition: gather_cfg.py:121
const uint16_t* CSCDDUStatusDigi::trailer ( ) const
inline

Definition at line 27 of file CSCDDUStatusDigi.h.

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