#include <VFATdata.h>
Public Member Functions | |
uint8_t | b1010 () const |
uint8_t | b1100 () const |
uint8_t | b1110 () const |
uint16_t | bc () const |
uint16_t | checkCRC () |
uint16_t | checkCRC (uint8_t b1010, uint16_t BC, uint8_t b1100, uint8_t EC, uint8_t Flag, uint8_t b1110, uint16_t ChipID, uint64_t msData, uint64_t lsData) |
uint16_t | checkCRC (const VFATdata *vfatData) |
uint16_t | chipID () const |
uint16_t | crc () const |
uint16_t | crc_cal (uint16_t crc_in, uint16_t dato) |
uint16_t | crc_calc () const |
uint8_t | ec () const |
uint8_t | flag () const |
uint64_t | get_fw () const |
uint64_t | get_sw () const |
uint64_t | get_tw () const |
bool | isBlockGood () const |
uint64_t | lsData () const |
uint64_t | msData () const |
void | read_fw (uint64_t word) |
Read first word from the block. More... | |
void | read_sw (uint64_t word) |
Read second word from the block. More... | |
void | read_tw (uint64_t word) |
Read third word from the block. More... | |
int | slotNumber () const |
VFATdata () | |
VFATdata (const uint8_t b1010_, const uint16_t BC_, const uint8_t b1100_, const uint8_t EC_, const uint8_t Flag_, const uint8_t b1110_, const uint16_t ChipID_, const uint64_t lsData_, const uint64_t msData_, const uint16_t crc_, const uint16_t crc_calc_, const int SlotNumber_, const bool isBlockGood_) | |
~VFATdata () | |
Static Public Attributes | |
static const int | nChannels = 128 |
static const int | sizeChipID = 12 |
Private Attributes | |
uint8_t | m_b1010 |
1010:4 Control bits, shoud be 1010 More... | |
uint8_t | m_b1100 |
1100:4, Control bits, shoud be 1100 More... | |
uint8_t | m_b1110 |
1110:4 Control bits, shoud be 1110 More... | |
uint16_t | m_BC |
Bunch Crossing number, 12 bits. More... | |
uint16_t | m_ChipID |
Chip ID, 12 bits. More... | |
uint16_t | m_crc |
Check Sum value, 16 bits. More... | |
uint16_t | m_crc_calc |
Check Sum value recalculated, 16 bits. More... | |
uint8_t | m_EC |
Event Counter, 8 bits. More... | |
uint8_t | m_Flag |
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C. More... | |
bool | m_isBlockGood |
Shows if block is good (control bits, chip ID and CRC checks) More... | |
uint64_t | m_lsData |
channels from 1to64 More... | |
uint64_t | m_msData |
channels from 65to128 More... | |
int | m_SlotNumber |
Calculated chip position. More... | |
Definition at line 7 of file VFATdata.h.
|
inline |
Definition at line 10 of file VFATdata.h.
|
inline |
Definition at line 11 of file VFATdata.h.
|
inline |
Definition at line 12 of file VFATdata.h.
References checkCRC(), and m_crc.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 95 of file VFATdata.h.
References m_BC.
Referenced by checkCRC(), and geometryXMLparser.Alignable::covariance().
|
inline |
Definition at line 125 of file VFATdata.h.
References crc_cal(), mps_fire::i, m_b1010, m_b1100, m_b1110, m_BC, m_ChipID, m_EC, m_Flag, m_lsData, and m_msData.
Referenced by VFATdata().
|
inline |
Definition at line 147 of file VFATdata.h.
References b1010(), b1100(), b1110(), crc_cal(), nanoDQM_cfi::Flag, mps_fire::i, lsData(), and msData().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 108 of file VFATdata.h.
References edmIntegrityCheck::d, mps_fire::i, RecoTauDiscriminantConfiguration::mask, and findQualityFiles::v.
Referenced by checkCRC().
|
inline |
Definition at line 104 of file VFATdata.h.
References m_crc_calc.
|
inline |
|
inline |
Definition at line 98 of file VFATdata.h.
References m_Flag.
Referenced by checkCRC().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 106 of file VFATdata.h.
References m_isBlockGood.
|
inline |
|
inline |
|
inline |
|
inline |
Read second word from the block.
Definition at line 68 of file VFATdata.h.
References m_lsData, and m_msData.
|
inline |
Read third word from the block.
Definition at line 81 of file VFATdata.h.
References m_crc, and m_lsData.
|
inline |
|
private |
1010:4 Control bits, shoud be 1010
Definition at line 198 of file VFATdata.h.
Referenced by b1010(), checkCRC(), get_fw(), and read_fw().
|
private |
1100:4, Control bits, shoud be 1100
Definition at line 200 of file VFATdata.h.
Referenced by b1100(), checkCRC(), get_fw(), and read_fw().
|
private |
1110:4 Control bits, shoud be 1110
Definition at line 203 of file VFATdata.h.
Referenced by b1110(), checkCRC(), get_fw(), and read_fw().
|
private |
Bunch Crossing number, 12 bits.
Definition at line 199 of file VFATdata.h.
Referenced by bc(), checkCRC(), get_fw(), and read_fw().
|
private |
Chip ID, 12 bits.
Definition at line 204 of file VFATdata.h.
Referenced by checkCRC(), chipID(), get_fw(), and read_fw().
|
private |
Check Sum value, 16 bits.
Definition at line 207 of file VFATdata.h.
Referenced by crc(), get_tw(), read_tw(), and VFATdata().
|
private |
Check Sum value recalculated, 16 bits.
Definition at line 208 of file VFATdata.h.
Referenced by crc_calc().
|
private |
Event Counter, 8 bits.
Definition at line 201 of file VFATdata.h.
Referenced by checkCRC(), ec(), get_fw(), and read_fw().
|
private |
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
Definition at line 202 of file VFATdata.h.
Referenced by checkCRC(), flag(), get_fw(), and read_fw().
|
private |
Shows if block is good (control bits, chip ID and CRC checks)
Definition at line 210 of file VFATdata.h.
Referenced by isBlockGood().
|
private |
channels from 1to64
Definition at line 205 of file VFATdata.h.
Referenced by checkCRC(), get_sw(), get_tw(), lsData(), read_sw(), and read_tw().
|
private |
channels from 65to128
Definition at line 206 of file VFATdata.h.
Referenced by checkCRC(), get_fw(), get_sw(), msData(), read_fw(), and read_sw().
|
private |
|
static |
Definition at line 193 of file VFATdata.h.
|
static |
Definition at line 194 of file VFATdata.h.