CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCBadCFEBTimeSlice Class Reference

#include <CSCBadCFEBTimeSlice.h>

Public Member Functions

bool check () const
 
unsigned sizeInWords () const
 
const CSCBadCFEBWordword (int i) const
 count from zero More...
 

Private Attributes

CSCBadCFEBWord theWords [4]
 

Detailed Description

When a time slice is bad, it only has four words, and they all start with "B"

Definition at line 11 of file CSCBadCFEBTimeSlice.h.

Member Function Documentation

◆ check()

bool CSCBadCFEBTimeSlice::check ( ) const

Definition at line 9 of file CSCBadCFEBTimeSlice.cc.

References CSCBadCFEBWord::check(), mps_fire::i, mps_fire::result, and theWords.

Referenced by CSCCFEBData::CSCCFEBData().

9  {
10  // demand all four words check out
11  bool result = true;
12  for (int i = 0; i < 4; ++i) {
13  result &= theWords[i].check();
14  }
15  return result;
16 }
bool check() const
make sure it really does start with a "B"
CSCBadCFEBWord theWords[4]

◆ sizeInWords()

unsigned CSCBadCFEBTimeSlice::sizeInWords ( ) const
inline

Definition at line 13 of file CSCBadCFEBTimeSlice.h.

Referenced by CSCCFEBData::CSCCFEBData().

13 { return 4; }

◆ word()

const CSCBadCFEBWord & CSCBadCFEBTimeSlice::word ( int  i) const

count from zero

Definition at line 4 of file CSCBadCFEBTimeSlice.cc.

References cms::cuda::assert(), mps_fire::i, and theWords.

Referenced by CSCCFEBData::CSCCFEBData().

4  {
5  assert(i >= 0 && i < 4);
6  return theWords[i];
7 }
assert(be >=bs)
CSCBadCFEBWord theWords[4]

Member Data Documentation

◆ theWords

CSCBadCFEBWord CSCBadCFEBTimeSlice::theWords[4]
private

Definition at line 20 of file CSCBadCFEBTimeSlice.h.

Referenced by check(), and word().