CMS 3D CMS Logo

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

#include <GEMOptoHybrid.h>

Classes

union  GEBchamberHeader
 
union  GEBchamberTrailer
 

Public Member Functions

void addVFAT (GEMVFAT v)
 Adds VFAT data to the vector. More...
 
bool bxmAvV () const
 
bool bxmVvV () const
 
void clearVFATs ()
 Clear the vector rof VFAT data. More...
 
bool evtF () const
 
bool evtNF () const
 
bool evtSzOFW () const
 
bool evtSzW () const
 
bool evUfw () const
 
uint32_t existVFATs () const
 
 GEMOptoHybrid ()
 
uint64_t getChamberHeader () const
 
uint64_t getChamberTrailer () const
 
bool inF () const
 
bool inNF () const
 
uint8_t inputID () const
 
bool inUfw () const
 
bool inv () const
 
bool l1aF () const
 
bool l1aNF () const
 
bool noVFAT () const
 
bool oOScAvV () const
 
bool oOScVvV () const
 
void setChamberHeader (uint64_t word)
 Read chamberHeader from the block. More...
 
void setChamberHeader (uint16_t vfatWordCnt, uint8_t inputID)
 
void setChamberTrailer (uint64_t word)
 Read chamberTrailer from the block. More...
 
void setChamberTrailer (uint32_t ecOH, uint16_t bcOH, uint16_t vfatWordCntT)
 
void setVersion (uint8_t i)
 
bool stuckData () const
 
uint8_t version () const
 
uint32_t vfatMask () const
 
const std::vector< GEMVFAT > * vFATs () const
 Returns the vector of VFAT data. More...
 
uint16_t vfatWordCnt () const
 
uint16_t vfatWordCntT () const
 
uint32_t zsMask () const
 
 ~GEMOptoHybrid ()
 

Static Public Attributes

static const int sizeGebID = 5
 

Private Attributes

uint64_t ch_
 
uint64_t ct_
 
uint32_t existVFATs_
 
uint8_t ver_
 
std::vector< GEMVFATvfatd_
 

Detailed Description

Definition at line 6 of file GEMOptoHybrid.h.

Constructor & Destructor Documentation

◆ GEMOptoHybrid()

GEMOptoHybrid::GEMOptoHybrid ( )
inline

Definition at line 76 of file GEMOptoHybrid.h.

76 : ch_(0), ct_(0), existVFATs_(0) {}
uint32_t existVFATs_

◆ ~GEMOptoHybrid()

GEMOptoHybrid::~GEMOptoHybrid ( )
inline

Definition at line 77 of file GEMOptoHybrid.h.

References vfatd_.

77 { vfatd_.clear(); }
std::vector< GEMVFAT > vfatd_

Member Function Documentation

◆ addVFAT()

void GEMOptoHybrid::addVFAT ( GEMVFAT  v)
inline

Adds VFAT data to the vector.

Definition at line 150 of file GEMOptoHybrid.h.

References existVFATs_, findQualityFiles::v, and vfatd_.

150  {
151  existVFATs_ = existVFATs_ | (0x1 << v.vfatId());
152  vfatd_.push_back(v);
153  }
uint32_t existVFATs_
std::vector< GEMVFAT > vfatd_

◆ bxmAvV()

bool GEMOptoHybrid::bxmAvV ( ) const
inline

Definition at line 121 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

121 { return GEBchamberHeader{ch_}.BxmAvV; }

◆ bxmVvV()

bool GEMOptoHybrid::bxmVvV ( ) const
inline

Definition at line 120 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

120 { return GEBchamberHeader{ch_}.BxmVvV; }

◆ clearVFATs()

void GEMOptoHybrid::clearVFATs ( )
inline

Clear the vector rof VFAT data.

Definition at line 158 of file GEMOptoHybrid.h.

References vfatd_.

158 { vfatd_.clear(); }
std::vector< GEMVFAT > vfatd_

◆ evtF()

bool GEMOptoHybrid::evtF ( ) const
inline

Definition at line 130 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

130 { return GEBchamberHeader{ch_}.EvtF; }

◆ evtNF()

bool GEMOptoHybrid::evtNF ( ) const
inline

Definition at line 127 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

127 { return GEBchamberHeader{ch_}.EvtNF; }

◆ evtSzOFW()

bool GEMOptoHybrid::evtSzOFW ( ) const
inline

Definition at line 128 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

