CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTDDUData Class Reference

#include <DTControlData.h>

List of all members.

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 FEDHeadergetDDUHeader () const
 Getters.
const FEDTrailergetDDUTrailer () const
const std::vector
< DTDDUFirstStatusWord > & 
getFirstStatusWord () const
const DTDDUSecondStatusWordgetSecondStatusWord () const
virtual ~DTDDUData ()
 Destructor.

Private Attributes

bool crcErrorBitSet
FEDHeader theDDUHeader
DTDDUSecondStatusWord theDDUStatusWord
FEDTrailer theDDUTrailer
std::vector< DTDDUFirstStatusWordtheROSStatusWords

Detailed Description

Definition at line 110 of file DTControlData.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 123 of file DTControlData.h.

{}

Member Function Documentation

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]

Definition at line 127 of file DTControlData.h.

References theDDUTrailer.

{ theDDUTrailer = word; }
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;}

Member Data Documentation

bool DTDDUData::crcErrorBitSet [private]

Definition at line 159 of file DTControlData.h.

Referenced by checkCRCBit(), and crcErrorBit().

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

Definition at line 156 of file DTControlData.h.

Referenced by addDDUTrailer(), and getDDUTrailer().

Definition at line 157 of file DTControlData.h.

Referenced by addROSStatusWord(), and getFirstStatusWord().