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 ()
 
 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 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) {}

◆ DTDDUData() [2/2]

DTDDUData::DTDDUData ( )
inline

Definition at line 110 of file DTControlData.h.

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

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

116 { theDDUHeader = word; }

References theDDUHeader.

Referenced by DTDDUUnpacker::interpretRawData().

◆ addDDUStatusWord()

void DTDDUData::addDDUStatusWord ( const DTDDUSecondStatusWord word)
inline

Definition at line 119 of file DTControlData.h.

119 { theDDUStatusWord = word; }

References theDDUStatusWord.

Referenced by DTDDUUnpacker::interpretRawData().

◆ addDDUTrailer()

void DTDDUData::addDDUTrailer ( const FEDTrailer word)
inline

Definition at line 117 of file DTControlData.h.

117 { theDDUTrailer = word; }

References theDDUTrailer.

Referenced by DTDDUUnpacker::interpretRawData().

◆ addROSStatusWord()

void DTDDUData::addROSStatusWord ( const DTDDUFirstStatusWord word)
inline

Definition at line 118 of file DTControlData.h.

118 { theROSStatusWords.push_back(word); }

References theROSStatusWords.

Referenced by DTDDUUnpacker::interpretRawData().

◆ checkCRCBit()

void DTDDUData::checkCRCBit ( const unsigned char *  trailer)
inline

Definition at line 120 of file DTControlData.h.

120  {
121  const FEDTrailer fedTrailer(trailer);
122  crcErrorBitSet = fedTrailer.crcModified();
123  }

References crcErrorBitSet, and FEDTrailer::crcModified().

Referenced by DTDDUUnpacker::interpretRawData().

◆ clean()

void DTDDUData::clean ( )
inline

Definition at line 133 of file DTControlData.h.

133 { theROSStatusWords.clear(); }

References theROSStatusWords.

Referenced by DTDDUUnpacker::interpretRawData().

◆ crcErrorBit()

bool DTDDUData::crcErrorBit ( ) const
inline

Definition at line 130 of file DTControlData.h.

130 { return crcErrorBitSet; }

References crcErrorBitSet.

◆ getDDUHeader()

const FEDHeader& DTDDUData::getDDUHeader ( ) const
inline

Getters.

Definition at line 126 of file DTControlData.h.

126 { return theDDUHeader; }

References theDDUHeader.

Referenced by DTDataIntegrityROSOffline::analyze().

◆ getDDUTrailer()

const FEDTrailer& DTDDUData::getDDUTrailer ( ) const
inline

Definition at line 127 of file DTControlData.h.

127 { return theDDUTrailer; }

References theDDUTrailer.

◆ getFirstStatusWord()

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

Definition at line 128 of file DTControlData.h.

128 { return theROSStatusWords; }

References theROSStatusWords.

◆ getSecondStatusWord()

const DTDDUSecondStatusWord& DTDDUData::getSecondStatusWord ( ) const
inline

Definition at line 129 of file DTControlData.h.

129 { return theDDUStatusWord; }

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

DTDDUData::crcErrorBitSet
bool crcErrorBitSet
Definition: DTControlData.h:140
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
DTDDUData::theDDUHeader
FEDHeader theDDUHeader
Definition: DTControlData.h:136
FEDTrailer
Definition: FEDTrailer.h:14
DTDDUData::theDDUTrailer
FEDTrailer theDDUTrailer
Definition: DTControlData.h:137
DTDDUData::theROSStatusWords
std::vector< DTDDUFirstStatusWord > theROSStatusWords
Definition: DTControlData.h:138
DTDDUData::theDDUStatusWord
DTDDUSecondStatusWord theDDUStatusWord
Definition: DTControlData.h:139