CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCDCCStatusDigi.cc
Go to the documentation of this file.
1 
9 #include <ostream>
10 #include <cstring>
11 #include <iostream>
12 
13 CSCDCCStatusDigi::CSCDCCStatusDigi(const uint16_t * header, const uint16_t * trailer, const uint32_t & error,
14  short unsigned tts)
15 {
17  uint16_t headerSizeInBytes =16;
18  uint16_t trailerSizeInBytes =16;
19  memcpy(header_, header, headerSizeInBytes);
20  memcpy(trailer_, trailer, trailerSizeInBytes);
21  tts_ = tts;
22 }
23 
24 const uint16_t CSCDCCStatusDigi::getDCCTTS() const {
25  uint16_t ttsBits = (tts_ & 0x00F0) >> 4;
26  return ttsBits;
27 }
28 
30  edm::LogVerbatim("CSCDigi") << " Header: " << std::hex << *header_ <<
31  " Trailer: " << std::hex << *trailer_ << " ErrorFlag: " << errorFlag_ <<
32  " TTS: " << getDCCTTS() << std::dec;
33 }
34 
35 std::ostream & operator<<(std::ostream & o, const CSCDCCStatusDigi& digi) {
36  o << " ";
37  o <<"\n";
38 
39  return o;
40 }
41 
void print() const
Print the content of CSCDCCStatusDigi.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
CSCDCCStatusDigi()
Default constructor.
uint16_t trailer_[8]
const uint16_t getDCCTTS() const
short unsigned tts_
uint16_t header_[8]