CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/EventFilter/CSCRawToDigi/interface/CSCBadCFEBWord.h

Go to the documentation of this file.
00001 #ifndef CSCBadCFEBWord_h
00002 #define CSCBadCFEBWord_h
00003 
00007 #include<iosfwd>
00008 
00009 class CSCBadCFEBWord {
00010 public:
00012   bool check() const {return b_==0xb;}
00013   bool isBad() const {return true;}
00014   friend std::ostream & operator<<(std::ostream & os, const CSCBadCFEBWord &);
00015   unsigned data() const {return (word1_ + (word2_<<4) + (code_<<9) + (b_<<12) );}
00016 private:
00017   unsigned short word1_:4;
00018   unsigned short word2_:4;
00019   unsigned short zero_:1;
00020   unsigned short code_:3;
00021   unsigned short b_:4;
00022 };
00023 
00024 
00025 #endif