128 { return GEBchamberHeader{ch_}.EvtSzOFW; }

◆ evtSzW()

bool GEMOptoHybrid::evtSzW ( ) const
inline

Definition at line 125 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

125 { return GEBchamberHeader{ch_}.EvtSzW; }

◆ evUfw()

bool GEMOptoHybrid::evUfw ( ) const
inline

Definition at line 139 of file GEMOptoHybrid.h.

139 { return false; } // to be removed

◆ existVFATs()

uint32_t GEMOptoHybrid::existVFATs ( ) const
inline

Definition at line 156 of file GEMOptoHybrid.h.

References existVFATs_.

Referenced by GEMOHStatus::GEMOHStatus().

156 { return existVFATs_; }
uint32_t existVFATs_

◆ getChamberHeader()

uint64_t GEMOptoHybrid::getChamberHeader ( ) const
inline

Definition at line 90 of file GEMOptoHybrid.h.

References ch_.

90 { return ch_; }

◆ getChamberTrailer()

uint64_t GEMOptoHybrid::getChamberTrailer ( ) const
inline

Definition at line 101 of file GEMOptoHybrid.h.

References ct_.

101 { return ct_; }

◆ inF()

bool GEMOptoHybrid::inF ( ) const
inline

Definition at line 129 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

129 { return GEBchamberHeader{ch_}.InF; }

◆ inNF()

bool GEMOptoHybrid::inNF ( ) const
inline

Definition at line 126 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

126 { return GEBchamberHeader{ch_}.InNF; }

◆ inputID()

uint8_t GEMOptoHybrid::inputID ( ) const
inline

Definition at line 109 of file GEMOptoHybrid.h.

References ch_, and ver_.

Referenced by setChamberHeader().

109  {
110  if (ver_ == 0)
111  return GEBchamberHeader{ch_}.InputID;
112  return GEBchamberHeader{ch_}.InputIDv302;
113  }

◆ inUfw()

bool GEMOptoHybrid::inUfw ( ) const
inline

Definition at line 131 of file GEMOptoHybrid.h.

References ct_, and ver_.

Referenced by GEMOHStatus::GEMOHStatus().

131  {
132  if (ver_ == 0)
133  return GEBchamberTrailer{ct_}.InUfw;
134  return GEBchamberTrailer{ct_}.InUfwV302;
135  }

◆ inv()

bool GEMOptoHybrid::inv ( ) const
inline

Definition at line 124 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

124 { return GEBchamberHeader{ch_}.Inv; }

◆ l1aF()

bool GEMOptoHybrid::l1aF ( ) const
inline

Definition at line 143 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

143 { return GEBchamberHeader{ch_}.L1aF; }

◆ l1aNF()

bool GEMOptoHybrid::l1aNF ( ) const
inline

Definition at line 142 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

142 { return GEBchamberHeader{ch_}.L1aNF; }

◆ noVFAT()

bool GEMOptoHybrid::noVFAT ( ) const
inline

Definition at line 137 of file GEMOptoHybrid.h.

137 { return false; } // to be removed

◆ oOScAvV()

bool GEMOptoHybrid::oOScAvV ( ) const
inline

Definition at line 123 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

123 { return GEBchamberHeader{ch_}.OOScAvV; }

◆ oOScVvV()

bool GEMOptoHybrid::oOScVvV ( ) const
inline

Definition at line 122 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

122 { return GEBchamberHeader{ch_}.OOScVvV; }

◆ setChamberHeader() [1/2]

void GEMOptoHybrid::setChamberHeader ( uint64_t  word)
inline

Read chamberHeader from the block.

Definition at line 83 of file GEMOptoHybrid.h.

References ch_.

83 { ch_ = word; }
uint64_t word

◆ setChamberHeader() [2/2]

void GEMOptoHybrid::setChamberHeader ( uint16_t  vfatWordCnt,
uint8_t  inputID 
)
inline

Definition at line 84 of file GEMOptoHybrid.h.

References ch_, inputID(), vfatWordCnt(), and GEMOptoHybrid::GEBchamberHeader::VfWdCnt.

84  {
85  GEBchamberHeader u{0};
86  u.VfWdCnt = vfatWordCnt;
87  u.InputID = inputID;
88  ch_ = u.word;
89  }
uint16_t vfatWordCnt() const
uint8_t inputID() const

◆ setChamberTrailer() [1/2]

