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...
 
uint16_t bcOH () const
 
uint8_t bxmAvV () const
 
uint16_t bxmVvV () const
 
uint16_t crc () const
 
uint32_t ecOH () const
 
uint8_t evtF () const
 
uint8_t evtNF () const
 
uint8_t evtSzOFW () const
 
uint8_t evtSzW () const
 
uint8_t evUfw () const
 
 GEBdata ()
 
uint64_t getChamberHeader () const
 
uint64_t getChamberTrailer () const
 
uint8_t inF () const
 
uint8_t inNF () const
 
uint8_t inputID () const
 
uint8_t inUfw () const
 
uint8_t l1aF () const
 
uint8_t l1aNF () const
 
uint8_t noVFAT () const
 
uint8_t oOScAvV () const
 
uint8_t 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...
 
uint8_t stuckData () const
 
const std::vector< VFATdata > * vFATs () const
 Returns the vector of FVAT data. More...
 
uint16_t vfatWordCnt () const
 
uint16_t vfatWordCntT () const
 
uint32_t zeroSupWordsCnt () 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 97 of file GEBdata.h.

97 { vfatd_.push_back(v); }

References findQualityFiles::v, and vfatd_.

◆ bcOH()

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

Definition at line 89 of file GEBdata.h.

89 { return GEBchamberTrailer{ct_}.bcOH; }

References ct_.

Referenced by setChamberTrailer().

◆ bxmAvV()

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

Definition at line 72 of file GEBdata.h.

72 { return GEBchamberHeader{ch_}.BxmAvV; }

References ch_.

◆ bxmVvV()

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

Definition at line 71 of file GEBdata.h.

71 { return GEBchamberHeader{ch_}.BxmVvV; }

References ch_.

◆ crc()

uint16_t gem::GEBdata::crc ( void  ) const
inline

Definition at line 94 of file GEBdata.h.

94 { return GEBchamberTrailer{ct_}.crc16; }

References ct_.

◆ ecOH()

uint32_t gem::GEBdata::ecOH ( ) const
inline

Definition at line 88 of file GEBdata.h.

88 { return GEBchamberTrailer{ct_}.ecOH; }

References ct_.

Referenced by setChamberTrailer().

◆ evtF()

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

Definition at line 83 of file GEBdata.h.

83 { return GEBchamberHeader{ch_}.EvtF; }

References ch_.

◆ evtNF()

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

Definition at line 79 of file GEBdata.h.

79 { return GEBchamberHeader{ch_}.EvtNF; }

References ch_.

◆ evtSzOFW()

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

Definition at line 80 of file GEBdata.h.

80 { return GEBchamberHeader{ch_}.EvtSzOFW; }

References ch_.

◆ evtSzW()

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

Definition at line 76 of file GEBdata.h.

76 { return GEBchamberHeader{ch_}.EvtSzW; }

References ch_.

◆ evUfw()

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

Definition at line 92 of file GEBdata.h.

92 { return GEBchamberTrailer{ct_}.EvUfw; }

References ct_.

◆ 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()

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

Definition at line 82 of file GEBdata.h.

82 { return GEBchamberHeader{ch_}.InF; }

References ch_.

◆ inNF()

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

Definition at line 78 of file GEBdata.h.

78 { return GEBchamberHeader{ch_}.InNF; }

References ch_.

◆ inputID()

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

Definition at line 85 of file GEBdata.h.

85 { return GEBchamberHeader{ch_}.inputID; }

References ch_.

Referenced by setChamberHeader().

◆ inUfw()

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

Definition at line 90 of file GEBdata.h.

90 { return GEBchamberTrailer{ct_}.InUfw; }

References ct_.

◆ l1aF()

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

Definition at line 81 of file GEBdata.h.

81 { return GEBchamberHeader{ch_}.L1aF; }

References ch_.

◆ l1aNF()

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

Definition at line 77 of file GEBdata.h.

77 { return GEBchamberHeader{ch_}.L1aNF; }

References ch_.

◆ noVFAT()

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

Definition at line 75 of file GEBdata.h.

75 { return GEBchamberHeader{ch_}.noVFAT; }

References ch_.

◆ oOScAvV()

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

Definition at line 74 of file GEBdata.h.

74 { return GEBchamberHeader{ch_}.OOScAvV; }

References ch_.

◆ oOScVvV()

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

Definition at line 73 of file GEBdata.h.

73 { return GEBchamberHeader{ch_}.OOScVvV; }

References ch_.

◆ 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 bcOH(), ct_, gem::GEBchamberTrailer::ecOH, 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()

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

Definition at line 91 of file GEBdata.h.

91 { return GEBchamberTrailer{ct_}.SkD; }

References ct_.

◆ vFATs()

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

Returns the vector of FVAT data.

Definition at line 99 of file GEBdata.h.

99 { return &vfatd_; }

References vfatd_.

◆ vfatWordCnt()

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

Definition at line 84 of file GEBdata.h.

84 { return GEBchamberHeader{ch_}.VfWdCnt; }

References ch_.

Referenced by setChamberHeader().

◆ vfatWordCntT()

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

Definition at line 93 of file GEBdata.h.

93 { return GEBchamberTrailer{ct_}.VfWdCntT; }

References ct_.

Referenced by setChamberTrailer().

◆ zeroSupWordsCnt()

uint32_t gem::GEBdata::zeroSupWordsCnt ( ) const
inline

Definition at line 86 of file GEBdata.h.

86 { return GEBchamberHeader{ch_}.zeroSupWordsCnt; }

References ch_.

Member Data Documentation

◆ ch_

uint64_t gem::GEBdata::ch_
private

◆ ct_

uint64_t gem::GEBdata::ct_
private

◆ 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(), vFATs(), and ~GEBdata().

gem::GEBdata::inputID
uint8_t inputID() const
Definition: GEBdata.h:85
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:84
gem::GEBdata::vfatWordCntT
uint16_t vfatWordCntT() const
Definition: GEBdata.h:93
gem::GEBdata::ecOH
uint32_t ecOH() const
Definition: GEBdata.h:88
gem::GEBdata::bcOH
uint16_t bcOH() const
Definition: GEBdata.h:89
gem::GEBdata::ch_
uint64_t ch_
Definition: GEBdata.h:104