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 | 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
 
 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)
 
bool stuckData () const
 
const std::vector< GEMVFAT > * vFATs () const
 Returns the vector of VFAT data. More...
 
uint16_t vfatWordCnt () const
 
uint16_t vfatWordCntT () const
 
 ~GEMOptoHybrid ()
 

Static Public Attributes

static const int sizeGebID = 5
 

Private Attributes

uint64_t ch_
 
uint64_t ct_
 
std::vector< GEMVFATvfatd_
 

Detailed Description

Definition at line 6 of file GEMOptoHybrid.h.

Constructor & Destructor Documentation

GEMOptoHybrid::GEMOptoHybrid ( )
inline

Definition at line 45 of file GEMOptoHybrid.h.

45 : ch_(0), ct_(0){};
GEMOptoHybrid::~GEMOptoHybrid ( )
inline

Definition at line 46 of file GEMOptoHybrid.h.

References vfatd_.

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

Member Function Documentation

void GEMOptoHybrid::addVFAT ( GEMVFAT  v)
inline

Adds VFAT data to the vector.

Definition at line 93 of file GEMOptoHybrid.h.

References vfatd_.

93 { vfatd_.push_back(v); }
std::vector< GEMVFAT > vfatd_
bool GEMOptoHybrid::bxmAvV ( ) const
inline

Definition at line 74 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

74 { return GEBchamberHeader{ch_}.BxmAvV; }
bool GEMOptoHybrid::bxmVvV ( ) const
inline

Definition at line 73 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

73 { return GEBchamberHeader{ch_}.BxmVvV; }
void GEMOptoHybrid::clearVFATs ( )
inline

Clear the vector rof VFAT data.

Definition at line 97 of file GEMOptoHybrid.h.

References vfatd_.

97 { vfatd_.clear(); }
std::vector< GEMVFAT > vfatd_
bool GEMOptoHybrid::evtF ( ) const
inline

Definition at line 85 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

85 { return GEBchamberHeader{ch_}.EvtF; }
bool GEMOptoHybrid::evtNF ( ) const
inline

Definition at line 81 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

81 { return GEBchamberHeader{ch_}.EvtNF; }
bool GEMOptoHybrid::evtSzOFW ( ) const
inline

Definition at line 82 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

82 { return GEBchamberHeader{ch_}.EvtSzOFW; }
bool GEMOptoHybrid::evtSzW ( ) const
inline

Definition at line 78 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

78 { return GEBchamberHeader{ch_}.EvtSzW; }
bool GEMOptoHybrid::evUfw ( ) const
inline

Definition at line 90 of file GEMOptoHybrid.h.

90 { return false; } // to be removed
uint64_t GEMOptoHybrid::getChamberHeader ( ) const
inline

Definition at line 56 of file GEMOptoHybrid.h.

References ch_.

56 { return ch_; }
uint64_t GEMOptoHybrid::getChamberTrailer ( ) const
inline

Definition at line 67 of file GEMOptoHybrid.h.

References ct_.

67 { return ct_; }
bool GEMOptoHybrid::inF ( ) const
inline

Definition at line 84 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

84 { return GEBchamberHeader{ch_}.InF; }
bool GEMOptoHybrid::inNF ( ) const
inline

Definition at line 80 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

80 { return GEBchamberHeader{ch_}.InNF; }
uint8_t GEMOptoHybrid::inputID ( ) const
inline

Definition at line 70 of file GEMOptoHybrid.h.

References ch_.

Referenced by setChamberHeader().

70 { return GEBchamberHeader{ch_}.InputID; }
bool GEMOptoHybrid::inUfw ( ) const
inline

Definition at line 86 of file GEMOptoHybrid.h.

References ct_.

Referenced by GEMOHStatus::GEMOHStatus().

86 { return GEBchamberTrailer{ct_}.InUfw; }
bool GEMOptoHybrid::inv ( ) const
inline

Definition at line 77 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

