CMS 3D CMS Logo

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

#include <GEMOHStatus.h>

Classes

union  Errors
 
union  Warnings
 

Public Member Functions

uint16_t errors () const
 
uint32_t existVFATs () const
 
 GEMOHStatus ()
 
 GEMOHStatus (const GEMOptoHybrid &oh)
 
void inValidVFAT ()
 
bool isBad () const
 
uint32_t missingVFATs () const
 
uint32_t vfatMask () const
 
uint8_t warnings () const
 
uint32_t zsMask () const
 

Private Attributes

uint16_t errors_
 
uint32_t existVFATs_
 
uint32_t missingVFATs_
 
uint32_t vfatMask_
 
uint8_t warnings_
 
uint32_t zsMask_
 

Detailed Description

Definition at line 8 of file GEMOHStatus.h.

Constructor & Destructor Documentation

◆ GEMOHStatus() [1/2]

GEMOHStatus::GEMOHStatus ( )
inline

Definition at line 38 of file GEMOHStatus.h.

38 {}

◆ GEMOHStatus() [2/2]

GEMOHStatus::GEMOHStatus ( const GEMOptoHybrid oh)
inline

Definition at line 39 of file GEMOHStatus.h.

References GEMOptoHybrid::bxmAvV(), GEMOptoHybrid::bxmVvV(), relativeConstraints::error, errors_, GEMOptoHybrid::evtF(), GEMOptoHybrid::evtNF(), GEMOptoHybrid::evtSzOFW(), GEMOptoHybrid::evtSzW(), GEMOptoHybrid::existVFATs(), existVFATs_, GEMOptoHybrid::inF(), GEMOptoHybrid::inNF(), GEMOptoHybrid::inUfw(), GEMOptoHybrid::inv(), GEMOptoHybrid::l1aF(), GEMOptoHybrid::l1aNF(), missingVFATs_, GEMOptoHybrid::oOScAvV(), GEMOptoHybrid::oOScVvV(), GEMOptoHybrid::version(), GEMOptoHybrid::vfatMask(), vfatMask_, GEMOptoHybrid::vfatWordCnt(), GEMOptoHybrid::vfatWordCntT(), python::warn(), warnings_, GEMOptoHybrid::zsMask(), and zsMask_.

39  {
40  Errors error{0};
41  error.EvtF = oh.evtF();
42  error.InF = oh.inF();
43  error.L1aF = (oh.l1aF() and (oh.version() == 0));
44  error.EvtSzOFW = oh.evtSzOFW();
45  error.Inv = oh.inv();
46  error.OOScAvV = oh.oOScAvV();
47  error.OOScVvV = oh.oOScVvV();
48  error.BxmAvV = oh.bxmAvV();
49  error.BxmVvV = oh.bxmVvV();
50  error.InUfw = oh.inUfw();
51  error.badVFatCount = oh.vfatWordCnt() != oh.vfatWordCntT();
52  errors_ = error.codes;
53 
54  Warnings warn{0};
55  existVFATs_ = oh.existVFATs();
56  vfatMask_ = oh.vfatMask();
57  zsMask_ = oh.zsMask();
58  missingVFATs_ = (existVFATs_ ^ 0xffffff) & (vfatMask_ & (zsMask_ ^ 0xffffff));
59  warn.EvtNF = oh.evtNF();
60  warn.InNF = oh.inNF();
61  warn.L1aNF = (oh.l1aNF() and (oh.version() == 0));
62  warn.EvtSzW = oh.evtSzW();
63  warn.missingVFAT = (oh.version() != 0) and (missingVFATs_ != 0);
64  warnings_ = warn.wcodes;
65  }
bool l1aNF() const
bool oOScVvV() const
uint16_t vfatWordCntT() const
bool evtF() const
uint32_t zsMask() const
def warn(args, kwargs)
Definition: __init__.py:21
uint16_t vfatWordCnt() const
uint8_t version() const
Definition: GEMOptoHybrid.h:80
bool bxmAvV() const
bool bxmVvV() const
uint32_t existVFATs() const
bool inUfw() const
uint32_t zsMask_
Definition: GEMOHStatus.h:86
bool evtNF() const
uint32_t vfatMask_
Definition: GEMOHStatus.h:85
uint16_t errors_
Definition: GEMOHStatus.h:82
bool oOScAvV() const
bool evtSzW() const
bool inv() const
uint32_t missingVFATs_
Definition: GEMOHStatus.h:84
uint32_t existVFATs_
Definition: GEMOHStatus.h:87
bool inNF() const
uint32_t vfatMask() const
uint8_t warnings_
Definition: GEMOHStatus.h:83
bool inF() const
bool evtSzOFW() const
bool l1aF() const

