#include <SiStripFEDBufferComponents.h>
Static Public Member Functions | |
static FEDBufferFormat | bufferFormat (const uint8_t *headerPointer) |
Private Types | |
enum | byteIndicies { FEDSTATUS = 0, FEOVERFLOW = 2, FEENABLE = 3, ADDRESSERROR = 4, APVEADDRESS = 5, BUFFERTYPE = 6, BUFFERFORMAT = 7 } |
Private Member Functions | |
void | setBufferFormatByte (const FEDBufferFormat newBufferFormat) |
void | setHeaderTypeNibble (const uint8_t value) |
void | setReadoutModeBits (const uint8_t value) |
Private Attributes | |
uint8_t | specialHeader_ [8] |
bool | wordSwapped_ |
Definition at line 315 of file SiStripFEDBufferComponents.h.
|
private |
Enumerator | |
---|---|
FEDSTATUS | |
FEOVERFLOW | |
FEENABLE | |
ADDRESSERROR | |
APVEADDRESS | |
BUFFERTYPE | |
BUFFERFORMAT |
Definition at line 379 of file SiStripFEDBufferComponents.h.
|
inline |
Definition at line 834 of file SiStripFEDBufferComponents.h.
|
explicit |
Definition at line 746 of file SiStripFEDBufferComponents.cc.
References sistrip::BUFFER_FORMAT_CODE_NEW, sistrip::BUFFER_FORMAT_CODE_OLD, BUFFERFORMAT, specialHeader_, and wordSwapped_.
sistrip::TrackerSpecialHeader::TrackerSpecialHeader | ( | const FEDBufferFormat | bufferFormat, |
const FEDReadoutMode | readoutMode, | ||
const FEDHeaderType | headerType, | ||
const uint8_t | address = 0x00 , |
||
const uint8_t | addressErrorRegister = 0x00 , |
||
const uint8_t | feEnableRegister = 0xFF , |
||
const uint8_t | feOverflowRegister = 0x00 , |
||
const FEDStatusRegister | fedStatusRegister = FEDStatusRegister() |
||
) |
Definition at line 888 of file SiStripFEDBufferComponents.cc.
References sistrip::BUFFER_FORMAT_OLD_VME, bufferFormat(), fedStatusRegister(), feEnableRegister(), feOverflowRegister(), headerType(), readoutMode(), setAPVEAddress(), setAPVEAddressErrorRegister(), setBufferFormatByte(), setFEDStatusRegister(), setFEEnableRegister(), setFEOverflowRegister(), setHeaderType(), setReadoutMode(), specialHeader_, and wordSwapped_.
|
inline |
Definition at line 887 of file SiStripFEDBufferComponents.h.
References ADDRESSERROR, and specialHeader_.
Referenced by sistrip::DigiToRaw::createFedBuffers_(), majorityAddressErrorForFEUnit(), and setAPVAddressErrorForFEUnit().
|
inline |
Definition at line 885 of file SiStripFEDBufferComponents.h.
References APVEADDRESS, and specialHeader_.
Referenced by sistrip::FEDBufferBase::apveAddress(), sistrip::DigiToRaw::createFedBuffers_(), and sistrip::FEDBufferBase::majorityAddressErrorForFEUnit().
FEDBufferFormat sistrip::TrackerSpecialHeader::bufferFormat | ( | ) | const |
Definition at line 763 of file SiStripFEDBufferComponents.cc.
References sistrip::BUFFER_FORMAT_CODE_NEW, sistrip::BUFFER_FORMAT_CODE_OLD, sistrip::BUFFER_FORMAT_INVALID, sistrip::BUFFER_FORMAT_NEW, sistrip::BUFFER_FORMAT_OLD_SLINK, sistrip::BUFFER_FORMAT_OLD_VME, bufferFormatByte(), and wordSwapped_.
Referenced by sistrip::FEDBufferBase::bufferFormat(), sistrip::DigiToRaw::createFedBuffers_(), sistrip::FEDBufferGenerator::getBufferFormat(), sistrip::FEDBufferBase::init(), sistrip::preconstructCheckFEDBufferBase(), setBufferFormat(), and TrackerSpecialHeader().
|
inlinestatic |
Definition at line 362 of file SiStripFEDBufferComponents.h.
References sistrip::BUFFER_FORMAT_CODE_NEW, sistrip::BUFFER_FORMAT_CODE_OLD, sistrip::BUFFER_FORMAT_INVALID, sistrip::BUFFER_FORMAT_NEW, sistrip::BUFFER_FORMAT_OLD_SLINK, sistrip::BUFFER_FORMAT_OLD_VME, and BUFFERFORMAT.
|
inline |
Definition at line 836 of file SiStripFEDBufferComponents.h.
References BUFFERFORMAT, and specialHeader_.
Referenced by bufferFormat().
|
inline |
Definition at line 917 of file SiStripFEDBufferComponents.h.
References specialHeader_.
Referenced by sistrip::FEDBufferGenerator::fillBuffer().
|
inline |
Definition at line 911 of file SiStripFEDBufferComponents.h.
References fedStatusRegisterWord().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), sistrip::FEDBufferBase::fedStatusRegister(), setFEDStatusRegister(), and TrackerSpecialHeader().
|
inline |
Definition at line 905 of file SiStripFEDBufferComponents.h.
References FEDSTATUS, and specialHeader_.
Referenced by fedStatusRegister().
|
inline |
Definition at line 895 of file SiStripFEDBufferComponents.h.
References feEnableRegister().
Referenced by sistrip::FEDBufferBase::feEnabled().
|
inline |
Definition at line 893 of file SiStripFEDBufferComponents.h.
References FEENABLE, and specialHeader_.
Referenced by sistrip::DigiToRaw::createFedBuffers_(), feEnabled(), setFEEnableForFEUnit(), setFEEnableRegister(), and TrackerSpecialHeader().
|
inline |
Definition at line 901 of file SiStripFEDBufferComponents.h.
References feOverflowRegister().
Referenced by sistrip::FEDBufferBase::feOverflow().
|
inline |
Definition at line 899 of file SiStripFEDBufferComponents.h.
References FEOVERFLOW, and specialHeader_.
Referenced by sistrip::FEDBufferBase::checkNoFEOverflows(), sistrip::DigiToRaw::createFedBuffers_(), feOverflow(), setFEOverflowForFEUnit(), setFEOverflowRegister(), and TrackerSpecialHeader().
|
inline |
Definition at line 840 of file SiStripFEDBufferComponents.h.
References sistrip::HEADER_TYPE_APV_ERROR, sistrip::HEADER_TYPE_FULL_DEBUG, sistrip::HEADER_TYPE_INVALID, sistrip::HEADER_TYPE_NONE, and headerTypeNibble().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), sistrip::FEDBufferGenerator::getHeaderType(), sistrip::FEDBufferBase::headerType(), setHeaderType(), and TrackerSpecialHeader().
|
inline |
Definition at line 838 of file SiStripFEDBufferComponents.h.
References BUFFERTYPE, and specialHeader_.
Referenced by headerType().
FEDLegacyReadoutMode sistrip::TrackerSpecialHeader::legacyReadoutMode | ( | ) | const |
Definition at line 775 of file SiStripFEDBufferComponents.cc.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, sistrip::READOUT_MODE_LEGACY_INVALID, sistrip::READOUT_MODE_LEGACY_PROC_RAW_FAKE, sistrip::READOUT_MODE_LEGACY_PROC_RAW_REAL, 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, and trackerEventTypeNibble().
Referenced by sistrip::FEDBufferBase::legacyReadoutMode().
|
inline |
Definition at line 889 of file SiStripFEDBufferComponents.h.
References apvAddressErrorRegister(), sistrip::READOUT_MODE_SCOPE, and readoutMode().
Referenced by sistrip::FEDBufferBase::majorityAddressErrorForFEUnit().
|
inline |
Definition at line 915 of file SiStripFEDBufferComponents.h.
References sistrip::printHex(), and specialHeader_.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 854 of file SiStripFEDBufferComponents.h.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, sistrip::READOUT_MODE_INVALID, 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_FAKE, 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 trackerEventTypeNibble().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), sistrip::FEDBufferGenerator::getReadoutMode(), majorityAddressErrorForFEUnit(), sistrip::FEDBufferBase::readoutMode(), setReadoutMode(), and TrackerSpecialHeader().
TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setAPVAddressErrorForFEUnit | ( | const uint8_t | internalFEUnitNum, |
const bool | error | ||
) |
Definition at line 864 of file SiStripFEDBufferComponents.cc.
References apvAddressErrorRegister(), relativeConstraints::error, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, mps_fire::result, and setAPVEAddressErrorRegister().
|
inline |
Definition at line 929 of file SiStripFEDBufferComponents.h.
References APVEADDRESS, and specialHeader_.
Referenced by TrackerSpecialHeader().
|
inline |
Definition at line 934 of file SiStripFEDBufferComponents.h.
References ADDRESSERROR, and specialHeader_.
Referenced by setAPVAddressErrorForFEUnit(), and TrackerSpecialHeader().
TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setBufferFormat | ( | const FEDBufferFormat | newBufferFormat | ) |
Definition at line 793 of file SiStripFEDBufferComponents.cc.
References sistrip::BUFFER_FORMAT_OLD_VME, bufferFormat(), setBufferFormatByte(), and wordSwapped_.
Referenced by sistrip::FEDBufferGenerator::setBufferFormat().
|
private |
Definition at line 804 of file SiStripFEDBufferComponents.cc.
References sistrip::BUFFER_FORMAT_CODE_NEW, sistrip::BUFFER_FORMAT_CODE_OLD, sistrip::BUFFER_FORMAT_NEW, sistrip::BUFFER_FORMAT_OLD_SLINK, sistrip::BUFFER_FORMAT_OLD_VME, BUFFERFORMAT, Exception, sistrip::printHex(), specialHeader_, and contentValuesCheck::ss.
Referenced by setBufferFormat(), and TrackerSpecialHeader().
|
inline |
Definition at line 949 of file SiStripFEDBufferComponents.h.
References FEDSTATUS, fedStatusRegister(), and specialHeader_.
Referenced by TrackerSpecialHeader().
TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setFEEnableForFEUnit | ( | const uint8_t | internalFEUnitNum, |
const bool | enabled | ||
) |
Definition at line 872 of file SiStripFEDBufferComponents.cc.
References cms::soa::RestrictQualify::enabled, feEnableRegister(), ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, mps_fire::result, and setFEEnableRegister().
Referenced by sistrip::FEDBufferGenerator::generateBuffer().
|
inline |
Definition at line 939 of file SiStripFEDBufferComponents.h.
References FEENABLE, feEnableRegister(), and specialHeader_.
Referenced by setFEEnableForFEUnit(), setFEOverflowForFEUnit(), and TrackerSpecialHeader().
TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setFEOverflowForFEUnit | ( | const uint8_t | internalFEUnitNum, |
const bool | overflow | ||
) |
Definition at line 880 of file SiStripFEDBufferComponents.cc.
References feOverflowRegister(), ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, mps_fire::result, and setFEEnableRegister().
|
inline |
Definition at line 944 of file SiStripFEDBufferComponents.h.
References FEOVERFLOW, feOverflowRegister(), and specialHeader_.
Referenced by TrackerSpecialHeader().
TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setHeaderType | ( | const FEDHeaderType | headerType | ) |
Definition at line 821 of file SiStripFEDBufferComponents.cc.
References Exception, sistrip::HEADER_TYPE_APV_ERROR, sistrip::HEADER_TYPE_FULL_DEBUG, sistrip::HEADER_TYPE_NONE, headerType(), sistrip::printHex(), setHeaderTypeNibble(), and contentValuesCheck::ss.
Referenced by sistrip::FEDBufferGenerator::setHeaderType(), and TrackerSpecialHeader().
|
inlineprivate |
Definition at line 921 of file SiStripFEDBufferComponents.h.
References BUFFERTYPE, and specialHeader_.
Referenced by setHeaderType().
TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setReadoutMode | ( | const FEDReadoutMode | readoutMode | ) |
Definition at line 836 of file SiStripFEDBufferComponents.cc.
References Exception, sistrip::printHex(), 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_FAKE, 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, readoutMode(), setReadoutModeBits(), and contentValuesCheck::ss.
Referenced by sistrip::FEDBufferGenerator::setReadoutMode(), and TrackerSpecialHeader().
|
inlineprivate |
Definition at line 925 of file SiStripFEDBufferComponents.h.
References BUFFERTYPE, and specialHeader_.
Referenced by setReadoutMode().
|
inline |
Definition at line 852 of file SiStripFEDBufferComponents.h.
References BUFFERTYPE, and specialHeader_.
Referenced by legacyReadoutMode(), and readoutMode().
|
inline |
Definition at line 919 of file SiStripFEDBufferComponents.h.
References wordSwapped_.
Referenced by sistrip::FEDBufferGenerator::fillBuffer().
|
private |
Definition at line 389 of file SiStripFEDBufferComponents.h.
Referenced by apvAddressErrorRegister(), apveAddress(), bufferFormatByte(), data(), fedStatusRegisterWord(), feEnableRegister(), feOverflowRegister(), headerTypeNibble(), print(), setAPVEAddress(), setAPVEAddressErrorRegister(), setBufferFormatByte(), setFEDStatusRegister(), setFEEnableRegister(), setFEOverflowRegister(), setHeaderTypeNibble(), setReadoutModeBits(), trackerEventTypeNibble(), and TrackerSpecialHeader().
|
private |
Definition at line 391 of file SiStripFEDBufferComponents.h.
Referenced by bufferFormat(), setBufferFormat(), TrackerSpecialHeader(), and wasSwapped().