CMS 3D CMS Logo

CSCDCCStatusDigi.h
Go to the documentation of this file.
1 #ifndef CSCDCCStatusDigi_CSCDCCStatusDigi_h
2 #define CSCDCCStatusDigi_CSCDCCStatusDigi_h
3 
11 #include <vector>
12 #include <iosfwd>
13 #include <stdint.h>
14 
16 
17 public:
18 
20  CSCDCCStatusDigi (const uint16_t * header, const uint16_t * trailer,
21  const uint32_t & error, short unsigned tts);
22  CSCDCCStatusDigi (const uint32_t & error, short unsigned tts) {errorFlag_=error;} //tts_ = tts;}
23 
26 
28  const uint16_t * header() const {return header_;}
29  const uint16_t * trailer() const {return trailer_;}
30  const uint32_t errorFlag() const {return errorFlag_;}
31  const uint16_t getDCCTTS() const;
32 
34  void print() const;
35 
36 private:
37 
38  uint16_t header_[8];
39  uint16_t trailer_[8];
40  uint32_t errorFlag_;
41  short unsigned tts_;
42 };
43 
44 std::ostream & operator<<(std::ostream & o, const CSCDCCStatusDigi& digi);
45 
46 #endif
const uint16_t * header() const
data accessors
void print() const
Print the content of CSCDCCStatusDigi.
const uint32_t errorFlag() const
std::ostream & operator<<(std::ostream &o, const CSCDCCStatusDigi &digi)
CSCDCCStatusDigi()
Default constructor.
uint16_t trailer_[8]
const uint16_t getDCCTTS() const
short unsigned tts_
const uint16_t * trailer() const
uint16_t header_[8]
CSCDCCStatusDigi(const uint32_t &error, short unsigned tts)