CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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)
 
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 104 of file DTControlData.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 107 of file DTControlData.h.

108  : theDDUHeader(dduHeader), theDDUTrailer(dduTrailer), crcErrorBitSet(false) {}
bool crcErrorBitSet
FEDHeader theDDUHeader
FEDTrailer theDDUTrailer
DTDDUData::DTDDUData ( )
inline

Definition at line 110 of file DTControlData.h.

110 : theDDUHeader(nullptr), theDDUTrailer(nullptr), crcErrorBitSet(false) {}
bool crcErrorBitSet
FEDHeader theDDUHeader
FEDTrailer theDDUTrailer
virtual DTDDUData::~DTDDUData ( )
inlinevirtual

Destructor.

Definition at line 113 of file DTControlData.h.

113 {}

Member Function Documentation

void DTDDUData::addDDUHeader ( const FEDHeader word)
inline

Setters.

Definition at line 116 of file DTControlData.h.

References theDDUHeader.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 119 of file DTControlData.h.

References theDDUStatusWord.

Referenced by DTDDUUnpacker::interpretRawData().

119 { theDDUStatusWord = word; }
uint64_t word
DTDDUSecondStatusWord theDDUStatusWord
void DTDDUData::addDDUTrailer ( const FEDTrailer word)
inline

Definition at line 117 of file DTControlData.h.

References theDDUTrailer.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 118 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 120 of file DTControlData.h.

References crcErrorBitSet, and FEDTrailer::crcModified().

Referenced by DTDDUUnpacker::interpretRawData().

120  {
121  const FEDTrailer fedTrailer(trailer);
122  crcErrorBitSet = fedTrailer.crcModified();
123  }
bool crcErrorBitSet
void DTDDUData::clean ( )
inline

Definition at line 133 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 130 of file DTControlData.h.

References crcErrorBitSet.

Referenced by DTDataIntegrityROSOffline::processFED().

130 { return crcErrorBitSet; }
bool crcErrorBitSet
const FEDHeader& DTDDUData::getDDUHeader ( ) const
inline

Getters.

Definition at line 126 of file DTControlData.h.

References theDDUHeader.

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

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

Definition at line 127 of file DTControlData.h.

References theDDUTrailer.

Referenced by DTDataIntegrityROSOffline::processFED().

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

Definition at line 128 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDataIntegrityROSOffline::processFED().

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

Definition at line 129 of file DTControlData.h.

References theDDUStatusWord.

Referenced by DTDataIntegrityROSOffline::processFED().

129 { return theDDUStatusWord; }
DTDDUSecondStatusWord theDDUStatusWord

Member Data Documentation

bool DTDDUData::crcErrorBitSet
private

Definition at line 140 of file DTControlData.h.

Referenced by checkCRCBit(), and crcErrorBit().

FEDHeader DTDDUData::theDDUHeader
private

Definition at line 136 of file DTControlData.h.

Referenced by addDDUHeader(), and getDDUHeader().

DTDDUSecondStatusWord DTDDUData::theDDUStatusWord
private

Definition at line 139 of file DTControlData.h.

Referenced by addDDUStatusWord(), and getSecondStatusWord().

FEDTrailer DTDDUData::theDDUTrailer
private

Definition at line 137 of file DTControlData.h.

Referenced by addDDUTrailer(), and getDDUTrailer().

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

Definition at line 138 of file DTControlData.h.

Referenced by addROSStatusWord(), clean(), and getFirstStatusWord().