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

#include <DTControlData.h>

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 108 of file DTControlData.h.

Constructor & Destructor Documentation

DTDDUData::DTDDUData ( const FEDHeader dduHeader,
const FEDTrailer dduTrailer 
)
inline

Constructor.

Definition at line 113 of file DTControlData.h.

113  :
114  theDDUHeader(dduHeader),
115  theDDUTrailer(dduTrailer),
116  crcErrorBitSet(false)
117  {}
bool crcErrorBitSet
FEDHeader theDDUHeader
FEDTrailer theDDUTrailer
virtual DTDDUData::~DTDDUData ( )
inlinevirtual

Destructor.

Definition at line 121 of file DTControlData.h.

121 {}

Member Function Documentation

void DTDDUData::addDDUHeader ( const FEDHeader word)
inline

Setters.

Definition at line 124 of file DTControlData.h.

References theDDUHeader.

124 { theDDUHeader = word; }
FEDHeader theDDUHeader
void DTDDUData::addDDUStatusWord ( const DTDDUSecondStatusWord word)
inline

Definition at line 129 of file DTControlData.h.

References theDDUStatusWord.

Referenced by DTDDUUnpacker::interpretRawData().

129  {
130  theDDUStatusWord = word;
131  }
DTDDUSecondStatusWord theDDUStatusWord
void DTDDUData::addDDUTrailer ( const FEDTrailer word)
inline

Definition at line 125 of file DTControlData.h.

References theDDUTrailer.

125 { theDDUTrailer = word; }
FEDTrailer theDDUTrailer
void DTDDUData::addROSStatusWord ( const DTDDUFirstStatusWord word)
inline

Definition at line 126 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDDUUnpacker::interpretRawData().

126  {
127  theROSStatusWords.push_back(word);
128  }
std::vector< DTDDUFirstStatusWord > theROSStatusWords
void DTDDUData::checkCRCBit ( const unsigned char *  trailer)
inline

Definition at line 132 of file DTControlData.h.

References fedt_struct::conscheck, and crcErrorBitSet.

Referenced by DTDDUUnpacker::interpretRawData().

132  {
133  const fedt_struct* theTrailer(reinterpret_cast<const fedt_t*>(trailer));
134  if(((theTrailer->conscheck & 0x00000004) >> 2) == 1) {
135  crcErrorBitSet = true;
136  }
137  crcErrorBitSet = false;
138  }
bool crcErrorBitSet
bool DTDDUData::crcErrorBit ( ) const
inline

Definition at line 147 of file DTControlData.h.

References crcErrorBitSet.

Referenced by DTDataIntegrityTask::processFED().

147  {
148  return crcErrorBitSet;
149  }
bool crcErrorBitSet
const FEDHeader& DTDDUData::getDDUHeader ( ) const
inline

Getters.

Definition at line 141 of file DTControlData.h.

References theDDUHeader.

Referenced by DTDataIntegrityTask::processFED().

141 {return theDDUHeader;}
FEDHeader theDDUHeader
const FEDTrailer& DTDDUData::getDDUTrailer ( ) const
inline

Definition at line 142 of file DTControlData.h.

References theDDUTrailer.

Referenced by DTDataIntegrityTask::processFED().

142 {return theDDUTrailer;}
FEDTrailer theDDUTrailer
const std::vector<DTDDUFirstStatusWord>& DTDDUData::getFirstStatusWord ( ) const
inline

Definition at line 143 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDataIntegrityTask::processFED().

143  {
144  return theROSStatusWords;}
std::vector< DTDDUFirstStatusWord > theROSStatusWords
const DTDDUSecondStatusWord& DTDDUData::getSecondStatusWord ( ) const
inline

Definition at line 145 of file DTControlData.h.

References theDDUStatusWord.

Referenced by DTDataIntegrityTask::processFED().

145  {
146  return theDDUStatusWord;}
DTDDUSecondStatusWord theDDUStatusWord

Member Data Documentation

bool DTDDUData::crcErrorBitSet
private

Definition at line 157 of file DTControlData.h.

Referenced by checkCRCBit(), and crcErrorBit().

FEDHeader DTDDUData::theDDUHeader
private

Definition at line 153 of file DTControlData.h.

Referenced by addDDUHeader(), and getDDUHeader().

DTDDUSecondStatusWord DTDDUData::theDDUStatusWord
private

Definition at line 156 of file DTControlData.h.

Referenced by addDDUStatusWord(), and getSecondStatusWord().

FEDTrailer DTDDUData::theDDUTrailer
private

Definition at line 154 of file DTControlData.h.

Referenced by addDDUTrailer(), and getDDUTrailer().

std::vector<DTDDUFirstStatusWord> DTDDUData::theROSStatusWords
private

Definition at line 155 of file DTControlData.h.

Referenced by addROSStatusWord(), and getFirstStatusWord().