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

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

Destructor.

Definition at line 123 of file DTControlData.h.

123 {}

Member Function Documentation

void DTDDUData::addDDUHeader ( const FEDHeader word)
inline

Setters.

Definition at line 126 of file DTControlData.h.

References theDDUHeader.

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

Definition at line 131 of file DTControlData.h.

References theDDUStatusWord.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 127 of file DTControlData.h.

References theDDUTrailer.

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

Definition at line 128 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDDUUnpacker::interpretRawData().

128  {
129  theROSStatusWords.push_back(word);
130  }
std::vector< DTDDUFirstStatusWord > theROSStatusWords
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().

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

Definition at line 149 of file DTControlData.h.

References crcErrorBitSet.

Referenced by DTDataIntegrityTask::processFED().

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

Getters.

Definition at line 143 of file DTControlData.h.

References theDDUHeader.

Referenced by DTDataIntegrityTask::processFED().

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

Definition at line 144 of file DTControlData.h.

References theDDUTrailer.

Referenced by DTDataIntegrityTask::processFED().

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

Definition at line 145 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDataIntegrityTask::processFED().

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

Definition at line 147 of file DTControlData.h.

References theDDUStatusWord.

Referenced by DTDataIntegrityTask::processFED().

147  {
148  return theDDUStatusWord;}
DTDDUSecondStatusWord theDDUStatusWord

Member Data Documentation

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

DTDDUSecondStatusWord DTDDUData::theDDUStatusWord
private

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