CMS 3D CMS Logo

GEMVfatStatusDigi.h
Go to the documentation of this file.
1 #ifndef DataFormats_GEMDigi_GEMVfatStatusDigi_H
2 #define DataFormats_GEMDigi_GEMVfatStatusDigi_H
3 
4 #include <cstdint>
5 
7 
8  public:
9  explicit GEMVfatStatusDigi(uint64_t lsData,
10  uint64_t msData,
11  uint16_t crc,
12  uint16_t crc_calc,
13  uint8_t b1010,
14  uint8_t b1100,
15  uint8_t b1110,
16  uint8_t flag,
17  bool isBlockGood );
18 
20 
21  uint64_t getLsData() const { return lsData_; }
22  uint64_t getMsData() const { return msData_; }
23  uint16_t getCrc() const { return crc_; }
24  uint16_t getCrc_calc() const { return crc_calc_; }
25  uint16_t getIsBlocGood() const { return isBlockGood_; }
26  uint8_t getB1010() const { return b1010_; }
27  uint8_t getB1100() const { return b1100_; }
28  uint8_t getB1110() const { return b1110_; }
29  uint8_t getFlag() const{ return flag_; }
30 
31  private:
32 
35  uint16_t crc_;
36  uint16_t crc_calc_;
37  uint8_t b1010_;
38  uint8_t b1100_;
39  uint8_t b1110_;
40  uint8_t flag_;
41  bool isBlockGood_;
42 
43 };
44 #endif
uint16_t crc_calc_
Check Sum value recalculated, 16 bits.
uint16_t getIsBlocGood() const
uint8_t b1110_
1110:4 Control bits, shoud be 1110
uint8_t flag_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
uint8_t getB1100() const
uint8_t getB1110() const
uint64_t getMsData() const
uint8_t getB1010() const
uint8_t b1010_
1010:4 Control bits, shoud be 1010
uint16_t crc_
Check Sum value, 16 bits.
uint8_t b1100_
1100:4, Control bits, shoud be 1100
uint16_t getCrc_calc() const
uint8_t getFlag() const
unsigned long long uint64_t
Definition: Time.h:15
uint16_t getCrc() const
uint64_t lsData_
channels from 1to64
uint64_t getLsData() const
uint64_t msData_
channels from 65to128
bool isBlockGood_
Shows if block is good (control bits, chip ID and CRC checks)