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
CSCDCCStatusDigi::trailer_
uint16_t trailer_[8]
Definition: CSCDCCStatusDigi.h:35
CSCDCCStatusDigi::getDCCTTS
const uint16_t getDCCTTS() const
Definition: CSCDCCStatusDigi.cc:25
relativeConstraints.error
error
Definition: relativeConstraints.py:53
CSCDCCStatusDigi::header_
uint16_t header_[8]
Definition: CSCDCCStatusDigi.h:34
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
operator<<
std::ostream & operator<<(std::ostream &o, const CSCDCCStatusDigi &digi)
Definition: CSCDCCStatusDigi.cc:35
CSCDCCStatusDigi::print
void print() const
Print the content of CSCDCCStatusDigi.
Definition: CSCDCCStatusDigi.cc:30
CSCDCCStatusDigi
Definition: CSCDCCStatusDigi.h:15
CSCDCCStatusDigi::CSCDCCStatusDigi
CSCDCCStatusDigi(const uint32_t &error, short unsigned tts)
Definition: CSCDCCStatusDigi.h:19
CSCDCCStatusDigi::errorFlag
const uint32_t errorFlag() const
Definition: CSCDCCStatusDigi.h:27
CSCDCCStatusDigi::errorFlag_
uint32_t errorFlag_
Definition: CSCDCCStatusDigi.h:36
CSCDCCStatusDigi::trailer
const uint16_t * trailer() const
Definition: CSCDCCStatusDigi.h:26
CSCDCCStatusDigi::CSCDCCStatusDigi
CSCDCCStatusDigi()
Default constructor.
Definition: CSCDCCStatusDigi.h:22
CSCDCCStatusDigi::header
const uint16_t * header() const
data accessors
Definition: CSCDCCStatusDigi.h:25
CSCDCCStatusDigi::tts_
short unsigned tts_
Definition: CSCDCCStatusDigi.h:37