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
 
uint32_t ecOH () const
 
 GEBdata ()
 
uint64_t getChamberHeader () const
 
uint64_t getChamberTrailer () const
 
uint8_t inFIFOund () const
 
uint8_t inputID () const
 
uint32_t inputStatus () const
 
uint16_t ohcrc () 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)
 
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
 
uint16_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 32 of file GEBdata.h.

Constructor & Destructor Documentation

gem::GEBdata::GEBdata ( )
inline

Definition at line 36 of file GEBdata.h.

36 {};
gem::GEBdata::~GEBdata ( )
inline

Definition at line 37 of file GEBdata.h.

37 {vfatd_.clear();}
std::vector< VFATdata > vfatd_
Definition: GEBdata.h:85

Member Function Documentation

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

Adds VFAT data to the vector.

Definition at line 75 of file GEBdata.h.

75 {vfatd_.push_back(v);}
std::vector< VFATdata > vfatd_
Definition: GEBdata.h:85
uint16_t gem::GEBdata::bcOH ( ) const
inline

Definition at line 68 of file GEBdata.h.

References gem::GEBchamberTrailer::bcOH.

68 {return GEBchamberTrailer{ct_}.bcOH;}
uint64_t ct_
Definition: GEBdata.h:83
uint32_t gem::GEBdata::ecOH ( ) const
inline

Definition at line 67 of file GEBdata.h.

References gem::GEBchamberTrailer::ecOH.

67 {return GEBchamberTrailer{ct_}.ecOH;}
uint64_t ct_
Definition: GEBdata.h:83
uint64_t gem::GEBdata::getChamberHeader ( ) const
inline

Definition at line 48 of file GEBdata.h.

48 { return ch_;}
uint64_t ch_
Definition: GEBdata.h:82
uint64_t gem::GEBdata::getChamberTrailer ( ) const
inline

Definition at line 60 of file GEBdata.h.

60 { return ct_;}
uint64_t ct_
Definition: GEBdata.h:83
uint8_t gem::GEBdata::inFIFOund ( ) const
inline

Definition at line 70 of file GEBdata.h.

References gem::GEBchamberTrailer::inFIFOund.

70 {return GEBchamberTrailer{ct_}.inFIFOund;}
uint64_t ct_
Definition: GEBdata.h:83
uint8_t gem::GEBdata::inputID ( ) const
inline

Definition at line 64 of file GEBdata.h.

References gem::GEBchamberHeader::inputID.

64 {return GEBchamberHeader{ch_}.inputID;}
uint64_t ch_
Definition: GEBdata.h:82
uint32_t gem::GEBdata::inputStatus ( ) const
inline

Definition at line 62 of file GEBdata.h.

References gem::GEBchamberHeader::inputStatus.

62 {return GEBchamberHeader{ch_}.inputStatus;}
uint64_t ch_
Definition: GEBdata.h:82
uint16_t gem::GEBdata::ohcrc ( ) const
inline

Definition at line 72 of file GEBdata.h.

References gem::GEBchamberTrailer::ohcrc.

72 {return GEBchamberTrailer{ct_}.ohcrc;}
uint64_t ct_
Definition: GEBdata.h:83
void gem::GEBdata::setChamberHeader ( uint64_t  word)
inline

Read chamberHeader from the block.

Definition at line 40 of file GEBdata.h.

References gem::GEBchamberHeader::word.

40 { ch_ = word;}
uint64_t ch_
Definition: GEBdata.h:82
void gem::GEBdata::setChamberHeader ( uint16_t  vfatWordCnt,
uint8_t  inputID 
)
inline

Definition at line 41 of file GEBdata.h.

References gem::GEBchamberHeader::inputID, gem::GEBchamberHeader::vfatWordCnt, and gem::GEBchamberHeader::word.

42  {
43  GEBchamberHeader u;
44  u.vfatWordCnt = vfatWordCnt;
45  u.inputID = inputID;
46  ch_ = u.word;
47  }
uint64_t ch_
Definition: GEBdata.h:82
uint8_t inputID() const
Definition: GEBdata.h:64
uint16_t vfatWordCnt() const
Definition: GEBdata.h:63
void gem::GEBdata::setChamberTrailer ( uint64_t  word)
inline

Read chamberTrailer from the block.

Definition at line 51 of file GEBdata.h.

References gem::GEBchamberHeader::word.

51 { ct_ = word;}
uint64_t ct_
Definition: GEBdata.h:83
void gem::GEBdata::setChamberTrailer ( uint32_t  ecOH,
uint16_t  bcOH,
uint16_t  vfatWordCntT 
)
inline

Definition at line 52 of file GEBdata.h.

References gem::GEBchamberTrailer::bcOH, gem::GEBchamberTrailer::ecOH, gem::GEBchamberTrailer::vfatWordCntT, and gem::GEBchamberTrailer::word.

53  {
54  GEBchamberTrailer u;
55  u.ecOH = ecOH;
56  u.bcOH = bcOH;
57  u.vfatWordCntT = vfatWordCntT;
58  ct_ = u.word;
59  }
uint32_t ecOH() const
Definition: GEBdata.h:67
uint64_t ct_
Definition: GEBdata.h:83
uint16_t bcOH() const
Definition: GEBdata.h:68
uint16_t vfatWordCntT() const
Definition: GEBdata.h:71
uint8_t gem::GEBdata::stuckData ( ) const
inline

Definition at line 69 of file GEBdata.h.

References gem::GEBchamberTrailer::stuckData.

69 {return GEBchamberTrailer{ct_}.stuckData;}
uint64_t ct_
Definition: GEBdata.h:83
const std::vector<VFATdata>* gem::GEBdata::vFATs ( ) const
inline

Returns the vector of FVAT data.

Definition at line 77 of file GEBdata.h.

77 {return &vfatd_;}
std::vector< VFATdata > vfatd_
Definition: GEBdata.h:85
uint16_t gem::GEBdata::vfatWordCnt ( ) const
inline

Definition at line 63 of file GEBdata.h.

References gem::GEBchamberHeader::vfatWordCnt.

63 {return GEBchamberHeader{ch_}.vfatWordCnt;}
uint64_t ch_
Definition: GEBdata.h:82
uint16_t gem::GEBdata::vfatWordCntT ( ) const
inline

Definition at line 71 of file GEBdata.h.

References gem::GEBchamberTrailer::vfatWordCntT.

71 {return GEBchamberTrailer{ct_}.vfatWordCntT;}
uint64_t ct_
Definition: GEBdata.h:83
uint16_t gem::GEBdata::zeroSupWordsCnt ( ) const
inline

Definition at line 65 of file GEBdata.h.

References gem::GEBchamberHeader::zeroSupWordsCnt.

65 {return GEBchamberHeader{ch_}.zeroSupWordsCnt;}
uint64_t ch_
Definition: GEBdata.h:82

Member Data Documentation

uint64_t gem::GEBdata::ch_
private

Definition at line 82 of file GEBdata.h.

uint64_t gem::GEBdata::ct_
private

Definition at line 83 of file GEBdata.h.

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

Definition at line 79 of file GEBdata.h.

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

Definition at line 85 of file GEBdata.h.