1 #ifndef DataFormats_GEMDigi_GEMVFAT_h 2 #define DataFormats_GEMDigi_GEMVFAT_h 113 uint16_t
crc_cal(uint16_t crc_in, uint16_t dato);
uint64_t flag
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
uint64_t fw_
phi position of vfat in chamber
uint64_t lsData2
channels from 1to64
uint64_t ecV2
Event Counter, 8 bits.
uint64_t crc
Check Sum value, 16 bits.
uint16_t crc_cal(uint16_t crc_in, uint16_t dato)
uint64_t b1010
1010:4 Control bits, shoud be 1010
uint64_t b1110
1110:4 Control bits, shoud be 1110
uint64_t ec
Event Counter, 8 bits.
uint64_t msData2
channels from 65to128
void read_sw(uint64_t word)
Read second word from the block.
uint8_t quality()
quality flag - bit: 0 good, 1 crc fail, 2 b1010 fail, 3 b1100 fail, 4 b1110
uint64_t bcV2
Bunch Crossing number, 12 bits.
uint64_t chipID
Chip ID, 12 bits.
static const int nChannels
uint64_t msData1
channels from 65to128
uint64_t bc
Bunch Crossing number, 16 bits.
uint64_t lsData1
channels from 1to64
uint64_t b1100
1100:4, Control bits, shoud be 1100
uint64_t header
normally 0x1E. 0x5E indicates that the VFAT3 internal buffer
unsigned long long uint64_t
void read_tw(uint64_t word)
Read third word from the block.
static const int sizeChipID
uint64_t msData1v2
channels from 65to128 - placeholder since msData1 reads same info
void read_fw(uint64_t word)
Read first word from the block.
VFAT data structure - 3 words of 64 bits each.