CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CSCBadCFEBWord.h
Go to the documentation of this file.
1 #ifndef EventFilter_CSCRawToDigi_CSCBadCFEBWord_h
2 #define EventFilter_CSCRawToDigi_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 
17 private:
18  unsigned short word1_ : 4;
19  unsigned short word2_ : 4;
20  unsigned short zero_ : 1;
21  unsigned short code_ : 3;
22  unsigned short b_ : 4;
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 &quot;B&quot;
unsigned short b_
unsigned data() const
unsigned short zero_
bool isBad() const
unsigned short word1_