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
 
 GEMOHStatus ()
 
 GEMOHStatus (const GEMOptoHybrid &oh)
 
void inValidVFAT ()
 
bool isBad () const
 
uint8_t warnings () const
 

Private Attributes

uint16_t errors_
 
uint8_t warnings_
 

Detailed Description

Definition at line 8 of file GEMOHStatus.h.

Constructor & Destructor Documentation

◆ GEMOHStatus() [1/2]

GEMOHStatus::GEMOHStatus ( )
inline

Definition at line 37 of file GEMOHStatus.h.

37 {}

◆ GEMOHStatus() [2/2]

GEMOHStatus::GEMOHStatus ( const GEMOptoHybrid oh)
inline

Definition at line 38 of file GEMOHStatus.h.

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

38  {
39  Errors error{0};
40  error.EvtF = oh.evtF();
41  error.InF = oh.inF();
42  error.L1aF = (oh.l1aF() and (oh.version() == 0));
43  error.EvtSzOFW = oh.evtSzOFW();
44  error.Inv = oh.inv();
45  error.OOScAvV = oh.oOScAvV();
46  error.OOScVvV = oh.oOScVvV();
47  error.BxmAvV = oh.bxmAvV();
48  error.BxmVvV = oh.bxmVvV();
49  error.InUfw = oh.inUfw();
50  error.badVFatCount = oh.vfatWordCnt() != oh.vfatWordCntT();
51  errors_ = error.codes;
52 
53  Warnings warn{0};
54  warn.EvtNF = oh.evtNF();
55  warn.InNF = oh.inNF();
56  warn.L1aNF = (oh.l1aNF() and (oh.version() == 0));
57  warn.EvtSzW = oh.evtSzW();
58  warnings_ = warn.wcodes;
59  }
bool l1aNF() const
bool oOScVvV() const
uint16_t vfatWordCntT() const
bool evtF() 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
bool inUfw() const
bool evtNF() const
uint16_t errors_
Definition: GEMOHStatus.h:72
bool oOScAvV() const
bool evtSzW() const
bool inv() const
bool inNF() const
uint8_t warnings_
Definition: GEMOHStatus.h:73
bool inF() const
bool evtSzOFW() const
bool l1aF() const

Member Function Documentation

◆ errors()

uint16_t GEMOHStatus::errors ( ) const
inline

Definition at line 68 of file GEMOHStatus.h.

References errors_.

68 { return errors_; }
uint16_t errors_
Definition: GEMOHStatus.h:72

◆ inValidVFAT()

void GEMOHStatus::inValidVFAT ( )
inline

Definition at line 61 of file GEMOHStatus.h.

References python::warn(), and warnings_.

Referenced by GEMRawToDigiModule::produce().

61  {
62  Warnings warn{warnings_};
63  warn.InValidVFAT = 1;
64  warnings_ = warn.wcodes;
65  }
def warn(args, kwargs)
Definition: __init__.py:21
uint8_t warnings_
Definition: GEMOHStatus.h:73

◆ isBad()

bool GEMOHStatus::isBad ( ) const
inline

Definition at line 67 of file GEMOHStatus.h.

References errors_.

Referenced by GEMRawToDigiModule::produce().

67 { return errors_ != 0; }
uint16_t errors_
Definition: GEMOHStatus.h:72

◆ warnings()

uint8_t GEMOHStatus::warnings ( ) const
inline

Definition at line 69 of file GEMOHStatus.h.

References warnings_.

69 { return warnings_; }
uint8_t warnings_
Definition: GEMOHStatus.h:73

Member Data Documentation

◆ errors_

uint16_t GEMOHStatus::errors_
private

Definition at line 72 of file GEMOHStatus.h.

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

◆ warnings_

uint8_t GEMOHStatus::warnings_
private

Definition at line 73 of file GEMOHStatus.h.

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