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

Constructor & Destructor Documentation

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

Constructor.

Definition at line 111 of file DTControlData.h.

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

Definition at line 117 of file DTControlData.h.

117  :
118  theDDUHeader(0),
119  theDDUTrailer(0),
120  crcErrorBitSet(false)
121  {}
bool crcErrorBitSet
FEDHeader theDDUHeader
FEDTrailer theDDUTrailer
virtual DTDDUData::~DTDDUData ( )
inlinevirtual

Destructor.

Definition at line 124 of file DTControlData.h.

124 {}

Member Function Documentation

void DTDDUData::addDDUHeader ( const FEDHeader word)
inline

Setters.

Definition at line 127 of file DTControlData.h.

References theDDUHeader.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 132 of file DTControlData.h.

References theDDUStatusWord.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 128 of file DTControlData.h.

References theDDUTrailer.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 129 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 135 of file DTControlData.h.

References fedt_struct::conscheck, and crcErrorBitSet.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 155 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDDUUnpacker::interpretRawData().

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

Definition at line 150 of file DTControlData.h.

References crcErrorBitSet.

Referenced by DTDataIntegrityTask::processFED().

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

Getters.

Definition at line 144 of file DTControlData.h.

References theDDUHeader.

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

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

Definition at line 145 of file DTControlData.h.

References theDDUTrailer.

Referenced by DTDataIntegrityTask::processFED().

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

Definition at line 146 of file DTControlData.h.

References theROSStatusWords.

Referenced by DTDataIntegrityTask::processFED().

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

Definition at line 148 of file DTControlData.h.

References theDDUStatusWord.

Referenced by DTDataIntegrityTask::processFED().

148  {
149  return theDDUStatusWord;}
DTDDUSecondStatusWord theDDUStatusWord

Member Data Documentation

bool DTDDUData::crcErrorBitSet
private

Definition at line 166 of file DTControlData.h.

Referenced by checkCRCBit(), and crcErrorBit().

FEDHeader DTDDUData::theDDUHeader
private

Definition at line 162 of file DTControlData.h.

Referenced by addDDUHeader(), and getDDUHeader().

DTDDUSecondStatusWord DTDDUData::theDDUStatusWord
private

Definition at line 165 of file DTControlData.h.

Referenced by addDDUStatusWord(), and getSecondStatusWord().

FEDTrailer DTDDUData::theDDUTrailer
private

Definition at line 163 of file DTControlData.h.

Referenced by addDDUTrailer(), and getDDUTrailer().

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

Definition at line 164 of file DTControlData.h.

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