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 (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)
 
 GEMVfatStatusDigi (gem::VFATdata &vfat)
 
 GEMVfatStatusDigi ()
 
 GEMVfatStatusDigi ()
 
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::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.

11  :
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)
21 {};
uint16_t crc_calc_
Check Sum value recalculated, 16 bits.
uint8_t b1110_
1110:4 Control bits, shoud be 1110
uint8_t flag_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
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
uint8_t flag() const
uint64_t lsData_
channels from 1to64
uint64_t msData_
channels from 65to128
bool isBlockGood_
Shows if block is good (control bits, chip ID and CRC checks)
GEMVfatStatusDigi::GEMVfatStatusDigi ( )
inline

Definition at line 19 of file GEMVfatStatusDigi.h.

19 {}
GEMVfatStatusDigi::GEMVfatStatusDigi ( gem::VFATdata vfat)

Definition at line 4 of file GEMVfatStatusDigi.cc.

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

5 {
6  quality_ = vfat.quality();
7  flag_ = vfat.flag();
8  phi_ = vfat.phi();
9  ec_ = vfat.ec();
10  bc_ = vfat.bc();
11 };
uint8_t flag_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
uint16_t bc_
vfat local phi postion in chamber
uint16_t bc() const
Definition: VFATdata.h:83
int phi_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
uint8_t ec() const
Definition: VFATdata.h:87
uint8_t flag() const
Definition: VFATdata.h:111
uint8_t quality()
quality flag - bit: 0 good, 1 crc fail, 2 b1010 fail, 3 b1100 fail, 4 b1110
Definition: VFATdata.cc:57
int phi() const
Definition: VFATdata.h:74
GEMVfatStatusDigi::GEMVfatStatusDigi ( )
inline

Definition at line 11 of file GEMVfatStatusDigi.h.

11 {}

Member Function Documentation

uint16_t GEMVfatStatusDigi::bc ( ) const
inline

Definition at line 16 of file GEMVfatStatusDigi.h.

References bc_.

Referenced by geometryXMLparser.Alignable::covariance().

16 { return bc_; }
uint16_t bc_
vfat local phi postion in chamber
uint8_t GEMVfatStatusDigi::ec ( ) const
inline

Definition at line 17 of file GEMVfatStatusDigi.h.

References ec_.

17 { return ec_; }
uint8_t GEMVfatStatusDigi::flag ( void  ) const
inline

Definition at line 14 of file GEMVfatStatusDigi.h.

References flag_.

14 { return flag_; }
uint8_t flag_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
uint8_t GEMVfatStatusDigi::getB1010 ( ) const
inline

Definition at line 26 of file GEMVfatStatusDigi.h.

References b1010_.

26 { return b1010_; }
uint8_t b1010_
1010:4 Control bits, shoud be 1010
uint8_t GEMVfatStatusDigi::getB1100 ( ) const
inline

Definition at line 27 of file GEMVfatStatusDigi.h.

References b1100_.

27 { return b1100_; }
uint8_t b1100_
1100:4, Control bits, shoud be 1100
uint8_t GEMVfatStatusDigi::getB1110 ( ) const
inline

Definition at line 28 of file GEMVfatStatusDigi.h.

References b1110_.

28 { return b1110_; }
uint8_t b1110_
1110:4 Control bits, shoud be 1110
uint16_t GEMVfatStatusDigi::getCrc ( ) const
inline

Definition at line 23 of file GEMVfatStatusDigi.h.

References crc_.

23 { return crc_; }
uint16_t crc_
Check Sum value, 16 bits.
uint16_t GEMVfatStatusDigi::getCrc_calc ( ) const
inline

Definition at line 24 of file GEMVfatStatusDigi.h.

References crc_calc_.

24 { return crc_calc_; }
uint16_t crc_calc_
Check Sum value recalculated, 16 bits.
uint8_t GEMVfatStatusDigi::getFlag ( ) const
inline

Definition at line 29 of file GEMVfatStatusDigi.h.

References flag_.

29 { return flag_; }
uint8_t flag_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
uint16_t GEMVfatStatusDigi::getIsBlocGood ( ) const
inline

Definition at line 25 of file GEMVfatStatusDigi.h.

References isBlockGood_.

25 { return isBlockGood_; }
bool isBlockGood_
Shows if block is good (control bits, chip ID and CRC checks)
uint64_t GEMVfatStatusDigi::getLsData ( ) const
inline

Definition at line 21 of file GEMVfatStatusDigi.h.

References lsData_.

21 { return lsData_; }
uint64_t lsData_
channels from 1to64
uint64_t GEMVfatStatusDigi::getMsData ( ) const
inline

Definition at line 22 of file GEMVfatStatusDigi.h.

References msData_.

22 { return msData_; }
uint64_t msData_
channels from 65to128
int GEMVfatStatusDigi::phi ( void  ) const
inline

Definition at line 15 of file GEMVfatStatusDigi.h.

References phi_.

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

15 { return phi_; }
int phi_
Control Flags: 4 bits, Hamming Error/AFULL/SEUlogic/SUEI2C.
uint8_t GEMVfatStatusDigi::quality ( void  ) const
inline

Definition at line 13 of file GEMVfatStatusDigi.h.

References quality_.

13 { return quality_; }

Member Data Documentation

uint8_t GEMVfatStatusDigi::b1010_
private

1010:4 Control bits, shoud be 1010

Definition at line 37 of file GEMVfatStatusDigi.h.

Referenced by getB1010().

uint8_t GEMVfatStatusDigi::b1100_
private

1100:4, Control bits, shoud be 1100

Definition at line 38 of file GEMVfatStatusDigi.h.

Referenced by getB1100().

uint8_t GEMVfatStatusDigi::b1110_
private

1110:4 Control bits, shoud be 1110

Definition at line 39 of file GEMVfatStatusDigi.h.

Referenced by getB1110().

uint16_t GEMVfatStatusDigi::bc_
private

vfat local phi postion in chamber

Definition at line 24 of file GEMVfatStatusDigi.h.

Referenced by bc(), and GEMVfatStatusDigi().

uint16_t GEMVfatStatusDigi::crc_
private

Check Sum value, 16 bits.

Definition at line 35 of file GEMVfatStatusDigi.h.

Referenced by getCrc().

uint16_t GEMVfatStatusDigi::crc_calc_
private

Check Sum value recalculated, 16 bits.

Definition at line 36 of file GEMVfatStatusDigi.h.

Referenced by getCrc_calc().

uint8_t GEMVfatStatusDigi::ec_
private

Definition at line 25 of file GEMVfatStatusDigi.h.

Referenced by ec(), and GEMVfatStatusDigi().

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 40 of file GEMVfatStatusDigi.h.

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

bool GEMVfatStatusDigi::isBlockGood_
private

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

Definition at line 41 of file GEMVfatStatusDigi.h.

Referenced by getIsBlocGood().

uint64_t GEMVfatStatusDigi::lsData_
private

channels from 1to64

Definition at line 33 of file GEMVfatStatusDigi.h.

Referenced by getLsData().

uint64_t GEMVfatStatusDigi::msData_
private

channels from 65to128

Definition at line 34 of file GEMVfatStatusDigi.h.

Referenced by getMsData().

int GEMVfatStatusDigi::phi_
private

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

Definition at line 23 of file GEMVfatStatusDigi.h.

Referenced by GEMVfatStatusDigi(), and phi().

uint8_t GEMVfatStatusDigi::quality_
private

Definition at line 21 of file GEMVfatStatusDigi.h.

Referenced by GEMVfatStatusDigi(), and quality().