CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GEMVfatStatusDigi Class Reference

#include <GEMVfatStatusDigi.h>

Public Member Functions

uint16_t bc () const
 
uint8_t ec () const
 
uint8_t flag () const
 
 GEMVfatStatusDigi ()
 
 GEMVfatStatusDigi ()
 
 GEMVfatStatusDigi (gem::VFATdata &vfat)
 
 GEMVfatStatusDigi (uint64_t lsData, uint64_t msData, uint16_t crc, uint16_t crc_calc, uint8_t b1010, uint8_t b1100, uint8_t b1110, uint8_t flag, bool isBlockGood)
 
uint8_t getB1010 () const
 
uint8_t getB1100 () const
 
uint8_t getB1110 () const
 
uint16_t getCrc () const
 
uint16_t getCrc_calc () const
 
uint8_t getFlag () const
 
uint16_t getIsBlocGood () const
 
uint64_t getLsData () const
 
uint64_t getMsData () const
 
int phi () const
 
uint8_t quality () const
 

Private Attributes

uint8_t b1010_
 1010:4 Control bits, shoud be 1010 More...
 
uint8_t b1100_
 1100:4, Control bits, shoud be 1100 More...
 
uint8_t b1110_
 1110:4 Control bits, shoud be 1110 More...
 
uint16_t bc_
 vfat local phi postion in chamber More...
 
uint16_t crc_
 Check Sum value, 16 bits. More...
 
uint16_t crc_calc_
 Check Sum value recalculated, 16 bits. More...
 
uint8_t ec_
 
uint8_t flag_
 Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C. More...
 
bool isBlockGood_
 Shows if block is good (control bits, chip ID and CRC checks) More...
 
uint64_t lsData_
 channels from 1to64 More...
 
uint64_t msData_
 channels from 65to128 More...
 
int phi_
 Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C. More...
 
uint8_t quality_
 

Detailed Description

Definition at line 6 of file GEMVfatStatusDigi.h.

Constructor & Destructor Documentation

◆ GEMVfatStatusDigi() [1/4]

GEMVfatStatusDigi::GEMVfatStatusDigi ( uint64_t  lsData,
uint64_t  msData,
uint16_t  crc,
uint16_t  crc_calc,
uint8_t  b1010,
uint8_t  b1100,
uint8_t  b1110,
uint8_t  flag,
bool  isBlockGood 
)
explicit

Definition at line 3 of file GEMVfatStatusDigi.cc.

12  : lsData_(lsData),
13  msData_(msData),
14  crc_(crc),
15  crc_calc_(crc_calc),
16  b1010_(b1010),
17  b1100_(b1100),
18  b1110_(b1110),
19  flag_(flag),
20  isBlockGood_(isBlockGood){};

◆ GEMVfatStatusDigi() [2/4]

GEMVfatStatusDigi::GEMVfatStatusDigi ( )
inline

Definition at line 18 of file GEMVfatStatusDigi.h.

18 {}

◆ GEMVfatStatusDigi() [3/4]

GEMVfatStatusDigi::GEMVfatStatusDigi ( gem::VFATdata vfat)

Definition at line 4 of file GEMVfatStatusDigi.cc.

4  {
5  quality_ = vfat.quality();
6  flag_ = vfat.flag();
7  phi_ = vfat.phi();
8  ec_ = vfat.ec();
9  bc_ = vfat.bc();
10 };

References gem::VFATdata::bc(), bc_, gem::VFATdata::ec(), ec_, gem::VFATdata::flag(), flag_, gem::VFATdata::phi(), phi_, gem::VFATdata::quality(), and quality_.

◆ GEMVfatStatusDigi() [4/4]

GEMVfatStatusDigi::GEMVfatStatusDigi ( )
inline

Definition at line 10 of file GEMVfatStatusDigi.h.

10 {}

Member Function Documentation

◆ bc()

uint16_t GEMVfatStatusDigi::bc ( ) const
inline

Definition at line 15 of file GEMVfatStatusDigi.h.

15 { return bc_; }

References bc_.

Referenced by geometryXMLparser.Alignable::covariance().

◆ ec()

