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
CSCDCCStatusDigi Class Reference

#include <CSCDCCStatusDigi.h>

Public Member Functions

 CSCDCCStatusDigi (const uint16_t *header, const uint16_t *trailer, const uint32_t &error, short unsigned tts)
 Constructor for all variables. More...
 
 CSCDCCStatusDigi (const uint32_t &error, short unsigned tts)
 
 CSCDCCStatusDigi ()
 Default constructor. More...
 
const uint32_t errorFlag () const
 
const uint16_t getDCCTTS () const
 
const uint16_t * header () const
 data accessors More...
 
void print () const
 Print the content of CSCDCCStatusDigi. More...
 
const uint16_t * trailer () const
 

Private Attributes

uint32_t errorFlag_
 
uint16_t header_ [8]
 
uint16_t trailer_ [8]
 
short unsigned tts_
 

Detailed Description

Digi for CSC DCC info available in DDU

Definition at line 15 of file CSCDCCStatusDigi.h.

Constructor & Destructor Documentation

CSCDCCStatusDigi::CSCDCCStatusDigi ( const uint16_t *  header,
const uint16_t *  trailer,
const uint32_t &  error,
short unsigned  tts 
)

Constructor for all variables.

Definition at line 12 of file CSCDCCStatusDigi.cc.

References relativeConstraints::error, errorFlag_, header_, trailer_, and tts_.

14 {
16  uint16_t headerSizeInBytes =16;
17  uint16_t trailerSizeInBytes =16;
18  memcpy(header_, header, headerSizeInBytes);
19  memcpy(trailer_, trailer, trailerSizeInBytes);
20  tts_ = tts;
21 }
const uint16_t * header() const
data accessors
uint16_t trailer_[8]
short unsigned tts_
const uint16_t * trailer() const
uint16_t header_[8]
CSCDCCStatusDigi::CSCDCCStatusDigi ( const uint32_t &  error,
short unsigned  tts 
)
inline

Definition at line 22 of file CSCDCCStatusDigi.h.

References relativeConstraints::error, and errorFlag_.

22 {errorFlag_=error;} //tts_ = tts;}
CSCDCCStatusDigi::CSCDCCStatusDigi ( )
inline

Default constructor.

Definition at line 25 of file CSCDCCStatusDigi.h.

25 {}

Member Function Documentation

const uint32_t CSCDCCStatusDigi::errorFlag ( ) const
inline

Definition at line 30 of file CSCDCCStatusDigi.h.

References errorFlag_.

30 {return errorFlag_;}
const uint16_t CSCDCCStatusDigi::getDCCTTS ( ) const

Definition at line 23 of file CSCDCCStatusDigi.cc.

References tts_.

Referenced by print().

23  {
24  uint16_t ttsBits = (tts_ & 0x00F0) >> 4;
25  return ttsBits;
26 }
short unsigned tts_
const uint16_t* CSCDCCStatusDigi::header ( ) const
inline

data accessors

Definition at line 28 of file CSCDCCStatusDigi.h.

References header_.

Referenced by CSCDCCHeader::CSCDCCHeader().

28 {return header_;}
uint16_t header_[8]
void CSCDCCStatusDigi::print ( void  ) const

Print the content of CSCDCCStatusDigi.

Definition at line 28 of file CSCDCCStatusDigi.cc.

References gather_cfg::cout, TauDecayModes::dec, errorFlag_, getDCCTTS(), header_, and trailer_.

28  {
29  std::cout << " Header: " << std::hex << *header_ <<
30  " Trailer: " << std::hex << *trailer_ << " ErrorFlag: " << errorFlag_ <<
31  " TTS: " << getDCCTTS() << std::dec << std::endl;
32 }
uint16_t trailer_[8]
const uint16_t getDCCTTS() const
uint16_t header_[8]
tuple cout
Definition: gather_cfg.py:121
const uint16_t* CSCDCCStatusDigi::trailer ( ) const
inline

Definition at line 29 of file CSCDCCStatusDigi.h.

References trailer_.

Referenced by CSCDCCTrailer::CSCDCCTrailer().

29 {return trailer_;}
uint16_t trailer_[8]

Member Data Documentation

uint32_t CSCDCCStatusDigi::errorFlag_
private

Definition at line 40 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), errorFlag(), and print().

uint16_t CSCDCCStatusDigi::header_[8]
private

Definition at line 38 of file CSCDCCStatusDigi.h.

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

uint16_t CSCDCCStatusDigi::trailer_[8]
private

Definition at line 39 of file CSCDCCStatusDigi.h.

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

short unsigned CSCDCCStatusDigi::tts_
private

Definition at line 41 of file CSCDCCStatusDigi.h.

Referenced by CSCDCCStatusDigi(), and getDCCTTS().