#include <SiStripFEDBufferComponents.h>
Public Member Functions | |
bool | apvAddressError (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
bool | apvAddressError (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const |
bool | apvError (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
bool | apvError (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const |
FEDBackendStatusRegister | beStatusRegister () const |
bool | checkChannelStatusBits (const uint8_t internalFEDChannelNum) const override |
bool | checkStatusBits (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const override |
FEDFullDebugHeader * | clone () const override |
uint32_t | daqRegister () const |
uint32_t | daqRegister2 () const |
const uint8_t * | data () const override |
FEDFullDebugHeader (const uint8_t *headerBuffer) | |
FEDFullDebugHeader (const std::vector< uint16_t > &feUnitLengths=std::vector< uint16_t >(FEUNITS_PER_FED, 0), const std::vector< uint8_t > &feMajorityAddresses=std::vector< uint8_t >(FEUNITS_PER_FED, 0), const std::vector< FEDChannelStatus > &channelStatus=std::vector< FEDChannelStatus >(FEDCH_PER_FED, CHANNEL_STATUS_NO_PROBLEMS), const FEDBackendStatusRegister beStatusRegister=FEDBackendStatusRegister(), const uint32_t daqRegister=0, const uint32_t daqRegister2=0) | |
bool | fePresent (const uint8_t internalFEUnitNum) const |
uint16_t | feUnitLength (const uint8_t internalFEUnitNum) const |
uint8_t | feUnitMajorityAddress (const uint8_t internalFEUnitNum) const |
uint8_t * | feWord (const uint8_t internalFEUnitNum) |
const uint8_t * | feWord (const uint8_t internalFEUnitNum) const |
FEDChannelStatus | getChannelStatus (const uint8_t internalFEDChannelNum) const |
FEDChannelStatus | getChannelStatus (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
size_t | lengthInBytes () const override |
bool | outOfSync (const uint8_t internalFEDChannelNum) const |
bool | outOfSync (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
void | print (std::ostream &os) const override |
void | set32BitReservedRegister (const uint8_t internalFEUnitNum, const uint32_t reservedRegister) override |
void | setBEStatusRegister (const FEDBackendStatusRegister beStatusRegister) override |
void | setChannelStatus (const uint8_t internalFEDChannelNum, const FEDChannelStatus status) override |
void | setDAQRegister (const uint32_t daqRegister) override |
void | setDAQRegister2 (const uint32_t daqRegister2) override |
void | setFEUnitLength (const uint8_t internalFEUnitNum, const uint16_t length) override |
void | setFEUnitMajorityAddress (const uint8_t internalFEUnitNum, const uint8_t address) override |
bool | unlocked (const uint8_t internalFEDChannelNum) const |
bool | unlocked (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
~FEDFullDebugHeader () override | |
Public Member Functions inherited from sistrip::FEDFEHeader | |
bool | checkChannelStatusBits (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
bool | checkStatusBits (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const |
void | setChannelStatus (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const FEDChannelStatus status) |
virtual | ~FEDFEHeader () |
Static Public Member Functions | |
static uint32_t | get32BitWordFrom (const uint8_t *startOfWord) |
Static Public Member Functions inherited from sistrip::FEDFEHeader | |
static std::unique_ptr< FEDFEHeader > | newFEFakeHeader (const FEDHeaderType headerType) |
static std::unique_ptr< FEDFEHeader > | newFEHeader (const FEDHeaderType headerType, const uint8_t *headerBuffer) |
static std::unique_ptr< FEDFEHeader > | newFEHeader (const FEDHeaderType headerType) |
Private Member Functions | |
bool | apvAddressErrorFromBit (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
bool | apvErrorFromBit (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
bool | getBit (const uint8_t internalFEDChannelNum, const uint8_t bit) const |
bool | outOfSyncFromBit (const uint8_t internalFEDChannelNum) const |
void | setAPVAddressError (const uint8_t internalFEDChannelNum, const uint8_t apvNum, const bool value) |
void | setAPVError (const uint8_t internalFEDChannelNum, const uint8_t apvNum, const bool value) |
void | setBit (const uint8_t internalFEDChannelNum, const uint8_t bit, const bool value) |
void | setOutOfSync (const uint8_t internalFEDChannelNum, const bool value) |
void | setUnlocked (const uint8_t internalFEDChannelNum, const bool value) |
bool | unlockedFromBit (const uint8_t internalFEDChannelNum) const |
Static Private Member Functions | |
static void | set32BitWordAt (uint8_t *startOfWord, const uint32_t value) |
Private Attributes | |
uint8_t | header_ [FULL_DEBUG_HEADER_SIZE_IN_BYTES] |
Static Private Attributes | |
static const size_t | FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS = FEUNITS_PER_FED * 2 |
static const size_t | FULL_DEBUG_HEADER_SIZE_IN_BYTES = FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS * 8 |
Definition at line 535 of file SiStripFEDBufferComponents.h.
|
inlineexplicit |
Definition at line 1198 of file SiStripFEDBufferComponents.h.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES, and header_.
Referenced by clone().
|
override |
Definition at line 1121 of file SiStripFEDBufferComponents.cc.
sistrip::FEDFullDebugHeader::FEDFullDebugHeader | ( | const std::vector< uint16_t > & | feUnitLengths = std::vector<uint16_t>(FEUNITS_PER_FED, 0) , |
const std::vector< uint8_t > & | feMajorityAddresses = std::vector<uint8_t>(FEUNITS_PER_FED, 0) , |
||
const std::vector< FEDChannelStatus > & | channelStatus = std::vector<FEDChannelStatus>(FEDCH_PER_FED, CHANNEL_STATUS_NO_PROBLEMS) , |
||
const FEDBackendStatusRegister | beStatusRegister = FEDBackendStatusRegister() , |
||
const uint32_t | daqRegister = 0 , |
||
const uint32_t | daqRegister2 = 0 |
||
) |
Definition at line 1187 of file SiStripFEDBufferComponents.cc.
References beStatusRegister(), daqRegister(), daqRegister2(), sistrip::FEDCH_PER_FED, sistrip::FEUNITS_PER_FED, FULL_DEBUG_HEADER_SIZE_IN_BYTES, header_, setBEStatusRegister(), setChannelStatus(), setDAQRegister(), setDAQRegister2(), setFEUnitLength(), and setFEUnitMajorityAddress().
|
inline |
Definition at line 1251 of file SiStripFEDBufferComponents.h.
References apvAddressErrorFromBit(), sistrip::internalFEDChannelNum(), outOfSyncFromBit(), and unlockedFromBit().
Referenced by apvAddressError(), and checkStatusBits().
|
inline |
Definition at line 1256 of file SiStripFEDBufferComponents.h.
References apvAddressError(), and sistrip::internalFEDChannelNum().
|
inlineprivate |
Definition at line 1285 of file SiStripFEDBufferComponents.h.
References getBit(), and sistrip::internalFEDChannelNum().
Referenced by apvAddressError().
|
inline |
Definition at line 1240 of file SiStripFEDBufferComponents.h.
References apvErrorFromBit(), sistrip::internalFEDChannelNum(), outOfSyncFromBit(), and unlockedFromBit().
Referenced by apvError(), and checkStatusBits().
|
inline |
Definition at line 1245 of file SiStripFEDBufferComponents.h.
References apvError(), and sistrip::internalFEDChannelNum().
|
inlineprivate |
Definition at line 1275 of file SiStripFEDBufferComponents.h.
References getBit(), and sistrip::internalFEDChannelNum().
Referenced by apvError().
|
inline |
Definition at line 1206 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by FEDFullDebugHeader(), and setBEStatusRegister().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1134 of file SiStripFEDBufferComponents.cc.
References sistrip::CHANNEL_STATUS_NO_PROBLEMS, getChannelStatus(), and sistrip::internalFEDChannelNum().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1129 of file SiStripFEDBufferComponents.cc.
References apvAddressError(), apvError(), sistrip::internalFEDChannelNum(), outOfSyncFromBit(), and unlockedFromBit().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1127 of file SiStripFEDBufferComponents.cc.
References FEDFullDebugHeader().
|
inline |
Definition at line 1210 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by FEDFullDebugHeader(), and setDAQRegister().
|
inline |
Definition at line 1212 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by FEDFullDebugHeader(), and setDAQRegister2().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1185 of file SiStripFEDBufferComponents.cc.
References header_.
|
inline |
Definition at line 1218 of file SiStripFEDBufferComponents.h.
References feUnitLength().
Referenced by sistrip::FEDBuffer::FEDBuffer().
|
inline |
Definition at line 1214 of file SiStripFEDBufferComponents.h.
References feWord().
Referenced by sistrip::FEDBuffer::checkFEUnitLengths(), sistrip::FEDBuffer::checkSummary(), and fePresent().
|
inline |
Definition at line 1202 of file SiStripFEDBufferComponents.h.
References feWord().
Referenced by sistrip::FEDBuffer::checkFEUnitAPVAddresses(), and sistrip::FEDBuffer::checkSummary().
|
inline |
Definition at line 1309 of file SiStripFEDBufferComponents.h.
Referenced by beStatusRegister(), daqRegister(), daqRegister2(), feUnitLength(), feUnitMajorityAddress(), getBit(), getChannelStatus(), set32BitReservedRegister(), setBEStatusRegister(), setBit(), setDAQRegister(), setDAQRegister2(), setFEUnitLength(), and setFEUnitMajorityAddress().
|
inline |
Definition at line 1304 of file SiStripFEDBufferComponents.h.
References header_.
|
inlinestatic |
Definition at line 1296 of file SiStripFEDBufferComponents.h.
Referenced by beStatusRegister(), daqRegister(), and daqRegister2().
|
inlineprivate |
Definition at line 1290 of file SiStripFEDBufferComponents.h.
References sistrip::FEDCH_PER_FEUNIT, feWord(), sistrip::internalFEDChannelNum(), and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by apvAddressErrorFromBit(), apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
FEDChannelStatus sistrip::FEDFullDebugHeader::getChannelStatus | ( | const uint8_t | internalFEDChannelNum | ) | const |
Definition at line 1144 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FEUNIT, feWord(), and sistrip::internalFEDChannelNum().
Referenced by checkChannelStatusBits(), sistrip::FEDBuffer::checkSummary(), and getChannelStatus().
|
inline |
Definition at line 1262 of file SiStripFEDBufferComponents.h.
References getChannelStatus(), and sistrip::internalFEDChannelNum().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1123 of file SiStripFEDBufferComponents.cc.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES.
|
inline |
Definition at line 1231 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), outOfSyncFromBit(), and unlocked().
Referenced by outOfSync().
|
inline |
Definition at line 1235 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and outOfSync().
|
inlineprivate |
Definition at line 1271 of file SiStripFEDBufferComponents.h.
References getBit(), and sistrip::internalFEDChannelNum().
Referenced by apvAddressError(), apvError(), checkStatusBits(), and outOfSync().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1125 of file SiStripFEDBufferComponents.cc.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES, header_, and sistrip::printHex().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1230 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
|
inlinestaticprivate |
Definition at line 1300 of file SiStripFEDBufferComponents.h.
Referenced by set32BitReservedRegister(), setBEStatusRegister(), setDAQRegister(), and setDAQRegister2().
|
inlineprivate |
Definition at line 1321 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and setBit().
Referenced by setChannelStatus().
|
inlineprivate |
Definition at line 1327 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and setBit().
Referenced by setChannelStatus().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1219 of file SiStripFEDBufferComponents.cc.
References beStatusRegister(), feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
private |
Definition at line 1239 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FEUNIT, feWord(), sistrip::internalFEDChannelNum(), and gpuClustering::pixelStatus::mask.
Referenced by setAPVAddressError(), setAPVError(), setOutOfSync(), and setUnlocked().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1206 of file SiStripFEDBufferComponents.cc.
References sistrip::CHANNEL_STATUS_APV0_ADDRESS_GOOD, sistrip::CHANNEL_STATUS_APV0_NO_ERROR_BIT, sistrip::CHANNEL_STATUS_APV1_ADDRESS_GOOD, sistrip::CHANNEL_STATUS_APV1_NO_ERROR_BIT, sistrip::CHANNEL_STATUS_IN_SYNC, sistrip::CHANNEL_STATUS_LOCKED, sistrip::internalFEDChannelNum(), setAPVAddressError(), setAPVError(), setOutOfSync(), setUnlocked(), and mps_update::status.
Referenced by FEDFullDebugHeader().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1223 of file SiStripFEDBufferComponents.cc.
References daqRegister(), feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1225 of file SiStripFEDBufferComponents.cc.
References daqRegister2(), feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1234 of file SiStripFEDBufferComponents.cc.
References feWord().
Referenced by FEDFullDebugHeader().
|
overridevirtual |
Implements sistrip::FEDFEHeader.
Definition at line 1215 of file SiStripFEDBufferComponents.cc.
References feWord().
Referenced by FEDFullDebugHeader().
|
inlineprivate |
Definition at line 1317 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and setBit().
Referenced by setChannelStatus().
|
inlineprivate |
Definition at line 1313 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and setBit().
Referenced by setChannelStatus().
|
inline |
Definition at line 1222 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and unlockedFromBit().
Referenced by outOfSync(), and unlocked().
|
inline |
Definition at line 1226 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and unlocked().
|
inlineprivate |
Definition at line 1267 of file SiStripFEDBufferComponents.h.
References getBit(), and sistrip::internalFEDChannelNum().
Referenced by apvAddressError(), apvError(), checkStatusBits(), and unlocked().
|
staticprivate |
Definition at line 610 of file SiStripFEDBufferComponents.h.
|
staticprivate |
Definition at line 611 of file SiStripFEDBufferComponents.h.
Referenced by FEDFullDebugHeader(), lengthInBytes(), and print().
|
private |
Definition at line 612 of file SiStripFEDBufferComponents.h.
Referenced by data(), FEDFullDebugHeader(), feWord(), and print().