uint8_t GEMVfatStatusDigi::ec ( ) const
inline

Definition at line 16 of file GEMVfatStatusDigi.h.

16 { return ec_; }

References ec_.

◆ flag()

uint8_t GEMVfatStatusDigi::flag ( void  ) const
inline

Definition at line 13 of file GEMVfatStatusDigi.h.

13 { return flag_; }

References flag_.

◆ getB1010()

uint8_t GEMVfatStatusDigi::getB1010 ( ) const
inline

Definition at line 25 of file GEMVfatStatusDigi.h.

25 { return b1010_; }

References b1010_.

◆ getB1100()

uint8_t GEMVfatStatusDigi::getB1100 ( ) const
inline

Definition at line 26 of file GEMVfatStatusDigi.h.

26 { return b1100_; }

References b1100_.

◆ getB1110()

uint8_t GEMVfatStatusDigi::getB1110 ( ) const
inline

Definition at line 27 of file GEMVfatStatusDigi.h.

27 { return b1110_; }

References b1110_.

◆ getCrc()

uint16_t GEMVfatStatusDigi::getCrc ( ) const
inline

Definition at line 22 of file GEMVfatStatusDigi.h.

22 { return crc_; }

References crc_.

◆ getCrc_calc()

uint16_t GEMVfatStatusDigi::getCrc_calc ( ) const
inline

Definition at line 23 of file GEMVfatStatusDigi.h.

23 { return crc_calc_; }

References crc_calc_.

◆ getFlag()

uint8_t GEMVfatStatusDigi::getFlag ( ) const
inline

Definition at line 28 of file GEMVfatStatusDigi.h.

28 { return flag_; }

References flag_.

◆ getIsBlocGood()

uint16_t GEMVfatStatusDigi::getIsBlocGood ( ) const
inline

Definition at line 24 of file GEMVfatStatusDigi.h.

24 { return isBlockGood_; }

References isBlockGood_.

◆ getLsData()

uint64_t GEMVfatStatusDigi::getLsData ( ) const
inline

Definition at line 20 of file GEMVfatStatusDigi.h.

20 { return lsData_; }

References lsData_.

◆ getMsData()

uint64_t GEMVfatStatusDigi::getMsData ( ) const
inline

Definition at line 21 of file GEMVfatStatusDigi.h.

21 { return msData_; }

References msData_.

◆ phi()

int GEMVfatStatusDigi::phi ( void  ) const
inline

Definition at line 14 of file GEMVfatStatusDigi.h.

14 { return phi_; }

References phi_.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

◆ quality()

uint8_t GEMVfatStatusDigi::quality ( void  ) const
inline

Definition at line 12 of file GEMVfatStatusDigi.h.

12 { return quality_; }

References quality_.

Member Data Documentation

◆ b1010_

uint8_t GEMVfatStatusDigi::b1010_
private

1010:4 Control bits, shoud be 1010

Definition at line 35 of file GEMVfatStatusDigi.h.

Referenced by getB1010().

◆ b1100_

uint8_t GEMVfatStatusDigi::b1100_
private

1100:4, Control bits, shoud be 1100

Definition at line 36 of file GEMVfatStatusDigi.h.

Referenced by getB1100().

◆ b1110_

uint8_t GEMVfatStatusDigi::b1110_
private

1110:4 Control bits, shoud be 1110

Definition at line 37 of file GEMVfatStatusDigi.h.

Referenced by getB1110().

◆ bc_

uint16_t GEMVfatStatusDigi::bc_
private

vfat local phi postion in chamber

Definition at line 22 of file GEMVfatStatusDigi.h.

Referenced by bc(), and GEMVfatStatusDigi().

◆ crc_

uint16_t GEMVfatStatusDigi::crc_
private

Check Sum value, 16 bits.

Definition at line 33 of file GEMVfatStatusDigi.h.

Referenced by getCrc().

◆ crc_calc_

uint16_t GEMVfatStatusDigi::crc_calc_
private

Check Sum value recalculated, 16 bits.

Definition at line 34 of file GEMVfatStatusDigi.h.

Referenced by getCrc_calc().

◆ ec_

uint8_t GEMVfatStatusDigi::ec_
private

