#include <SiStripFEDBufferComponents.h>
Public Member Functions | |
uint8_t | apveAddress () const |
FEDBufferFormat | bufferFormat () const |
size_t | bufferSize () const |
uint16_t | calcCRC () const |
const FEDChannel & | channel (const uint8_t internalFEDChannelNum) const |
const FEDChannel & | channel (const uint8_t internalFEUnitNum, const uint8_t internalChannelNum) const |
virtual bool | channelGood (const uint8_t internalFEDChannelNum) const |
bool | channelGood (const uint8_t internalFEUnitNum, const uint8_t internalChannelNum) const |
bool | checkAPVEAddressValid () const |
bool | checkBufferFormat () const |
bool | checkCRC () const |
bool | checkHeaderType () const |
bool | checkLengthFromTrailer () const |
bool | checkMajorityAddresses () const |
bool | checkNoExtraHeadersOrTrailers () const |
bool | checkNoFEOverflows () const |
bool | checkNoSlinkCRCError () const |
bool | checkNoSLinkTransmissionError () const |
bool | checkNoUnexpectedSourceID () const |
bool | checkReadoutMode () const |
bool | checkSourceIDs () const |
virtual std::string | checkSummary () const |
uint16_t | daqBXID () const |
uint16_t | daqCRC () const |
uint32_t | daqEventLengthIn64bitWords () const |
uint32_t | daqEventLengthInBytes () const |
FEDDAQEventType | daqEventType () const |
FEDDAQHeader | daqHeader () const |
uint32_t | daqLvl1ID () const |
uint16_t | daqSourceID () const |
FEDDAQTrailer | daqTrailer () const |
FEDTTSBits | daqTTSState () const |
virtual bool | doChecks () const |
bool | doDAQHeaderAndTrailerChecks () const |
bool | doTrackerSpecialHeaderChecks () const |
void | dump (std::ostream &os) const |
void | dumpOriginalBuffer (std::ostream &os) const |
FEDBufferBase (const uint8_t *fedBuffer, const size_t fedBufferSize, const bool allowUnrecognizedFormat=false) | |
FEDStatusRegister | fedStatusRegister () const |
bool | feEnabled (const uint8_t internalFEUnitNum) const |
bool | feOverflow (const uint8_t internalFEUnitNum) const |
FEDHeaderType | headerType () const |
FEDLegacyReadoutMode | legacyReadoutMode () const |
bool | majorityAddressErrorForFEUnit (const uint8_t internalFEUnitNum) const |
uint8_t | nFEUnitsEnabled () const |
uint8_t | packetCode (bool legacy=false, const uint8_t internalFEDChannelNum=0) const |
virtual void | print (std::ostream &os) const |
FEDReadoutMode | readoutMode () const |
uint16_t | sourceID () const |
TrackerSpecialHeader | trackerSpecialHeader () const |
virtual | ~FEDBufferBase () |
Protected Member Functions | |
FEDBufferBase (const uint8_t *fedBuffer, const size_t fedBufferSize, const bool allowUnrecognizedFormat, const bool fillChannelVector) | |
const uint8_t * | getPointerToByteAfterEndOfPayload () const |
const uint8_t * | getPointerToDataAfterTrackerSpecialHeader () const |
Protected Attributes | |
std::vector< FEDChannel > | channels_ |
Private Member Functions | |
void | init (const uint8_t *fedBuffer, const size_t fedBufferSize, const bool allowUnrecognizedFormat) |
Private Attributes | |
const size_t | bufferSize_ |
FEDDAQHeader | daqHeader_ |
FEDDAQTrailer | daqTrailer_ |
const uint8_t * | orderedBuffer_ |
const uint8_t * | originalBuffer_ |
TrackerSpecialHeader | specialHeader_ |
Definition at line 566 of file SiStripFEDBufferComponents.h.
sistrip::FEDBufferBase::FEDBufferBase | ( | const uint8_t * | fedBuffer, |
const size_t | fedBufferSize, | ||
const bool | allowUnrecognizedFormat = false |
||
) |
Definition at line 1274 of file SiStripFEDBufferComponents.cc.
References init().
|
virtual |
Definition at line 1351 of file SiStripFEDBufferComponents.cc.
References orderedBuffer_, and originalBuffer_.
|
protected |
Definition at line 1282 of file SiStripFEDBufferComponents.cc.
References channels_, sistrip::FEDCH_PER_FED, init(), and NULL.
|
inline |
Definition at line 1516 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::checkFEUnitAPVAddresses(), sistrip::FEDBuffer::checkSummary(), and print().
|
inline |
Definition at line 1441 of file SiStripFEDBufferComponents.h.
Referenced by init(), and print().
|
inline |
Definition at line 1391 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDSpyBuffer::findChannels(), and print().
|
inline |
Definition at line 1376 of file SiStripFEDBufferComponents.h.
References sistrip::calculateFEDBufferCRC().
|
inline |
Definition at line 1546 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum().
Referenced by sistrip::FEDRawChannelUnpacker::procRawModeUnpacker(), and SiStripClusterizerFromRaw::run().
|
inline |
Definition at line 1551 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum().
|
virtual |
Reimplemented in sistrip::FEDSpyBuffer.
Definition at line 1398 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FEUNIT, feEnabled(), feOverflow(), and majorityAddressErrorForFEUnit().
|
inline |
Definition at line 1541 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum().
|
inline |
Definition at line 1594 of file SiStripFEDBufferComponents.h.
|
inline |
Definition at line 1579 of file SiStripFEDBufferComponents.h.
References sistrip::BUFFER_FORMAT_INVALID.
Referenced by checkSummary().
|
inline |
Definition at line 1574 of file SiStripFEDBufferComponents.h.
Referenced by checkSummary(), sistrip::FEDBuffer::doChecks(), and sistrip::FEDBuffer::doCorruptBufferChecks().
|
inline |
Definition at line 1584 of file SiStripFEDBufferComponents.h.
References sistrip::HEADER_TYPE_INVALID.
Referenced by checkSummary().
|
inline |
Definition at line 1624 of file SiStripFEDBufferComponents.h.
Referenced by checkSummary().
bool sistrip::FEDBufferBase::checkMajorityAddresses | ( | ) | const |
Definition at line 1389 of file SiStripFEDBufferComponents.cc.
References feEnabled(), sistrip::FEUNITS_PER_FED, and majorityAddressErrorForFEUnit().
Referenced by checkSummary().
|
inline |
Definition at line 1619 of file SiStripFEDBufferComponents.h.
Referenced by checkSummary().
|
inline |
Definition at line 1599 of file SiStripFEDBufferComponents.h.
Referenced by checkSummary().
|
inline |
Definition at line 1604 of file SiStripFEDBufferComponents.h.
Referenced by checkSummary().
|
inline |
Definition at line 1609 of file SiStripFEDBufferComponents.h.
Referenced by checkSummary().
|
inline |
Definition at line 1614 of file SiStripFEDBufferComponents.h.
Referenced by checkSummary().
|
inline |
Definition at line 1589 of file SiStripFEDBufferComponents.h.
References sistrip::READOUT_MODE_INVALID.
Referenced by checkSummary().
bool sistrip::FEDBufferBase::checkSourceIDs | ( | ) | const |
Definition at line 1383 of file SiStripFEDBufferComponents.cc.
References daqSourceID(), sistrip::FED_ID_MAX, and sistrip::FED_ID_MIN.
Referenced by checkSummary().
|
virtual |
Reimplemented in sistrip::FEDBuffer.
Definition at line 1409 of file SiStripFEDBufferComponents.cc.
References checkBufferFormat(), checkCRC(), checkHeaderType(), checkLengthFromTrailer(), checkMajorityAddresses(), checkNoExtraHeadersOrTrailers(), checkNoFEOverflows(), checkNoSlinkCRCError(), checkNoSLinkTransmissionError(), checkNoUnexpectedSourceID(), checkReadoutMode(), checkSourceIDs(), feEnabled(), feOverflow(), sistrip::FEUNITS_PER_FED, majorityAddressErrorForFEUnit(), and heppy_report::summary.
Referenced by sistrip::FEDBuffer::checkSummary(), and sistrip::operator<<().
|
inline |
Definition at line 1411 of file SiStripFEDBufferComponents.h.
Referenced by print().
|
inline |
Definition at line 1431 of file SiStripFEDBufferComponents.h.
|
inline |
Definition at line 1421 of file SiStripFEDBufferComponents.h.
|
inline |
Definition at line 1426 of file SiStripFEDBufferComponents.h.
Referenced by print().
|
inline |
Definition at line 1401 of file SiStripFEDBufferComponents.h.
Referenced by print(), and sistrip::RawToDigiUnpacker::updateEventSummary().
|
inline |
Definition at line 1381 of file SiStripFEDBufferComponents.h.
|
inline |
Definition at line 1406 of file SiStripFEDBufferComponents.h.
Referenced by print().
|
inline |
Definition at line 1416 of file SiStripFEDBufferComponents.h.
Referenced by checkSourceIDs(), and print().
|
inline |
Definition at line 1386 of file SiStripFEDBufferComponents.h.
|
inline |
Definition at line 1436 of file SiStripFEDBufferComponents.h.
Referenced by print().
|
virtual |
Definition at line 1404 of file SiStripFEDBufferComponents.cc.
References doDAQHeaderAndTrailerChecks(), and doTrackerSpecialHeaderChecks().
Referenced by sistrip::FEDBuffer::doChecks(), and sistrip::FEDBuffer::setLegacyMode().
|
inline |
Definition at line 1565 of file SiStripFEDBufferComponents.h.
Referenced by doChecks().
|
inline |
Definition at line 1556 of file SiStripFEDBufferComponents.h.
Referenced by doChecks().
|
inline |
Definition at line 1366 of file SiStripFEDBufferComponents.h.
References sistrip::printHex().
Referenced by SiStripFEDDumpPlugin::analyze(), and sistrip::FEDSpyBuffer::delayChipGood().
|
inline |
Definition at line 1371 of file SiStripFEDBufferComponents.h.
References sistrip::printHex().
|
inline |
Definition at line 1536 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::FEDBuffer(), and print().
|
inline |
Definition at line 1526 of file SiStripFEDBufferComponents.h.
Referenced by channelGood(), sistrip::FEDBuffer::checkChannelLengthsMatchBufferLength(), checkMajorityAddresses(), checkSummary(), sistrip::FEDBuffer::findChannels(), and nFEUnitsEnabled().
|
inline |
Definition at line 1531 of file SiStripFEDBufferComponents.h.
Referenced by channelGood(), checkSummary(), sistrip::FEDBuffer::feGood(), and sistrip::FEDBuffer::feGoodWithoutAPVEmulatorCheck().
|
inlineprotected |
Definition at line 1634 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::FEDBuffer().
|
inlineprotected |
Definition at line 1629 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::FEDBuffer(), and sistrip::FEDSpyBuffer::globalRunNumber().
|
inline |
Definition at line 1446 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::checkSummary(), sistrip::FEDBuffer::FEDBuffer(), sistrip::FEDBuffer::print(), print(), and sistrip::RawToDigiUnpacker::updateEventSummary().
|
private |
Definition at line 1290 of file SiStripFEDBufferComponents.cc.
References sistrip::BUFFER_FORMAT_INVALID, sistrip::BUFFER_FORMAT_NEW, sistrip::BUFFER_FORMAT_OLD_VME, sistrip::TrackerSpecialHeader::bufferFormat(), bufferFormat(), bufferSize_, daqHeader_, daqTrailer_, Exception, mps_fire::i, orderedBuffer_, originalBuffer_, and specialHeader_.
Referenced by FEDBufferBase().
|
inline |
Definition at line 1451 of file SiStripFEDBufferComponents.h.
|
inline |
Definition at line 1521 of file SiStripFEDBufferComponents.h.
Referenced by channelGood(), checkMajorityAddresses(), checkSummary(), and sistrip::FEDBuffer::feGood().
uint8_t sistrip::FEDBufferBase::nFEUnitsEnabled | ( | ) | const |
Definition at line 1374 of file SiStripFEDBufferComponents.cc.
References feEnabled(), sistrip::FEUNITS_PER_FED, and mps_fire::result.
Referenced by print().
|
inline |
Definition at line 1461 of file SiStripFEDBufferComponents.h.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, sistrip::PACKET_CODE_PROC_RAW, sistrip::PACKET_CODE_SCOPE, sistrip::PACKET_CODE_VIRGIN_RAW, sistrip::PACKET_CODE_ZERO_SUPPRESSED, sistrip::PACKET_CODE_ZERO_SUPPRESSED_LITE10, sistrip::PACKET_CODE_ZERO_SUPPRESSED_LITE8_BOTBOT, sistrip::PACKET_CODE_ZERO_SUPPRESSED_LITE8_TOPBOT, sistrip::READOUT_MODE_INVALID, sistrip::READOUT_MODE_LEGACY_INVALID, sistrip::READOUT_MODE_LEGACY_PREMIX_RAW, sistrip::READOUT_MODE_LEGACY_PROC_RAW_FAKE, sistrip::READOUT_MODE_LEGACY_PROC_RAW_REAL, sistrip::READOUT_MODE_LEGACY_SCOPE, sistrip::READOUT_MODE_LEGACY_SPY, sistrip::READOUT_MODE_LEGACY_VIRGIN_RAW_FAKE, sistrip::READOUT_MODE_LEGACY_VIRGIN_RAW_REAL, sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_FAKE, sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_LITE_FAKE, sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_LITE_REAL, sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_REAL, sistrip::READOUT_MODE_PREMIX_RAW, sistrip::READOUT_MODE_PROC_RAW, sistrip::READOUT_MODE_SCOPE, sistrip::READOUT_MODE_SPY, sistrip::READOUT_MODE_VIRGIN_RAW, sistrip::READOUT_MODE_ZERO_SUPPRESSED, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT, and sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT_CMOVERRIDE.
Referenced by sistrip::FEDBuffer::checkChannelPacketCodes(), sistrip::FEDBuffer::checkSummary(), sistrip::FEDChannel::cmMedian(), and sistrip::FEDBuffer::getCorrectPacketCode().
|
virtual |
Reimplemented in sistrip::FEDSpyBuffer, and sistrip::FEDBuffer.
Definition at line 1357 of file SiStripFEDBufferComponents.cc.
References apveAddress(), bufferFormat(), bufferSize(), daqBXID(), daqEventLengthInBytes(), daqEventType(), daqLvl1ID(), daqSourceID(), daqTTSState(), fedStatusRegister(), headerType(), nFEUnitsEnabled(), sistrip::FEDStatusRegister::printFlags(), and readoutMode().
Referenced by sistrip::operator<<(), sistrip::FEDBuffer::print(), and sistrip::FEDSpyBuffer::print().
|
inline |
Definition at line 1456 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::channelGood(), sistrip::FEDBuffer::FEDBuffer(), sistrip::FEDSpyBuffer::FEDSpyBuffer(), sistrip::FEDBuffer::findChannels(), print(), and SiStripClusterizerFromRaw::run().
uint16_t sistrip::FEDBufferBase::sourceID | ( | ) | const |
|
inline |
Definition at line 1396 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::FEDBuffer().
|
private |
Definition at line 650 of file SiStripFEDBufferComponents.h.
Referenced by init().
|
protected |
Definition at line 645 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::calculateFEUnitLength(), sistrip::FEDBuffer::checkChannelLengthsMatchBufferLength(), sistrip::FEDBuffer::checkChannelPacketCodes(), sistrip::FEDBuffer::checkSummary(), sistrip::FEDBuffer::FEDBuffer(), FEDBufferBase(), sistrip::FEDSpyBuffer::findChannels(), and sistrip::FEDBuffer::findChannels().
|
private |
Definition at line 651 of file SiStripFEDBufferComponents.h.
Referenced by init().
|
private |
Definition at line 652 of file SiStripFEDBufferComponents.h.
Referenced by init().
|
private |
Definition at line 649 of file SiStripFEDBufferComponents.h.
Referenced by init(), and ~FEDBufferBase().
|
private |
Definition at line 648 of file SiStripFEDBufferComponents.h.
Referenced by init(), and ~FEDBufferBase().
|
private |
Definition at line 653 of file SiStripFEDBufferComponents.h.
Referenced by init().