Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:59:25

0001 #include "EventFilter/CSCRawToDigi/interface/CSCBadCFEBWord.h"
0002 #include <iostream>
0003 
0004 std::ostream& operator<<(std::ostream& os, const CSCBadCFEBWord& word) {
0005   if (!word.check())
0006     os << "Even the Bad CFEB word is bad!  Sheesh!" << std::endl;
0007   else {
0008     switch (word.code_) {
0009       case 1:
0010         os << "CFEB: SCA Capacitors Full  block " << word.word2_ << " FIFO1 count (4-bit) " << word.word1_ << std::endl;
0011         break;
0012       case 2:
0013         os << "CFEB: FPGA FIFO Full  FIFO3 count (4-bit) " << word.word2_ << " FIFO1 count (4-bit) " << word.word1_
0014            << std::endl;
0015         break;
0016       case 5:
0017         os << "CFEB: DMB FIFO Full " << std::endl;
0018         break;
0019       case 6:
0020         os << "CFEB: DMB FPGA FIFO Full GFIFO count (4-bit)" << word.word2_ << " LFIFO count (4-bit) " << word.word1_
0021            << std::endl;
0022         break;
0023       default:
0024         os << "Undefined CFEB error" << std::endl;
0025         break;
0026     }
0027   }
0028   return os;
0029 }