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 12 of file CSCBadCFEBTimeSlice.h.

Member Function Documentation

bool CSCBadCFEBTimeSlice::check ( ) const

Definition at line 10 of file CSCBadCFEBTimeSlice.cc.

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

Referenced by CSCCFEBData::CSCCFEBData(), and sizeInWords().

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

Definition at line 14 of file CSCBadCFEBTimeSlice.h.

References check(), mps_fire::i, and word().

Referenced by CSCCFEBData::CSCCFEBData().

14 {return 4;}
const CSCBadCFEBWord & CSCBadCFEBTimeSlice::word ( int  i) const

count from zero

Definition at line 4 of file CSCBadCFEBTimeSlice.cc.

References mps_fire::i, and theWords.

Referenced by CSCCFEBData::CSCCFEBData(), and sizeInWords().

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

Member Data Documentation

CSCBadCFEBWord CSCBadCFEBTimeSlice::theWords[4]
private

Definition at line 22 of file CSCBadCFEBTimeSlice.h.

Referenced by check(), and word().