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 104 of file DTControlData.h.

Constructor & Destructor Documentation

◆ DTDDUData() [1/2]

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() [2/2]

DTDDUData::DTDDUData ( )
inline

Definition at line 110 of file DTControlData.h.

110 : theDDUHeader(nullptr), theDDUTrailer(nullptr), crcErrorBitSet(false) {}
bool crcErrorBitSet
FEDHeader theDDUHeader
FEDTrailer theDDUTrailer

◆ ~DTDDUData()

virtual DTDDUData::~DTDDUData ( )
inlinevirtual

Destructor.

Definition at line 113 of file DTControlData.h.

113 {}

Member Function Documentation

◆ addDDUHeader()

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

◆ addDDUStatusWord()

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

◆ addDDUTrailer()

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

◆ addROSStatusWord()

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); }
uint64_t word
std::vector< DTDDUFirstStatusWord > theROSStatusWords

◆ checkCRCBit()

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

◆ clean()

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

◆ crcErrorBit()

bool DTDDUData::crcErrorBit ( ) const
inline

Definition at line 130 of file DTControlData.h.

References crcErrorBitSet.

130 { return crcErrorBitSet; }
bool crcErrorBitSet

◆ getDDUHeader()

const FEDHeader& DTDDUData::getDDUHeader ( ) const
inline

Getters.

Definition at line 126 of file DTControlData.h.

References theDDUHeader.

Referenced by DTDataIntegrityROSOffline::analyze().

126 { return theDDUHeader; }
FEDHeader theDDUHeader

◆ getDDUTrailer()

const FEDTrailer& DTDDUData::getDDUTrailer ( ) const
inline

Definition at line 127 of file DTControlData.h.

References theDDUTrailer.

127 { return theDDUTrailer; }
FEDTrailer theDDUTrailer

◆ getFirstStatusWord()

const std::vector<DTDDUFirstStatusWord>& DTDDUData::getFirstStatusWord ( ) const
inline

Definition at line 128 of file DTControlData.h.

References theROSStatusWords.

128 { return theROSStatusWords; }
std::vector< DTDDUFirstStatusWord > theROSStatusWords

◆ getSecondStatusWord()

const DTDDUSecondStatusWord& DTDDUData::getSecondStatusWord ( ) const
inline

Definition at line 129 of file DTControlData.h.

References theDDUStatusWord.

129 { return theDDUStatusWord; }
DTDDUSecondStatusWord theDDUStatusWord

Member Data Documentation

◆ crcErrorBitSet

bool DTDDUData::crcErrorBitSet
private

Definition at line 140 of file DTControlData.h.

Referenced by checkCRCBit(), and crcErrorBit().

◆ theDDUHeader

FEDHeader DTDDUData::theDDUHeader
private

Definition at line 136 of file DTControlData.h.

Referenced by addDDUHeader(), and getDDUHeader().

◆ theDDUStatusWord

DTDDUSecondStatusWord DTDDUData::theDDUStatusWord
private

Definition at line 139 of file DTControlData.h.

Referenced by addDDUStatusWord(), and getSecondStatusWord().

◆ theDDUTrailer

FEDTrailer DTDDUData::theDDUTrailer
private

Definition at line 137 of file DTControlData.h.

Referenced by addDDUTrailer(), and getDDUTrailer().

◆ theROSStatusWords

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

Definition at line 138 of file DTControlData.h.

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