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 
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
CSCBadCFEBWord::code_
unsigned short code_
Definition: CSCBadCFEBWord.h:21
CSCBadCFEBWord::isBad
bool isBad() const
Definition: CSCBadCFEBWord.h:13
CSCBadCFEBWord
Definition: CSCBadCFEBWord.h:9
CSCBadCFEBWord::word1_
unsigned short word1_
Definition: CSCBadCFEBWord.h:18
CSCBadCFEBWord::data
unsigned data() const
Definition: CSCBadCFEBWord.h:15
CSCBadCFEBWord::check
bool check() const
make sure it really does start with a "B"
Definition: CSCBadCFEBWord.h:12
CSCBadCFEBWord::b_
unsigned short b_
Definition: CSCBadCFEBWord.h:22
CSCBadCFEBWord::operator<<
friend std::ostream & operator<<(std::ostream &os, const CSCBadCFEBWord &)
Definition: CSCBadCFEBWord.cc:4
CSCBadCFEBWord::zero_
unsigned short zero_
Definition: CSCBadCFEBWord.h:20
CSCBadCFEBWord::word2_
unsigned short word2_
Definition: CSCBadCFEBWord.h:19