CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/EventFilter/CSCRawToDigi/src/CSCBadCFEBWord.cc File Reference

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 4 of file CSCBadCFEBWord.cc.

References CSCBadCFEBWord::check(), CSCBadCFEBWord::code_, CSCBadCFEBWord::word1_, and CSCBadCFEBWord::word2_.

{
  if(!word.check()) os << "Even the Bad CFEB word is bad!  Sheesh!" << std::endl;
  else 
    {
      switch(word.code_)
        {
        case 1:
          os << "CFEB: SCA Capacitors Full  block " << word.word2_ 
             << " FIFO1 count (4-bit) " << word.word1_ << std::endl;
          break;
        case 2:
          os << "CFEB: FPGA FIFO Full  FIFO3 count (4-bit) " << word.word2_ 
             << " FIFO1 count (4-bit) " << word.word1_ << std::endl;
          break;
        case 5:
          os << "CFEB: DMB FIFO Full " << std::endl;
          break;
        case 6:
          os << "CFEB: DMB FPGA FIFO Full GFIFO count (4-bit)" << word.word2_ 
             << " LFIFO count (4-bit) " << word.word1_ << std::endl;
          break;
        default:
          os << "Undefined CFEB error" << std::endl;
          break;
        }
    }
  return os;
}