Definition at line 23 of file GEMVfatStatusDigi.h.

Referenced by ec(), and GEMVfatStatusDigi().

◆ flag_

uint8_t GEMVfatStatusDigi::flag_
private

Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.

quality flag - bit: 0 good, 1 crc fail, 2 b1010 fail, 3 b1100 fail, 4 b1110

Definition at line 38 of file GEMVfatStatusDigi.h.

Referenced by flag(), GEMVfatStatusDigi(), and getFlag().

◆ isBlockGood_

bool GEMVfatStatusDigi::isBlockGood_
private

Shows if block is good (control bits, chip ID and CRC checks)

Definition at line 39 of file GEMVfatStatusDigi.h.

Referenced by getIsBlocGood().

◆ lsData_

uint64_t GEMVfatStatusDigi::lsData_
private

channels from 1to64

Definition at line 31 of file GEMVfatStatusDigi.h.

Referenced by getLsData().

◆ msData_

uint64_t GEMVfatStatusDigi::msData_
private

channels from 65to128

Definition at line 32 of file GEMVfatStatusDigi.h.

Referenced by getMsData().

◆ phi_

int GEMVfatStatusDigi::phi_
private

Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.

Definition at line 21 of file GEMVfatStatusDigi.h.

Referenced by GEMVfatStatusDigi(), and phi().

◆ quality_

uint8_t GEMVfatStatusDigi::quality_
private

Definition at line 19 of file GEMVfatStatusDigi.h.

Referenced by GEMVfatStatusDigi(), and quality().

GEMVfatStatusDigi::crc_calc_
uint16_t crc_calc_
Check Sum value recalculated, 16 bits.
Definition: GEMVfatStatusDigi.h:34
GEMVfatStatusDigi::b1010_
uint8_t b1010_
1010:4 Control bits, shoud be 1010
Definition: GEMVfatStatusDigi.h:35
GEMVfatStatusDigi::bc_
uint16_t bc_
vfat local phi postion in chamber
Definition: GEMVfatStatusDigi.h:22
GEMVfatStatusDigi::ec_
uint8_t ec_
Definition: GEMVfatStatusDigi.h:23
GEMVfatStatusDigi::flag_
uint8_t flag_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
Definition: GEMVfatStatusDigi.h:38
gem::VFATdata::flag
uint8_t flag() const
Definition: VFATdata.h:110
GEMVfatStatusDigi::phi_
int phi_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
Definition: GEMVfatStatusDigi.h:21
GEMVfatStatusDigi::crc_
uint16_t crc_
Check Sum value, 16 bits.
Definition: GEMVfatStatusDigi.h:33
gem::VFATdata::phi
int phi() const
Definition: VFATdata.h:74
gem::VFATdata::quality
uint8_t quality()
quality flag - bit: 0 good, 1 crc fail, 2 b1010 fail, 3 b1100 fail, 4 b1110
Definition: VFATdata.cc:50
gem::VFATdata::bc
uint16_t bc() const
Definition: VFATdata.h:79
GEMVfatStatusDigi::flag
uint8_t flag() const
Definition: GEMVfatStatusDigi.h:13
GEMVfatStatusDigi::b1100_
uint8_t b1100_
1100:4, Control bits, shoud be 1100
Definition: GEMVfatStatusDigi.h:36
gem::VFATdata::ec
uint8_t ec() const
Definition: VFATdata.h:84
GEMVfatStatusDigi::quality_
uint8_t quality_
Definition: GEMVfatStatusDigi.h:19
GEMVfatStatusDigi::lsData_
uint64_t lsData_
channels from 1to64
Definition: GEMVfatStatusDigi.h:31
GEMVfatStatusDigi::b1110_
uint8_t b1110_
1110:4 Control bits, shoud be 1110
Definition: GEMVfatStatusDigi.h:37
GEMVfatStatusDigi::isBlockGood_
bool isBlockGood_
Shows if block is good (control bits, chip ID and CRC checks)
Definition: GEMVfatStatusDigi.h:39
GEMVfatStatusDigi::msData_
uint64_t msData_
channels from 65to128
Definition: GEMVfatStatusDigi.h:32