#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 |
virtual bool | checkChannelStatusBits (const uint8_t internalFEDChannelNum) const |
virtual bool | checkStatusBits (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const |
virtual FEDFullDebugHeader * | clone () const |
uint32_t | daqRegister () const |
uint32_t | daqRegister2 () const |
virtual const uint8_t * | data () const |
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 |
const uint8_t * | feWord (const uint8_t internalFEUnitNum) const |
uint8_t * | feWord (const uint8_t internalFEUnitNum) |
FEDChannelStatus | getChannelStatus (const uint8_t internalFEDChannelNum) const |
FEDChannelStatus | getChannelStatus (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
virtual size_t | lengthInBytes () const |
bool | outOfSync (const uint8_t internalFEDChannelNum) const |
bool | outOfSync (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
virtual void | print (std::ostream &os) const |
virtual void | set32BitReservedRegister (const uint8_t internalFEUnitNum, const uint32_t reservedRegister) |
virtual void | setBEStatusRegister (const FEDBackendStatusRegister beStatusRegister) |
virtual void | setChannelStatus (const uint8_t internalFEDChannelNum, const FEDChannelStatus status) |
virtual void | setDAQRegister (const uint32_t daqRegister) |
virtual void | setDAQRegister2 (const uint32_t daqRegister2) |
virtual void | setFEUnitLength (const uint8_t internalFEUnitNum, const uint16_t length) |
virtual void | setFEUnitMajorityAddress (const uint8_t internalFEUnitNum, const uint8_t address) |
bool | unlocked (const uint8_t internalFEDChannelNum) const |
bool | unlocked (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const |
virtual | ~FEDFullDebugHeader () |
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::auto_ptr< FEDFEHeader > | newFEFakeHeader (const FEDHeaderType headerType) |
static std::auto_ptr< FEDFEHeader > | newFEHeader (const FEDHeaderType headerType, const uint8_t *headerBuffer) |
static std::auto_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 469 of file SiStripFEDBufferComponents.h.
|
inlineexplicit |
Definition at line 1076 of file SiStripFEDBufferComponents.h.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES, and header_.
Referenced by clone().
|
virtual |
Definition at line 1117 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 1200 of file SiStripFEDBufferComponents.cc.
References 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 1143 of file SiStripFEDBufferComponents.h.
References apvAddressErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
Referenced by apvAddressError(), and checkStatusBits().
|
inline |
Definition at line 1150 of file SiStripFEDBufferComponents.h.
References apvAddressError(), and sistrip::internalFEDChannelNum().
|
inlineprivate |
Definition at line 1181 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError().
|
inline |
Definition at line 1131 of file SiStripFEDBufferComponents.h.
References apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
Referenced by apvError(), and checkStatusBits().
|
inline |
Definition at line 1138 of file SiStripFEDBufferComponents.h.
References apvError(), and sistrip::internalFEDChannelNum().
|
inlineprivate |
Definition at line 1170 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvError().
|
inline |
Definition at line 1086 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1144 of file SiStripFEDBufferComponents.cc.
References sistrip::CHANNEL_STATUS_NO_PROBLEMS, and getChannelStatus().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1136 of file SiStripFEDBufferComponents.cc.
References apvAddressError(), apvError(), outOfSyncFromBit(), and unlockedFromBit().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1131 of file SiStripFEDBufferComponents.cc.
References FEDFullDebugHeader().
|
inline |
Definition at line 1091 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by sistrip::RawToDigiUnpacker::updateEventSummary().
|
inline |
Definition at line 1096 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by sistrip::RawToDigiUnpacker::updateEventSummary().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1195 of file SiStripFEDBufferComponents.cc.
References header_.
Referenced by cuy.FindIssue::__init__().
|
inline |
Definition at line 1106 of file SiStripFEDBufferComponents.h.
References feUnitLength().
Referenced by sistrip::FEDBuffer::FEDBuffer().
|
inline |
Definition at line 1101 of file SiStripFEDBufferComponents.h.
References feWord().
Referenced by sistrip::FEDBuffer::checkFEUnitLengths(), sistrip::FEDBuffer::checkSummary(), and fePresent().
|
inline |
Definition at line 1081 of file SiStripFEDBufferComponents.h.
References feWord().
Referenced by sistrip::FEDBuffer::checkFEUnitAPVAddresses(), sistrip::FEDBuffer::checkSummary(), and sistrip::SpyEventMatcherModule::findL1IDandAPVAddress().
|
inline |
Definition at line 1203 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by beStatusRegister(), daqRegister(), daqRegister2(), feUnitLength(), feUnitMajorityAddress(), feWord(), getBit(), getChannelStatus(), set32BitReservedRegister(), setBEStatusRegister(), setBit(), setDAQRegister(), setDAQRegister2(), setFEUnitLength(), and setFEUnitMajorityAddress().
|
inline |
Definition at line 1209 of file SiStripFEDBufferComponents.h.
References feWord().
|
inlinestatic |
Definition at line 1193 of file SiStripFEDBufferComponents.h.
Referenced by beStatusRegister(), daqRegister(), and daqRegister2().
|
inlineprivate |
Definition at line 1186 of file SiStripFEDBufferComponents.h.
References sistrip::FEDCH_PER_FEUNIT, and feWord().
Referenced by apvAddressErrorFromBit(), apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
FEDChannelStatus sistrip::FEDFullDebugHeader::getChannelStatus | ( | const uint8_t | internalFEDChannelNum | ) | const |
Definition at line 1155 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FEUNIT, and feWord().
Referenced by checkChannelStatusBits(), sistrip::FEDBuffer::checkSummary(), and getChannelStatus().
|
inline |
Definition at line 1155 of file SiStripFEDBufferComponents.h.
References getChannelStatus(), and sistrip::internalFEDChannelNum().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1121 of file SiStripFEDBufferComponents.cc.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES.
|
inline |
Definition at line 1121 of file SiStripFEDBufferComponents.h.
References outOfSyncFromBit(), and unlocked().
Referenced by outOfSync().
|
inline |
Definition at line 1126 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and outOfSync().
|
inlineprivate |
Definition at line 1165 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError(), apvError(), checkStatusBits(), and outOfSync().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1126 of file SiStripFEDBufferComponents.cc.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES, header_, and sistrip::printHex().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1248 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
|
inlinestaticprivate |
Definition at line 1198 of file SiStripFEDBufferComponents.h.
Referenced by set32BitReservedRegister(), setBEStatusRegister(), setDAQRegister(), and setDAQRegister2().
|
inlineprivate |
Definition at line 1224 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
|
inlineprivate |
Definition at line 1229 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1232 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
private |
Definition at line 1259 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FEUNIT, and feWord().
Referenced by setAPVAddressError(), setAPVError(), setOutOfSync(), and setUnlocked().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1217 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, setAPVAddressError(), setAPVError(), setOutOfSync(), and setUnlocked().
Referenced by FEDFullDebugHeader().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1237 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1242 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1253 of file SiStripFEDBufferComponents.cc.
References feWord().
Referenced by FEDFullDebugHeader().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1227 of file SiStripFEDBufferComponents.cc.
References feWord().
Referenced by FEDFullDebugHeader().
|
inlineprivate |
Definition at line 1219 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
|
inlineprivate |
Definition at line 1214 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
|
inline |
Definition at line 1111 of file SiStripFEDBufferComponents.h.
References unlockedFromBit().
Referenced by outOfSync(), and unlocked().
|
inline |
Definition at line 1116 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and unlocked().
|
inlineprivate |
Definition at line 1160 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError(), apvError(), checkStatusBits(), and unlocked().
|
staticprivate |
Definition at line 540 of file SiStripFEDBufferComponents.h.
|
staticprivate |
Definition at line 541 of file SiStripFEDBufferComponents.h.
Referenced by FEDFullDebugHeader(), lengthInBytes(), and print().
|
private |
Definition at line 542 of file SiStripFEDBufferComponents.h.
Referenced by data(), FEDFullDebugHeader(), feWord(), and print().