CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/EventFilter/CSCRawToDigi/src/CSCBadCFEBWord.cc

Go to the documentation of this file.
00001 #include "EventFilter/CSCRawToDigi/interface/CSCBadCFEBWord.h"
00002 #include<iostream>
00003 
00004 std::ostream & operator<<(std::ostream & os, const CSCBadCFEBWord & word) 
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 }
00033