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.

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 }

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

Referenced by CSCCFEBData::CSCCFEBData().

◆ sizeInWords()

unsigned CSCBadCFEBTimeSlice::sizeInWords ( ) const
inline

Definition at line 13 of file CSCBadCFEBTimeSlice.h.

13 { return 4; }

Referenced by CSCCFEBData::CSCCFEBData().

◆ word()

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

count from zero

Definition at line 4 of file CSCBadCFEBTimeSlice.cc.

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

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

Referenced by CSCCFEBData::CSCCFEBData().

Member Data Documentation

◆ theWords

CSCBadCFEBWord CSCBadCFEBTimeSlice::theWords[4]
private

Definition at line 20 of file CSCBadCFEBTimeSlice.h.

Referenced by check(), and word().

mps_fire.i
i
Definition: mps_fire.py:428
cms::cuda::assert
assert(be >=bs)
CSCBadCFEBTimeSlice::theWords
CSCBadCFEBWord theWords[4]
Definition: CSCBadCFEBTimeSlice.h:20
CSCBadCFEBWord::check
bool check() const
make sure it really does start with a "B"
Definition: CSCBadCFEBWord.h:12
mps_fire.result
result
Definition: mps_fire.py:311