void GEMOptoHybrid::setChamberTrailer ( uint64_t  word)
inline

Read chamberTrailer from the block.

Definition at line 93 of file GEMOptoHybrid.h.

References ct_.

93 { ct_ = word; }
uint64_t word

◆ setChamberTrailer() [2/2]

void GEMOptoHybrid::setChamberTrailer ( uint32_t  ecOH,
uint16_t  bcOH,
uint16_t  vfatWordCntT 
)
inline

Definition at line 94 of file GEMOptoHybrid.h.

References ct_, GEMOptoHybrid::GEBchamberTrailer::ecOH, and vfatWordCntT().

94  {
95  GEBchamberTrailer u{0};
96  u.ecOH = ecOH;
97  u.bcOH = bcOH;
98  u.VfWdCntT = vfatWordCntT;
99  ct_ = u.word;
100  }
uint16_t vfatWordCntT() const

◆ setVersion()

void GEMOptoHybrid::setVersion ( uint8_t  i)
inline

Definition at line 79 of file GEMOptoHybrid.h.

References mps_fire::i, and ver_.

79 { ver_ = i; }

◆ stuckData()

bool GEMOptoHybrid::stuckData ( ) const
inline

Definition at line 138 of file GEMOptoHybrid.h.

138 { return false; } // to be removed

◆ version()

uint8_t GEMOptoHybrid::version ( ) const
inline

◆ vfatMask()

uint32_t GEMOptoHybrid::vfatMask ( ) const
inline

Definition at line 146 of file GEMOptoHybrid.h.

References ct_.

Referenced by GEMOHStatus::GEMOHStatus(), and GEMVFATStatus::GEMVFATStatus().

146 { return GEBchamberTrailer{ct_}.VFATMask; }

◆ vFATs()

const std::vector<GEMVFAT>* GEMOptoHybrid::vFATs ( ) const
inline

Returns the vector of VFAT data.

Definition at line 155 of file GEMOptoHybrid.h.

References vfatd_.

155 { return &vfatd_; }
std::vector< GEMVFAT > vfatd_

◆ vfatWordCnt()

uint16_t GEMOptoHybrid::vfatWordCnt ( ) const
inline

Definition at line 104 of file GEMOptoHybrid.h.

References ch_, and ver_.

Referenced by GEMOHStatus::GEMOHStatus(), and setChamberHeader().

104  {
105  if (ver_ == 0)
106  return GEBchamberHeader{ch_}.VfWdCnt;
107  return GEBchamberHeader{ch_}.VfWdCntV302;
108  }

◆ vfatWordCntT()

uint16_t GEMOptoHybrid::vfatWordCntT ( ) const
inline

Definition at line 114 of file GEMOptoHybrid.h.

References ct_, and ver_.

Referenced by GEMOHStatus::GEMOHStatus(), and setChamberTrailer().

114  {
115  if (ver_ == 0)
116  return GEBchamberTrailer{ct_}.VfWdCntT;
117  return GEBchamberTrailer{ct_}.VfWdCntTv302;
118  }

◆ zsMask()

uint32_t GEMOptoHybrid::zsMask ( ) const
inline

Definition at line 147 of file GEMOptoHybrid.h.

References ct_.

Referenced by GEMOHStatus::GEMOHStatus(), and GEMVFATStatus::GEMVFATStatus().

147 { return GEBchamberTrailer{ct_}.ZSMask; }

Member Data Documentation

◆ ch_

uint64_t GEMOptoHybrid::ch_
private

◆ ct_

uint64_t GEMOptoHybrid::ct_
private

◆ existVFATs_

uint32_t GEMOptoHybrid::existVFATs_
private

Definition at line 168 of file GEMOptoHybrid.h.

Referenced by addVFAT(), and existVFATs().

◆ sizeGebID

const int GEMOptoHybrid::sizeGebID = 5
static

Definition at line 160 of file GEMOptoHybrid.h.

◆ ver_

uint8_t GEMOptoHybrid::ver_
private

Definition at line 163 of file GEMOptoHybrid.h.

Referenced by inputID(), inUfw(), setVersion(), version(), vfatWordCnt(), and vfatWordCntT().

◆ vfatd_

std::vector<GEMVFAT> GEMOptoHybrid::vfatd_
private

Definition at line 170 of file GEMOptoHybrid.h.

Referenced by addVFAT(), clearVFATs(), vFATs(), and ~GEMOptoHybrid().