#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 |
bool | doChecks () const |
bool | doDAQHeaderAndTrailerChecks () const |
bool | doTrackerSpecialHeaderChecks () const |
void | dump (std::ostream &os) const |
void | dumpOriginalBuffer (std::ostream &os) const |
FEDBufferBase (const FEDRawData &fedBuffer) | |
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 FEDRawData &fedBuffer, const bool fillChannelVector) | |
const uint8_t * | getPointerToByteAfterEndOfPayload () const |
const uint8_t * | getPointerToDataAfterTrackerSpecialHeader () const |
Protected Attributes | |
std::vector< FEDChannel > | channels_ |
Private Member Functions | |
void | init () |
Private Attributes | |
const size_t | bufferSize_ |
FEDDAQHeader | daqHeader_ |
FEDDAQTrailer | daqTrailer_ |
const uint8_t * | orderedBuffer_ |
const uint8_t * | originalBuffer_ |
TrackerSpecialHeader | specialHeader_ |
Definition at line 643 of file SiStripFEDBufferComponents.h.
|
explicit |
constructor from a FEDRawData buffer
The sistrip::preconstructCheckFEDBufferBase() method should be used to check the validity of the fedBuffer before constructing a sistrip::FEDBufferBase.
Definition at line 1248 of file SiStripFEDBufferComponents.cc.
References init().
|
virtual |
Definition at line 1304 of file SiStripFEDBufferComponents.cc.
References orderedBuffer_, and originalBuffer_.
|
protected |
Definition at line 1255 of file SiStripFEDBufferComponents.cc.
References channels_, sistrip::FEDCH_PER_FED, and init().
|
inline |
Definition at line 1488 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::apveAddress(), and specialHeader_.
Referenced by checkAPVEAddressValid(), sistrip::FEDBuffer::checkFEUnitAPVAddresses(), sistrip::FEDBuffer::checkSummary(), and print().
|
inline |
Definition at line 1425 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::bufferFormat(), and specialHeader_.
Referenced by checkBufferFormat(), init(), and print().
|
inline |
Definition at line 1405 of file SiStripFEDBufferComponents.h.
References bufferSize_.
Referenced by checkLengthFromTrailer(), sistrip::FEDSpyBuffer::findChannels(), and print().
|
inline |
Definition at line 1399 of file SiStripFEDBufferComponents.h.
References bufferSize_, sistrip::calculateFEDBufferCRC(), and orderedBuffer_.
Referenced by checkCRC().
|
inline |
Definition at line 1508 of file SiStripFEDBufferComponents.h.
References channels_, and sistrip::internalFEDChannelNum().
Referenced by channel(), and packetCode().
|
inline |
Definition at line 1512 of file SiStripFEDBufferComponents.h.
References channel(), and sistrip::internalFEDChannelNum().
|
virtual |
Reimplemented in sistrip::FEDSpyBuffer.
Definition at line 1351 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FEUNIT, feEnabled(), feOverflow(), sistrip::internalFEDChannelNum(), and majorityAddressErrorForFEUnit().
Referenced by channelGood().
|
inline |
Definition at line 1504 of file SiStripFEDBufferComponents.h.
References channelGood(), and sistrip::internalFEDChannelNum().
|
inline |
Definition at line 1536 of file SiStripFEDBufferComponents.h.
References sistrip::APV_MAX_ADDRESS, and apveAddress().
|
inline |
Definition at line 1530 of file SiStripFEDBufferComponents.h.
References sistrip::BUFFER_FORMAT_INVALID, and bufferFormat().
Referenced by checkSummary(), and doTrackerSpecialHeaderChecks().
|
inline |
Definition at line 1528 of file SiStripFEDBufferComponents.h.
References calcCRC(), checkNoSlinkCRCError(), and daqCRC().
Referenced by checkSummary(), sistrip::FEDBuffer::doChecks(), and sistrip::FEDBuffer::doCorruptBufferChecks().
|
inline |
Definition at line 1532 of file SiStripFEDBufferComponents.h.
References sistrip::HEADER_TYPE_INVALID, and headerType().
Referenced by checkSummary(), and doTrackerSpecialHeaderChecks().
|
inline |
Definition at line 1550 of file SiStripFEDBufferComponents.h.
References bufferSize(), and daqEventLengthInBytes().
Referenced by checkSummary(), and doDAQHeaderAndTrailerChecks().
bool sistrip::FEDBufferBase::checkMajorityAddresses | ( | ) | const |
Definition at line 1341 of file SiStripFEDBufferComponents.cc.
References feEnabled(), sistrip::FEUNITS_PER_FED, and majorityAddressErrorForFEUnit().
Referenced by checkSummary().
|
inline |
Definition at line 1546 of file SiStripFEDBufferComponents.h.
References sistrip::FEDDAQHeader::boeNibble(), daqHeader_, daqTrailer_, and sistrip::FEDDAQTrailer::eoeNibble().
Referenced by checkSummary(), and doDAQHeaderAndTrailerChecks().
|
inline |
Definition at line 1538 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::feOverflowRegister(), and specialHeader_.
Referenced by checkSummary(), and doTrackerSpecialHeaderChecks().
|
inline |
Definition at line 1540 of file SiStripFEDBufferComponents.h.
References daqTrailer_, and sistrip::FEDDAQTrailer::slinkCRCError().
Referenced by checkCRC(), and checkSummary().
|
inline |
Definition at line 1542 of file SiStripFEDBufferComponents.h.
References daqTrailer_, and sistrip::FEDDAQTrailer::slinkTransmissionError().
Referenced by checkSummary(), and doDAQHeaderAndTrailerChecks().
|
inline |
Definition at line 1544 of file SiStripFEDBufferComponents.h.
References sistrip::FEDDAQTrailer::badSourceID(), and daqTrailer_.
Referenced by checkSummary(), and doDAQHeaderAndTrailerChecks().
|
inline |
Definition at line 1534 of file SiStripFEDBufferComponents.h.
References sistrip::READOUT_MODE_INVALID, and readoutMode().
Referenced by checkSummary(), and doTrackerSpecialHeaderChecks().
bool sistrip::FEDBufferBase::checkSourceIDs | ( | ) | const |
Definition at line 1337 of file SiStripFEDBufferComponents.cc.
References daqSourceID(), sistrip::FED_ID_MAX, and sistrip::FED_ID_MIN.
Referenced by checkSummary(), and doDAQHeaderAndTrailerChecks().
|
virtual |
Reimplemented in sistrip::FEDBuffer.
Definition at line 1356 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 edmLumisInFiles::summary.
Referenced by sistrip::FEDBuffer::checkSummary().
|
inline |
Definition at line 1413 of file SiStripFEDBufferComponents.h.
References sistrip::FEDDAQHeader::bxID(), and daqHeader_.
Referenced by print().
|
inline |
Definition at line 1421 of file SiStripFEDBufferComponents.h.
References sistrip::FEDDAQTrailer::crc(), and daqTrailer_.
Referenced by checkCRC().
|
inline |
Definition at line 1417 of file SiStripFEDBufferComponents.h.
References daqTrailer_, and sistrip::FEDDAQTrailer::eventLengthIn64BitWords().
|
inline |
Definition at line 1419 of file SiStripFEDBufferComponents.h.
References daqTrailer_, and sistrip::FEDDAQTrailer::eventLengthInBytes().
Referenced by checkLengthFromTrailer(), and print().
|
inline |
Definition at line 1409 of file SiStripFEDBufferComponents.h.
References daqHeader_, and sistrip::FEDDAQHeader::eventType().
Referenced by print(), and sistrip::RawToDigiUnpacker::updateEventSummary().
|
inline |
Definition at line 1401 of file SiStripFEDBufferComponents.h.
References daqHeader_.
Referenced by sistrip::RawToDigiUnpacker::updateEventSummary().
|
inline |
Definition at line 1411 of file SiStripFEDBufferComponents.h.
References daqHeader_, and sistrip::FEDDAQHeader::l1ID().
Referenced by print().
|
inline |
Definition at line 1415 of file SiStripFEDBufferComponents.h.
References daqHeader_, and sistrip::FEDDAQHeader::sourceID().
Referenced by checkSourceIDs(), and print().
|
inline |
Definition at line 1403 of file SiStripFEDBufferComponents.h.
References daqTrailer_.
|
inline |
Definition at line 1423 of file SiStripFEDBufferComponents.h.
References daqTrailer_, and sistrip::FEDDAQTrailer::ttsBits().
Referenced by print().
|
inline |
Definition at line 1433 of file SiStripFEDBufferComponents.h.
References doDAQHeaderAndTrailerChecks(), and doTrackerSpecialHeaderChecks().
Referenced by sistrip::FEDBuffer::doChecks().
|
inline |
Definition at line 1523 of file SiStripFEDBufferComponents.h.
References checkLengthFromTrailer(), checkNoExtraHeadersOrTrailers(), checkNoSLinkTransmissionError(), checkNoUnexpectedSourceID(), and checkSourceIDs().
Referenced by doChecks().
|
inline |
Definition at line 1517 of file SiStripFEDBufferComponents.h.
References checkBufferFormat(), checkHeaderType(), checkNoFEOverflows(), and checkReadoutMode().
Referenced by doChecks().
|
inline |
Definition at line 1395 of file SiStripFEDBufferComponents.h.
References bufferSize_, orderedBuffer_, l1tGTMenu_BTagSeeds_cff::os, and sistrip::printHex().
Referenced by sistrip::FEDSpyBuffer::delayChipGood().
|
inline |
Definition at line 1397 of file SiStripFEDBufferComponents.h.
References bufferSize_, originalBuffer_, l1tGTMenu_BTagSeeds_cff::os, and sistrip::printHex().
|
inline |
Definition at line 1502 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::fedStatusRegister(), and specialHeader_.
Referenced by sistrip::FEDBuffer::FEDBuffer(), and print().
|
inline |
Definition at line 1494 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::feEnabled(), and specialHeader_.
Referenced by channelGood(), sistrip::FEDBuffer::checkChannelLengthsMatchBufferLength(), checkMajorityAddresses(), checkSummary(), sistrip::FEDBuffer::findChannels(), and nFEUnitsEnabled().
|
inline |
Definition at line 1498 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::feOverflow(), and specialHeader_.
Referenced by channelGood(), checkSummary(), sistrip::FEDBuffer::feGood(), and sistrip::FEDBuffer::feGoodWithoutAPVEmulatorCheck().
|
inlineprotected |
Definition at line 1554 of file SiStripFEDBufferComponents.h.
References bufferSize_, and orderedBuffer_.
Referenced by sistrip::FEDBuffer::FEDBuffer().
|
inlineprotected |
Definition at line 1552 of file SiStripFEDBufferComponents.h.
References orderedBuffer_.
Referenced by sistrip::FEDBuffer::FEDBuffer(), and sistrip::FEDSpyBuffer::globalRunNumber().
|
inline |
Definition at line 1427 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::headerType(), and specialHeader_.
Referenced by checkHeaderType(), sistrip::FEDBuffer::checkSummary(), sistrip::FEDBuffer::FEDBuffer(), sistrip::FEDBuffer::print(), print(), and sistrip::RawToDigiUnpacker::updateEventSummary().
|
private |
Definition at line 1262 of file SiStripFEDBufferComponents.cc.
References sistrip::BUFFER_FORMAT_NEW, sistrip::BUFFER_FORMAT_OLD_VME, sistrip::TrackerSpecialHeader::bufferFormat(), bufferFormat(), bufferSize_, daqHeader_, daqTrailer_, mps_fire::i, orderedBuffer_, originalBuffer_, and specialHeader_.
Referenced by FEDBufferBase().
|
inline |
Definition at line 1429 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::legacyReadoutMode(), and specialHeader_.
Referenced by packetCode().
|
inline |
Definition at line 1490 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::apveAddress(), sistrip::TrackerSpecialHeader::majorityAddressErrorForFEUnit(), and specialHeader_.
Referenced by channelGood(), checkMajorityAddresses(), checkSummary(), and sistrip::FEDBuffer::feGood().
uint8_t sistrip::FEDBufferBase::nFEUnitsEnabled | ( | ) | const |
Definition at line 1328 of file SiStripFEDBufferComponents.cc.
References feEnabled(), sistrip::FEUNITS_PER_FED, and mps_fire::result.
Referenced by print().
|
inline |
Definition at line 1437 of file SiStripFEDBufferComponents.h.
References channel(), sistrip::internalFEDChannelNum(), legacyReadoutMode(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, sistrip::PACKET_CODE_PROC_RAW, sistrip::PACKET_CODE_SCOPE, sistrip::PACKET_CODE_VIRGIN_RAW, sistrip::PACKET_CODE_ZERO_SUPPRESSED, sistrip::FEDChannel::packetCode(), 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, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT_CMOVERRIDE, and readoutMode().
Referenced by sistrip::FEDBuffer::checkChannelPacketCodes(), sistrip::FEDBuffer::checkSummary(), and sistrip::FEDBuffer::getCorrectPacketCode().
|
virtual |
Reimplemented in sistrip::FEDBuffer, and sistrip::FEDSpyBuffer.
Definition at line 1310 of file SiStripFEDBufferComponents.cc.
References apveAddress(), bufferFormat(), bufferSize(), daqBXID(), daqEventLengthInBytes(), daqEventType(), daqLvl1ID(), daqSourceID(), daqTTSState(), fedStatusRegister(), headerType(), nFEUnitsEnabled(), l1tGTMenu_BTagSeeds_cff::os, sistrip::FEDStatusRegister::printFlags(), and readoutMode().
Referenced by sistrip::FEDSpyBuffer::print(), and sistrip::FEDBuffer::print().
|
inline |
Definition at line 1431 of file SiStripFEDBufferComponents.h.
References sistrip::TrackerSpecialHeader::readoutMode(), and specialHeader_.
Referenced by sistrip::FEDBuffer::channelGood(), checkReadoutMode(), sistrip::FEDBuffer::findChannels(), packetCode(), and print().
uint16_t sistrip::FEDBufferBase::sourceID | ( | ) | const |
|
inline |
Definition at line 1407 of file SiStripFEDBufferComponents.h.
References specialHeader_.
|
private |
Definition at line 736 of file SiStripFEDBufferComponents.h.
Referenced by bufferSize(), calcCRC(), dump(), dumpOriginalBuffer(), getPointerToByteAfterEndOfPayload(), and init().
|
protected |
Definition at line 730 of file SiStripFEDBufferComponents.h.
Referenced by sistrip::FEDBuffer::calculateFEUnitLength(), channel(), sistrip::FEDBuffer::checkChannelLengthsMatchBufferLength(), sistrip::FEDBuffer::checkChannelPacketCodes(), sistrip::FEDBuffer::checkSummary(), sistrip::FEDBuffer::FEDBuffer(), FEDBufferBase(), sistrip::FEDBuffer::findChannels(), and sistrip::FEDSpyBuffer::findChannels().
|
private |
Definition at line 737 of file SiStripFEDBufferComponents.h.
Referenced by checkNoExtraHeadersOrTrailers(), daqBXID(), daqEventType(), daqHeader(), daqLvl1ID(), daqSourceID(), and init().
|
private |
Definition at line 738 of file SiStripFEDBufferComponents.h.
Referenced by checkNoExtraHeadersOrTrailers(), checkNoSlinkCRCError(), checkNoSLinkTransmissionError(), checkNoUnexpectedSourceID(), daqCRC(), daqEventLengthIn64bitWords(), daqEventLengthInBytes(), daqTrailer(), daqTTSState(), and init().
|
private |
Definition at line 735 of file SiStripFEDBufferComponents.h.
Referenced by calcCRC(), dump(), getPointerToByteAfterEndOfPayload(), getPointerToDataAfterTrackerSpecialHeader(), init(), and ~FEDBufferBase().
|
private |
Definition at line 734 of file SiStripFEDBufferComponents.h.
Referenced by dumpOriginalBuffer(), init(), and ~FEDBufferBase().
|
private |
Definition at line 739 of file SiStripFEDBufferComponents.h.
Referenced by apveAddress(), bufferFormat(), checkNoFEOverflows(), fedStatusRegister(), feEnabled(), feOverflow(), headerType(), init(), legacyReadoutMode(), majorityAddressErrorForFEUnit(), readoutMode(), and trackerSpecialHeader().