CMS 3D CMS Logo

CSCBadCFEBWord Class Reference

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

#include <EventFilter/CSCRawToDigi/interface/CSCBadCFEBWord.h>

List of all members.

Public Member Functions

bool check () const
 make sure it really does start with a "B"
unsigned data () const
bool isBad () const

Private Attributes

unsigned short b_:4
unsigned short code_:3
unsigned short word1_:4
unsigned short word2_:4
unsigned short zero_:1

Friends

std::ostream & operator<< (std::ostream &os, const CSCBadCFEBWord &)


Detailed Description

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

Definition at line 9 of file CSCBadCFEBWord.h.


Member Function Documentation

bool CSCBadCFEBWord::check (  )  const [inline]

make sure it really does start with a "B"

Definition at line 12 of file CSCBadCFEBWord.h.

References b_.

Referenced by CSCBadCFEBTimeSlice::check(), and operator<<().

00012 {return b_==0xb;}

unsigned CSCBadCFEBWord::data (  )  const [inline]

Definition at line 15 of file CSCBadCFEBWord.h.

References b_, code_, word1_, and word2_.

Referenced by CSCCFEBData::CSCCFEBData().

00015 {return (word1_ + (word2_<<4) + (code_<<9) + (b_<<12) );}

bool CSCBadCFEBWord::isBad (  )  const [inline]

Definition at line 13 of file CSCBadCFEBWord.h.

00013 {return true;}


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CSCBadCFEBWord word 
) [friend]

Definition at line 4 of file CSCBadCFEBWord.cc.

00005 {
00006   if(!word.check()) os << "Even the Bad CFEB word is bad!  Sheesh!" << std::endl;
00007   else 
00008     {
00009       switch(word.code_)
00010         {
00011         case 1:
00012           os << "CFEB: SCA Capacitors Full  block " << word.word2_ 
00013              << " FIFO1 count (4-bit) " << word.word1_ << std::endl;
00014           break;
00015         case 2:
00016           os << "CFEB: FPGA FIFO Full  FIFO3 count (4-bit) " << word.word2_ 
00017              << " FIFO1 count (4-bit) " << word.word1_ << std::endl;
00018           break;
00019         case 5:
00020           os << "CFEB: DMB FIFO Full " << std::endl;
00021           break;
00022         case 6:
00023           os << "CFEB: DMB FPGA FIFO Full GFIFO count (4-bit)" << word.word2_ 
00024              << " LFIFO count (4-bit) " << word.word1_ << std::endl;
00025           break;
00026         default:
00027           os << "Undefined CFEB error" << std::endl;
00028           break;
00029         }
00030     }
00031   return os;
00032 }


Member Data Documentation

unsigned short CSCBadCFEBWord::b_ [private]

Definition at line 21 of file CSCBadCFEBWord.h.

Referenced by check(), and data().

unsigned short CSCBadCFEBWord::code_ [private]

Definition at line 20 of file CSCBadCFEBWord.h.

Referenced by data(), and operator<<().

unsigned short CSCBadCFEBWord::word1_ [private]

Definition at line 17 of file CSCBadCFEBWord.h.

Referenced by data(), and operator<<().

unsigned short CSCBadCFEBWord::word2_ [private]

Definition at line 18 of file CSCBadCFEBWord.h.

Referenced by data(), and operator<<().

unsigned short CSCBadCFEBWord::zero_ [private]

Definition at line 19 of file CSCBadCFEBWord.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:17:04 2009 for CMSSW by  doxygen 1.5.4