Go to the documentation of this file. 1 #ifndef DataFormats_GEMDigi_VFATdata_h
2 #define DataFormats_GEMDigi_VFATdata_h
114 uint16_t
crc_cal(uint16_t crc_in, uint16_t dato);
void read_tw(uint64_t word)
Read third word from the block.
void read_sw(uint64_t word)
Read second word from the block.
uint64_t bcV2
Bunch Crossing number, 12 bits.
uint64_t msData2
channels from 65to128
uint64_t crc
Check Sum value, 16 bits.
VFAT data structure - 3 words of 64 bits each.
uint64_t msData1v2
channels from 65to128 - placeholder since msData1 reads same info
uint64_t unused
VFAT CRC Error.
static const int nChannels
uint8_t quality()
quality flag - bit: 0 good, 1 crc fail, 2 b1010 fail, 3 b1100 fail, 4 b1110
uint64_t msData1
channels from 65to128
void read_fw(uint64_t word)
Read first word from the block.
uint64_t b1110
1110:4 Control bits, shoud be 1110
uint64_t b1010
1010:4 Control bits, shoud be 1010
uint64_t chipID
Chip ID, 12 bits.
uint64_t flag
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
uint64_t pos
an 8bit value indicating the VFAT position on this GEB (it can be 0 to 23)
uint16_t crc_cal(uint16_t crc_in, uint16_t dato)
uint64_t ec
Event Counter, 8 bits.
uint64_t bc
Bunch Crossing number, 16 bits.
static const int sizeChipID
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
uint64_t ecV2
Event Counter, 8 bits.
uint64_t fw_
phi position of vfat in chamber
unsigned long long uint64_t
uint64_t lsData2
channels from 1to64