CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Attributes
gem::GEBdata Class Reference

#include <GEBdata.h>

Public Member Functions

void addVFAT (VFATdata 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
 
 GEBdata ()
 
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 (uint16_t vfatWordCnt, uint8_t inputID)
 
void setChamberHeader (uint64_t word)
 Read chamberHeader from the block. More...
 
void setChamberTrailer (uint32_t ecOH, uint16_t bcOH, uint16_t vfatWordCntT)
 
void setChamberTrailer (uint64_t word)
 Read chamberTrailer from the block. More...
 
bool stuckData () const
 
const std::vector< VFATdata > * vFATs () const
 Returns the vector of VFAT data. More...
 
uint16_t vfatWordCnt () const
 
uint16_t vfatWordCntT () const
 
 ~GEBdata ()
 

Static Public Attributes

static const int sizeGebID = 5
 

Private Attributes

uint64_t ch_
 
uint64_t ct_
 
std::vector< VFATdatavfatd_
 

Detailed Description

Definition at line 45 of file GEBdata.h.

Constructor & Destructor Documentation

◆ GEBdata()

gem::GEBdata::GEBdata ( )
inline

Definition at line 47 of file GEBdata.h.

47 : ch_(0), ct_(0){};

◆ ~GEBdata()

gem::GEBdata::~GEBdata ( )
inline

Definition at line 48 of file GEBdata.h.

48 { vfatd_.clear(); }

References vfatd_.

Member Function Documentation

◆ addVFAT()

void gem::GEBdata::addVFAT ( VFATdata  v)
inline

Adds VFAT data to the vector.

Definition at line 95 of file GEBdata.h.

95 { vfatd_.push_back(v); }

References findQualityFiles::v, and vfatd_.

◆ bxmAvV()

bool gem::GEBdata::bxmAvV ( ) const
inline

Definition at line 76 of file GEBdata.h.

76 { return GEBchamberHeader{ch_}.BxmAvV; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ bxmVvV()

bool gem::GEBdata::bxmVvV ( ) const
inline

Definition at line 75 of file GEBdata.h.

75 { return GEBchamberHeader{ch_}.BxmVvV; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ clearVFATs()

void gem::GEBdata::clearVFATs ( )
inline

Clear the vector rof VFAT data.

Definition at line 99 of file GEBdata.h.

99 { vfatd_.clear(); }

References vfatd_.

◆ evtF()

bool gem::GEBdata::evtF ( ) const
inline

Definition at line 87 of file GEBdata.h.

87 { return GEBchamberHeader{ch_}.EvtF; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ evtNF()

bool gem::GEBdata::evtNF ( ) const
inline

Definition at line 83 of file GEBdata.h.

83 { return GEBchamberHeader{ch_}.EvtNF; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ evtSzOFW()

bool gem::GEBdata::evtSzOFW ( ) const
inline

Definition at line 84 of file GEBdata.h.

84 { return GEBchamberHeader{ch_}.EvtSzOFW; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ evtSzW()

bool gem::GEBdata::evtSzW ( ) const
inline

Definition at line 80 of file GEBdata.h.

80 { return GEBchamberHeader{ch_}.EvtSzW; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ evUfw()

bool gem::GEBdata::evUfw ( ) const
inline

Definition at line 92 of file GEBdata.h.

92 { return false; } // to be removed

◆ getChamberHeader()

uint64_t gem::GEBdata::getChamberHeader ( ) const
inline

Definition at line 58 of file GEBdata.h.

58 { return ch_; }

References ch_.

◆ getChamberTrailer()

uint64_t gem::GEBdata::getChamberTrailer ( ) const
inline

Definition at line 69 of file GEBdata.h.

69 { return ct_; }

References ct_.

◆ inF()

bool gem::GEBdata::inF ( ) const
inline

Definition at line 86 of file GEBdata.h.

86 { return GEBchamberHeader{ch_}.InF; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ inNF()

bool gem::GEBdata::inNF ( ) const
inline

Definition at line 82 of file GEBdata.h.

82 { return GEBchamberHeader{ch_}.InNF; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ inputID()

uint8_t gem::GEBdata::inputID ( ) const
inline

Definition at line 72 of file GEBdata.h.

72 { return GEBchamberHeader{ch_}.InputID; }

References ch_.

Referenced by setChamberHeader().

◆ inUfw()

bool gem::GEBdata::inUfw ( ) const
inline

Definition at line 88 of file GEBdata.h.

88 { return GEBchamberTrailer{ct_}.InUfw; }

References ct_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ inv()

bool gem::GEBdata::inv ( ) const
inline

Definition at line 79 of file GEBdata.h.

79 { return GEBchamberHeader{ch_}.Inv; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ l1aF()

bool gem::GEBdata::l1aF ( ) const
inline

Definition at line 85 of file GEBdata.h.

85 { return GEBchamberHeader{ch_}.L1aF; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ l1aNF()

bool gem::GEBdata::l1aNF ( ) const
inline

Definition at line 81 of file GEBdata.h.

81 { return GEBchamberHeader{ch_}.L1aNF; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ noVFAT()

bool gem::GEBdata::noVFAT ( ) const
inline

Definition at line 90 of file GEBdata.h.

90 { return false; } // to be removed

◆ oOScAvV()

bool gem::GEBdata::oOScAvV ( ) const
inline

Definition at line 78 of file GEBdata.h.

78 { return GEBchamberHeader{ch_}.OOScAvV; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ oOScVvV()

bool gem::GEBdata::oOScVvV ( ) const
inline

Definition at line 77 of file GEBdata.h.

77 { return GEBchamberHeader{ch_}.OOScVvV; }

References ch_.

Referenced by GEMOHStatus::GEMOHStatus().

◆ setChamberHeader() [1/2]

void gem::GEBdata::setChamberHeader ( uint16_t  vfatWordCnt,
uint8_t  inputID 
)
inline

Definition at line 52 of file GEBdata.h.

52  {
53  GEBchamberHeader u{0};
54  u.VfWdCnt = vfatWordCnt;
55  u.InputID = inputID;
56  ch_ = u.word;
57  }

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

◆ setChamberHeader() [2/2]

void gem::GEBdata::setChamberHeader ( uint64_t  word)
inline

Read chamberHeader from the block.

Definition at line 51 of file GEBdata.h.

51 { ch_ = word; }

References ch_.

◆ setChamberTrailer() [1/2]

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

Definition at line 62 of file GEBdata.h.

62  {
63  GEBchamberTrailer u{0};
64  u.ecOH = ecOH;
65  u.bcOH = bcOH;
66  u.VfWdCntT = vfatWordCntT;
67  ct_ = u.word;
68  }

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

◆ setChamberTrailer() [2/2]

void gem::GEBdata::setChamberTrailer ( uint64_t  word)
inline

Read chamberTrailer from the block.

Definition at line 61 of file GEBdata.h.

61 { ct_ = word; }

References ct_.

◆ stuckData()

bool gem::GEBdata::stuckData ( ) const
inline

Definition at line 91 of file GEBdata.h.

91 { return false; } // to be removed

◆ vFATs()

const std::vector<VFATdata>* gem::GEBdata::vFATs ( ) const
inline

Returns the vector of VFAT data.

Definition at line 97 of file GEBdata.h.

97 { return &vfatd_; }

References vfatd_.

◆ vfatWordCnt()

uint16_t gem::GEBdata::vfatWordCnt ( ) const
inline

Definition at line 71 of file GEBdata.h.

71 { return GEBchamberHeader{ch_}.VfWdCnt; }

References ch_.

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

◆ vfatWordCntT()

uint16_t gem::GEBdata::vfatWordCntT ( ) const
inline

Definition at line 73 of file GEBdata.h.

73 { return GEBchamberTrailer{ct_}.VfWdCntT; }

References ct_.

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

Member Data Documentation

◆ ch_

uint64_t gem::GEBdata::ch_
private

◆ ct_

uint64_t gem::GEBdata::ct_
private

Definition at line 105 of file GEBdata.h.

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

◆ sizeGebID

const int gem::GEBdata::sizeGebID = 5
static

Definition at line 101 of file GEBdata.h.

◆ vfatd_

std::vector<VFATdata> gem::GEBdata::vfatd_
private

Definition at line 107 of file GEBdata.h.

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

gem::GEBdata::inputID
uint8_t inputID() const
Definition: GEBdata.h:72
gem::GEBdata::ct_
uint64_t ct_
Definition: GEBdata.h:105
gem::GEBdata::vfatd_
std::vector< VFATdata > vfatd_
Definition: GEBdata.h:107
findQualityFiles.v
v
Definition: findQualityFiles.py:179
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
gem::GEBdata::vfatWordCnt
uint16_t vfatWordCnt() const
Definition: GEBdata.h:71
gem::GEBdata::vfatWordCntT
uint16_t vfatWordCntT() const
Definition: GEBdata.h:73
gem::GEBdata::ch_
uint64_t ch_
Definition: GEBdata.h:104