CMS 3D CMS Logo

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)
 
void clean ()
 
bool crcErrorBit () const
 
 DTDDUData (const FEDHeader &dduHeader, const FEDTrailer &dduTrailer)
 Constructor. More...
 
 DTDDUData ()
 
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 105 of file DTControlData.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 110 of file DTControlData.h.

110  :
111  theDDUHeader(dduHeader),
112  theDDUTrailer(dduTrailer),
113  crcErrorBitSet(false)
114  {}
bool crcErrorBitSet
FEDHeader theDDUHeader
FEDTrailer theDDUTrailer
DTDDUData::DTDDUData ( )
inline

Definition at line 116 of file DTControlData.h.

116  :
117  theDDUHeader(nullptr),
118  theDDUTrailer(nullptr),
119  crcErrorBitSet(false)
120  {}
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.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 131 of file DTControlData.h.

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.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 128 of file DTControlData.h.

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 FEDTrailer::crcModified().

Referenced by DTDDUUnpacker::interpretRawData().

134  {
135  const FEDTrailer fedTrailer(trailer);
136  crcErrorBitSet = fedTrailer.crcModified();
137  }
bool crcErrorBitSet
void DTDDUData::clean ( )
inline

Definition at line 151 of file DTControlData.h.

Referenced by DTDDUUnpacker::interpretRawData().

151  {
152  theROSStatusWords.clear();
153  }
std::vector< DTDDUFirstStatusWord > theROSStatusWords
bool DTDDUData::crcErrorBit ( ) const
inline

Definition at line 146 of file DTControlData.h.

Referenced by DTDataIntegrityTask::processFED().

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

Getters.

Definition at line 140 of file DTControlData.h.

Referenced by DTDataIntegrityTask::analyze(), and DTDataIntegrityTask::processFED().

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

Definition at line 141 of file DTControlData.h.

Referenced by DTDataIntegrityTask::processFED().

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

Definition at line 142 of file DTControlData.h.

Referenced by DTDataIntegrityTask::processFED().

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

Definition at line 144 of file DTControlData.h.

Referenced by DTDataIntegrityTask::processFED().

144  {
145  return theDDUStatusWord;}
DTDDUSecondStatusWord theDDUStatusWord

Member Data Documentation

bool DTDDUData::crcErrorBitSet
private

Definition at line 162 of file DTControlData.h.

FEDHeader DTDDUData::theDDUHeader
private

Definition at line 158 of file DTControlData.h.

DTDDUSecondStatusWord DTDDUData::theDDUStatusWord
private

Definition at line 161 of file DTControlData.h.

FEDTrailer DTDDUData::theDDUTrailer
private

Definition at line 159 of file DTControlData.h.

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

Definition at line 160 of file DTControlData.h.