77 { return GEBchamberHeader{ch_}.Inv; }
bool GEMOptoHybrid::l1aF ( ) const
inline

Definition at line 83 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

83 { return GEBchamberHeader{ch_}.L1aF; }
bool GEMOptoHybrid::l1aNF ( ) const
inline

Definition at line 79 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

79 { return GEBchamberHeader{ch_}.L1aNF; }
bool GEMOptoHybrid::noVFAT ( ) const
inline

Definition at line 88 of file GEMOptoHybrid.h.

88 { return false; } // to be removed
bool GEMOptoHybrid::oOScAvV ( ) const
inline

Definition at line 76 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

76 { return GEBchamberHeader{ch_}.OOScAvV; }
bool GEMOptoHybrid::oOScVvV ( ) const
inline

Definition at line 75 of file GEMOptoHybrid.h.

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

75 { return GEBchamberHeader{ch_}.OOScVvV; }
void GEMOptoHybrid::setChamberHeader ( uint64_t  word)
inline

Read chamberHeader from the block.

Definition at line 49 of file GEMOptoHybrid.h.

References ch_.

49 { ch_ = word; }
uint64_t word
void GEMOptoHybrid::setChamberHeader ( uint16_t  vfatWordCnt,
uint8_t  inputID 
)
inline

Definition at line 50 of file GEMOptoHybrid.h.

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

50  {
51  GEBchamberHeader u{0};
52  u.VfWdCnt = vfatWordCnt;
53  u.InputID = inputID;
54  ch_ = u.word;
55  }
uint8_t inputID() const
Definition: GEMOptoHybrid.h:70
uint16_t vfatWordCnt() const
Definition: GEMOptoHybrid.h:69
void GEMOptoHybrid::setChamberTrailer ( uint64_t  word)
inline

Read chamberTrailer from the block.

Definition at line 59 of file GEMOptoHybrid.h.

References ct_.

59 { ct_ = word; }
uint64_t word
void GEMOptoHybrid::setChamberTrailer ( uint32_t  ecOH,
uint16_t  bcOH,
uint16_t  vfatWordCntT 
)
inline

Definition at line 60 of file GEMOptoHybrid.h.

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

60  {
61  GEBchamberTrailer u{0};
62  u.ecOH = ecOH;
63  u.bcOH = bcOH;
64  u.VfWdCntT = vfatWordCntT;
65  ct_ = u.word;
66  }
uint16_t vfatWordCntT() const
Definition: GEMOptoHybrid.h:71
bool GEMOptoHybrid::stuckData ( ) const
inline

Definition at line 89 of file GEMOptoHybrid.h.

89 { return false; } // to be removed
const std::vector<GEMVFAT>* GEMOptoHybrid::vFATs ( ) const
inline

Returns the vector of VFAT data.

Definition at line 95 of file GEMOptoHybrid.h.

References vfatd_.

95 { return &vfatd_; }
std::vector< GEMVFAT > vfatd_
uint16_t GEMOptoHybrid::vfatWordCnt ( ) const
inline

Definition at line 69 of file GEMOptoHybrid.h.

References ch_.

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

69 { return GEBchamberHeader{ch_}.VfWdCnt; }
uint16_t GEMOptoHybrid::vfatWordCntT ( ) const
inline

Definition at line 71 of file GEMOptoHybrid.h.

References ct_.

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

71 { return GEBchamberTrailer{ct_}.VfWdCntT; }

Member Data Documentation

uint64_t GEMOptoHybrid::ch_
private
uint64_t GEMOptoHybrid::ct_
private

Definition at line 103 of file GEMOptoHybrid.h.

Referenced by getChamberTrailer(), inUfw(), setChamberTrailer(), and vfatWordCntT().

const int GEMOptoHybrid::sizeGebID = 5
static

Definition at line 99 of file GEMOptoHybrid.h.

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

Definition at line 105 of file GEMOptoHybrid.h.

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