CMS 3D CMS Logo

CSCBadCFEBWord.h
Go to the documentation of this file.
1 #ifndef CSCBadCFEBWord_h
2 #define CSCBadCFEBWord_h
3 
7 #include<iosfwd>
8 
10 public:
12  bool check() const {return b_==0xb;}
13  bool isBad() const {return true;}
14  friend std::ostream & operator<<(std::ostream & os, const CSCBadCFEBWord &);
15  unsigned data() const {return (word1_ + (word2_<<4) + (code_<<9) + (b_<<12) );}
16 private:
17  unsigned short word1_:4;
18  unsigned short word2_:4;
19  unsigned short zero_:1;
20  unsigned short code_:3;
21  unsigned short b_:4;
22 };
23 
24 
25 #endif
unsigned short word2_
unsigned short code_
friend std::ostream & operator<<(std::ostream &os, const CSCBadCFEBWord &)
bool check() const
make sure it really does start with a "B"
unsigned short b_
unsigned data() const
unsigned short zero_
bool isBad() const
unsigned short word1_