#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. | |
CSCDCCStatusDigi (const uint32_t &error, short unsigned tts) | |
CSCDCCStatusDigi () | |
Default constructor. | |
const uint32_t | errorFlag () const |
const uint16_t | getDCCTTS () const |
const uint16_t * | header () const |
data accessors | |
void | print () const |
Print the content of CSCDCCStatusDigi. | |
const uint16_t * | trailer () const |
Private Attributes | |
uint32_t | errorFlag_ |
uint16_t | header_ [8] |
uint16_t | trailer_ [8] |
short unsigned | tts_ |
Digi for CSC DCC info available in DDU
Digi for CSC DCC info available in DDU
Definition at line 17 of file CSCDCCStatusDigi.h.
CSCDCCStatusDigi::CSCDCCStatusDigi | ( | const uint16_t * | header, |
const uint16_t * | trailer, | ||
const uint32_t & | error, | ||
short unsigned | tts | ||
) |
Constructor for all variables.
Definition at line 14 of file CSCDCCStatusDigi.cc.
References error, errorFlag_, header_, trailer_, and tts_.
CSCDCCStatusDigi::CSCDCCStatusDigi | ( | const uint32_t & | error, |
short unsigned | tts | ||
) | [inline] |
Definition at line 24 of file CSCDCCStatusDigi.h.
References error, and errorFlag_.
{errorFlag_=error;} //tts_ = tts;}
CSCDCCStatusDigi::CSCDCCStatusDigi | ( | ) | [inline] |
const uint32_t CSCDCCStatusDigi::errorFlag | ( | ) | const [inline] |
const uint16_t CSCDCCStatusDigi::getDCCTTS | ( | ) | const |
Definition at line 25 of file CSCDCCStatusDigi.cc.
References tts_.
Referenced by print().
{ uint16_t ttsBits = (tts_ & 0x00F0) >> 4; return ttsBits; }
const uint16_t* CSCDCCStatusDigi::header | ( | ) | const [inline] |
data accessors
Definition at line 30 of file CSCDCCStatusDigi.h.
References header_.
Referenced by CSCDCCHeader::CSCDCCHeader().
{return header_;}
void CSCDCCStatusDigi::print | ( | void | ) | const |
Print the content of CSCDCCStatusDigi.
Definition at line 30 of file CSCDCCStatusDigi.cc.
References gather_cfg::cout, errorFlag_, getDCCTTS(), header_, and trailer_.
{ std::cout << " Header: " << std::hex << *header_ << " Trailer: " << std::hex << *trailer_ << " ErrorFlag: " << errorFlag_ << " TTS: " << getDCCTTS() << std::dec << std::endl; }
const uint16_t* CSCDCCStatusDigi::trailer | ( | ) | const [inline] |
Definition at line 31 of file CSCDCCStatusDigi.h.
References trailer_.
Referenced by CSCDCCTrailer::CSCDCCTrailer().
{return trailer_;}
uint32_t CSCDCCStatusDigi::errorFlag_ [private] |
Definition at line 42 of file CSCDCCStatusDigi.h.
Referenced by CSCDCCStatusDigi(), errorFlag(), and print().
uint16_t CSCDCCStatusDigi::header_[8] [private] |
Definition at line 40 of file CSCDCCStatusDigi.h.
Referenced by CSCDCCStatusDigi(), header(), and print().
uint16_t CSCDCCStatusDigi::trailer_[8] [private] |
Definition at line 41 of file CSCDCCStatusDigi.h.
Referenced by CSCDCCStatusDigi(), print(), and trailer().
short unsigned CSCDCCStatusDigi::tts_ [private] |
Definition at line 43 of file CSCDCCStatusDigi.h.
Referenced by CSCDCCStatusDigi(), and getDCCTTS().