CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::GEMOHStatus ( )
inline

Definition at line 37 of file GEMOHStatus.h.

37 {}
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::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();
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();
57  warn.EvtSzW = oh.evtSzW();
58  warnings_ = warn.wcodes;
59  }
bool l1aNF() const
Definition: GEMOptoHybrid.h:79
bool evtF() const
Definition: GEMOptoHybrid.h:85
bool oOScVvV() const
Definition: GEMOptoHybrid.h:75
bool inF() const
Definition: GEMOptoHybrid.h:84
uint16_t errors_
Definition: GEMOHStatus.h:72
bool bxmVvV() const
Definition: GEMOptoHybrid.h:73
uint16_t vfatWordCnt() const
Definition: GEMOptoHybrid.h:69
uint16_t vfatWordCntT() const
Definition: GEMOptoHybrid.h:71
bool oOScAvV() const
Definition: GEMOptoHybrid.h:76
uint8_t warnings_
Definition: GEMOHStatus.h:73
bool bxmAvV() const
Definition: GEMOptoHybrid.h:74
bool inNF() const
Definition: GEMOptoHybrid.h:80
bool inUfw() const
Definition: GEMOptoHybrid.h:86
def warn
Definition: __init__.py:21
bool inv() const
Definition: GEMOptoHybrid.h:77
bool evtSzOFW() const
Definition: GEMOptoHybrid.h:82
bool evtNF() const
Definition: GEMOptoHybrid.h:81
bool evtSzW() const
Definition: GEMOptoHybrid.h:78
bool l1aF() const
Definition: GEMOptoHybrid.h:83

Member Function Documentation

uint16_t GEMOHStatus::errors ( ) const
inline

Definition at line 68 of file GEMOHStatus.h.

References errors_.

Referenced by operator<<().

68 { return errors_; }
uint16_t errors_
Definition: GEMOHStatus.h:72
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  }
uint8_t warnings_
Definition: GEMOHStatus.h:73
def warn
Definition: __init__.py:21
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
uint8_t GEMOHStatus::warnings ( ) const
inline

Definition at line 69 of file GEMOHStatus.h.

References warnings_.

Referenced by operator<<().

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

Member Data Documentation

uint16_t GEMOHStatus::errors_
private

Definition at line 72 of file GEMOHStatus.h.

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

uint8_t GEMOHStatus::warnings_
private

Definition at line 73 of file GEMOHStatus.h.

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