Member Function Documentation

◆ errors()

uint16_t GEMOHStatus::errors ( ) const
inline

Definition at line 74 of file GEMOHStatus.h.

References errors_.

74 { return errors_; }
uint16_t errors_
Definition: GEMOHStatus.h:82

◆ existVFATs()

uint32_t GEMOHStatus::existVFATs ( ) const
inline

Definition at line 79 of file GEMOHStatus.h.

References existVFATs_.

79 { return existVFATs_; }
uint32_t existVFATs_
Definition: GEMOHStatus.h:87

◆ inValidVFAT()

void GEMOHStatus::inValidVFAT ( )
inline

Definition at line 67 of file GEMOHStatus.h.

References python::warn(), and warnings_.

Referenced by GEMRawToDigiModule::produce().

67  {
68  Warnings warn{warnings_};
69  warn.InValidVFAT = 1;
70  warnings_ = warn.wcodes;
71  }
def warn(args, kwargs)
Definition: __init__.py:21
uint8_t warnings_
Definition: GEMOHStatus.h:83

◆ isBad()

bool GEMOHStatus::isBad ( ) const
inline

Definition at line 73 of file GEMOHStatus.h.

References errors_.

Referenced by GEMRawToDigiModule::produce().

73 { return errors_ != 0; }
uint16_t errors_
Definition: GEMOHStatus.h:82

◆ missingVFATs()

uint32_t GEMOHStatus::missingVFATs ( ) const
inline

Definition at line 76 of file GEMOHStatus.h.

References missingVFATs_.

76 { return missingVFATs_; }
uint32_t missingVFATs_
Definition: GEMOHStatus.h:84

◆ vfatMask()

uint32_t GEMOHStatus::vfatMask ( ) const
inline

Definition at line 77 of file GEMOHStatus.h.

References vfatMask_.

77 { return vfatMask_; }
uint32_t vfatMask_
Definition: GEMOHStatus.h:85

◆ warnings()

uint8_t GEMOHStatus::warnings ( ) const
inline

Definition at line 75 of file GEMOHStatus.h.

References warnings_.

75 { return warnings_; }
uint8_t warnings_
Definition: GEMOHStatus.h:83

◆ zsMask()

uint32_t GEMOHStatus::zsMask ( ) const
inline

Definition at line 78 of file GEMOHStatus.h.

References zsMask_.

78 { return zsMask_; }
uint32_t zsMask_
Definition: GEMOHStatus.h:86

Member Data Documentation

◆ errors_

uint16_t GEMOHStatus::errors_
private

Definition at line 82 of file GEMOHStatus.h.

Referenced by errors(), GEMOHStatus(), and isBad().

◆ existVFATs_

uint32_t GEMOHStatus::existVFATs_
private

Definition at line 87 of file GEMOHStatus.h.

Referenced by existVFATs(), and GEMOHStatus().

◆ missingVFATs_

uint32_t GEMOHStatus::missingVFATs_
private

Definition at line 84 of file GEMOHStatus.h.

Referenced by GEMOHStatus(), and missingVFATs().

◆ vfatMask_

uint32_t GEMOHStatus::vfatMask_
private

Definition at line 85 of file GEMOHStatus.h.

Referenced by GEMOHStatus(), and vfatMask().

◆ warnings_

uint8_t GEMOHStatus::warnings_
private

Definition at line 83 of file GEMOHStatus.h.

Referenced by GEMOHStatus(), inValidVFAT(), and warnings().

◆ zsMask_

uint32_t GEMOHStatus::zsMask_
private

Definition at line 86 of file GEMOHStatus.h.

Referenced by GEMOHStatus(), and zsMask().