#include <DTControlData.h>
Public Member Functions | |
void | addDDUHeader (const FEDHeader &word) |
Setters. | |
void | addDDUStatusWord (const DTDDUSecondStatusWord &word) |
void | addDDUTrailer (const FEDTrailer &word) |
void | addROSStatusWord (const DTDDUFirstStatusWord &word) |
void | checkCRCBit (const unsigned char *trailer) |
bool | crcErrorBit () const |
DTDDUData (const FEDHeader &dduHeader, const FEDTrailer &dduTrailer) | |
Constructor. | |
const FEDHeader & | getDDUHeader () const |
Getters. | |
const FEDTrailer & | getDDUTrailer () const |
const std::vector < DTDDUFirstStatusWord > & | getFirstStatusWord () const |
const DTDDUSecondStatusWord & | getSecondStatusWord () const |
virtual | ~DTDDUData () |
Destructor. | |
Private Attributes | |
bool | crcErrorBitSet |
FEDHeader | theDDUHeader |
DTDDUSecondStatusWord | theDDUStatusWord |
FEDTrailer | theDDUTrailer |
std::vector< DTDDUFirstStatusWord > | theROSStatusWords |
Definition at line 110 of file DTControlData.h.
DTDDUData::DTDDUData | ( | const FEDHeader & | dduHeader, |
const FEDTrailer & | dduTrailer | ||
) | [inline] |
Constructor.
Definition at line 115 of file DTControlData.h.
: theDDUHeader(dduHeader), theDDUTrailer(dduTrailer), crcErrorBitSet(false) {}
virtual DTDDUData::~DTDDUData | ( | ) | [inline, virtual] |
void DTDDUData::addDDUHeader | ( | const FEDHeader & | word | ) | [inline] |
Setters.
Definition at line 126 of file DTControlData.h.
References theDDUHeader.
{ theDDUHeader = word; }
void DTDDUData::addDDUStatusWord | ( | const DTDDUSecondStatusWord & | word | ) | [inline] |
Definition at line 131 of file DTControlData.h.
References theDDUStatusWord.
Referenced by DTDDUUnpacker::interpretRawData().
{ theDDUStatusWord = word; }
void DTDDUData::addDDUTrailer | ( | const FEDTrailer & | word | ) | [inline] |
void DTDDUData::addROSStatusWord | ( | const DTDDUFirstStatusWord & | word | ) | [inline] |
Definition at line 128 of file DTControlData.h.
References theROSStatusWords.
Referenced by DTDDUUnpacker::interpretRawData().
{ theROSStatusWords.push_back(word); }
void DTDDUData::checkCRCBit | ( | const unsigned char * | trailer | ) | [inline] |
Definition at line 134 of file DTControlData.h.
References fedt_struct::conscheck, and crcErrorBitSet.
Referenced by DTDDUUnpacker::interpretRawData().
{ const fedt_struct* theTrailer(reinterpret_cast<const fedt_t*>(trailer)); if(((theTrailer->conscheck & 0x00000004) >> 2) == 1) { crcErrorBitSet = true; } crcErrorBitSet = false; }
bool DTDDUData::crcErrorBit | ( | ) | const [inline] |
Definition at line 149 of file DTControlData.h.
References crcErrorBitSet.
Referenced by DTDataIntegrityTask::processFED().
{ return crcErrorBitSet; }
const FEDHeader& DTDDUData::getDDUHeader | ( | ) | const [inline] |
Getters.
Definition at line 143 of file DTControlData.h.
References theDDUHeader.
Referenced by DTDataIntegrityTask::processFED().
{return theDDUHeader;}
const FEDTrailer& DTDDUData::getDDUTrailer | ( | ) | const [inline] |
Definition at line 144 of file DTControlData.h.
References theDDUTrailer.
Referenced by DTDataIntegrityTask::processFED().
{return theDDUTrailer;}
const std::vector<DTDDUFirstStatusWord>& DTDDUData::getFirstStatusWord | ( | ) | const [inline] |
Definition at line 145 of file DTControlData.h.
References theROSStatusWords.
Referenced by DTDataIntegrityTask::processFED().
{ return theROSStatusWords;}
const DTDDUSecondStatusWord& DTDDUData::getSecondStatusWord | ( | ) | const [inline] |
Definition at line 147 of file DTControlData.h.
References theDDUStatusWord.
Referenced by DTDataIntegrityTask::processFED().
{ return theDDUStatusWord;}
bool DTDDUData::crcErrorBitSet [private] |
Definition at line 159 of file DTControlData.h.
Referenced by checkCRCBit(), and crcErrorBit().
FEDHeader DTDDUData::theDDUHeader [private] |
Definition at line 155 of file DTControlData.h.
Referenced by addDDUHeader(), and getDDUHeader().
Definition at line 158 of file DTControlData.h.
Referenced by addDDUStatusWord(), and getSecondStatusWord().
FEDTrailer DTDDUData::theDDUTrailer [private] |
Definition at line 156 of file DTControlData.h.
Referenced by addDDUTrailer(), and getDDUTrailer().
std::vector<DTDDUFirstStatusWord> DTDDUData::theROSStatusWords [private] |
Definition at line 157 of file DTControlData.h.
Referenced by addROSStatusWord(), and getFirstStatusWord().