#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 |
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 | 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 () |
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 |
const uint8_t * | feWord (const uint8_t internalFEUnitNum) const |
uint8_t * | feWord (const uint8_t internalFEUnitNum) |
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 uint32_t | get32BitWordFrom (const uint8_t *startOfWord) |
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 |
Additional Inherited Members | |
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) |
Definition at line 439 of file SiStripFEDBufferComponents.h.
|
inlineexplicit |
Definition at line 1049 of file SiStripFEDBufferComponents.h.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES, and header_.
Referenced by clone().
|
virtual |
Definition at line 1051 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 1134 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 1116 of file SiStripFEDBufferComponents.h.
References apvAddressErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
Referenced by apvAddressError(), and checkStatusBits().
|
inline |
Definition at line 1123 of file SiStripFEDBufferComponents.h.
References apvAddressError(), and sistrip::internalFEDChannelNum().
|
inlineprivate |
Definition at line 1154 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError().
|
inline |
Definition at line 1104 of file SiStripFEDBufferComponents.h.
References apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().
Referenced by apvError(), and checkStatusBits().
|
inline |
Definition at line 1111 of file SiStripFEDBufferComponents.h.
References apvError(), and sistrip::internalFEDChannelNum().
|
inlineprivate |
Definition at line 1143 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvError().
|
inline |
Definition at line 1059 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1078 of file SiStripFEDBufferComponents.cc.
References sistrip::CHANNEL_STATUS_NO_PROBLEMS, and getChannelStatus().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1070 of file SiStripFEDBufferComponents.cc.
References apvAddressError(), apvError(), outOfSyncFromBit(), and unlockedFromBit().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1065 of file SiStripFEDBufferComponents.cc.
References FEDFullDebugHeader().
|
inline |
Definition at line 1064 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by sistrip::RawToDigiUnpacker::updateEventSummary().
|
inline |
Definition at line 1069 of file SiStripFEDBufferComponents.h.
References feWord(), and get32BitWordFrom().
Referenced by sistrip::RawToDigiUnpacker::updateEventSummary().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1129 of file SiStripFEDBufferComponents.cc.
References header_.
Referenced by cuy.FindIssue::__init__().
|
inline |
Definition at line 1079 of file SiStripFEDBufferComponents.h.
References feUnitLength().
Referenced by sistrip::FEDBuffer::FEDBuffer().
|
inline |
Definition at line 1074 of file SiStripFEDBufferComponents.h.
References feWord().
Referenced by sistrip::FEDBuffer::checkFEUnitLengths(), sistrip::FEDBuffer::checkSummary(), and fePresent().
|
inline |
Definition at line 1054 of file SiStripFEDBufferComponents.h.
References feWord().
Referenced by sistrip::FEDBuffer::checkFEUnitAPVAddresses(), sistrip::FEDBuffer::checkSummary(), and sistrip::SpyEventMatcherModule::findL1IDandAPVAddress().
|
inlineprivate |
Definition at line 1176 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by beStatusRegister(), daqRegister(), daqRegister2(), feUnitLength(), feUnitMajorityAddress(), feWord(), getBit(), getChannelStatus(), setBEStatusRegister(), setBit(), setDAQRegister(), setDAQRegister2(), setFEUnitLength(), and setFEUnitMajorityAddress().
|
inlineprivate |
Definition at line 1182 of file SiStripFEDBufferComponents.h.
References feWord().
|
inlinestaticprivate |
Definition at line 1166 of file SiStripFEDBufferComponents.h.
Referenced by beStatusRegister(), daqRegister(), and daqRegister2().
|
inlineprivate |
Definition at line 1159 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 1089 of file SiStripFEDBufferComponents.cc.
References sistrip::FEDCH_PER_FEUNIT, and feWord().
Referenced by checkChannelStatusBits(), sistrip::FEDBuffer::checkSummary(), and getChannelStatus().
|
inline |
Definition at line 1128 of file SiStripFEDBufferComponents.h.
References getChannelStatus(), and sistrip::internalFEDChannelNum().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1055 of file SiStripFEDBufferComponents.cc.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES.
|
inline |
Definition at line 1094 of file SiStripFEDBufferComponents.h.
References outOfSyncFromBit(), and unlocked().
Referenced by outOfSync().
|
inline |
Definition at line 1099 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and outOfSync().
|
inlineprivate |
Definition at line 1138 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError(), apvError(), checkStatusBits(), and outOfSync().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1060 of file SiStripFEDBufferComponents.cc.
References FULL_DEBUG_HEADER_SIZE_IN_BYTES, header_, and sistrip::printHex().
|
inlinestaticprivate |
Definition at line 1171 of file SiStripFEDBufferComponents.h.
Referenced by setBEStatusRegister(), setDAQRegister(), and setDAQRegister2().
|
inlineprivate |
Definition at line 1197 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
|
inlineprivate |
Definition at line 1202 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1166 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
private |
Definition at line 1187 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 1151 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 |
Definition at line 1171 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
virtual |
Definition at line 1176 of file SiStripFEDBufferComponents.cc.
References feWord(), and set32BitWordAt().
Referenced by FEDFullDebugHeader().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1181 of file SiStripFEDBufferComponents.cc.
References feWord().
Referenced by FEDFullDebugHeader().
|
virtual |
Implements sistrip::FEDFEHeader.
Definition at line 1161 of file SiStripFEDBufferComponents.cc.
References feWord().
Referenced by FEDFullDebugHeader().
|
inlineprivate |
Definition at line 1192 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
|
inlineprivate |
Definition at line 1187 of file SiStripFEDBufferComponents.h.
References setBit().
Referenced by setChannelStatus().
|
inline |
Definition at line 1084 of file SiStripFEDBufferComponents.h.
References unlockedFromBit().
Referenced by outOfSync(), and unlocked().
|
inline |
Definition at line 1089 of file SiStripFEDBufferComponents.h.
References sistrip::internalFEDChannelNum(), and unlocked().
|
inlineprivate |
Definition at line 1133 of file SiStripFEDBufferComponents.h.
References getBit().
Referenced by apvAddressError(), apvError(), checkStatusBits(), and unlocked().
|
staticprivate |
Definition at line 509 of file SiStripFEDBufferComponents.h.
|
staticprivate |
Definition at line 510 of file SiStripFEDBufferComponents.h.
Referenced by FEDFullDebugHeader(), lengthInBytes(), and print().
|
private |
Definition at line 511 of file SiStripFEDBufferComponents.h.
Referenced by data(), FEDFullDebugHeader(), feWord(), and print().