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 <cstdint>
14 
16 public:
18  CSCDCCStatusDigi(const uint16_t* header, const uint16_t* trailer, const uint32_t& error, short unsigned tts);
19  CSCDCCStatusDigi(const uint32_t& error, short unsigned tts) { errorFlag_ = error; } //tts_ = tts;}
20 
23 
25  const uint16_t* header() const { return header_; }
26  const uint16_t* trailer() const { return trailer_; }
27  const uint32_t errorFlag() const { return errorFlag_; }
28  const uint16_t getDCCTTS() const;
29 
31  void print() const;
32 
33 private:
34  uint16_t header_[8];
35  uint16_t trailer_[8];
36  uint32_t errorFlag_;
37  short unsigned tts_;
38 };
39 
40 std::ostream& operator<<(std::ostream& o, const CSCDCCStatusDigi& digi);
41 
42 #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)