DataFormats
CSCDigi
src
CSCDCCStatusDigi.cc
Go to the documentation of this file.
1
7
#include "
DataFormats/CSCDigi/interface/CSCDCCStatusDigi.h
"
8
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
9
#include <ostream>
10
#include <cstring>
11
#include <iostream>
12
13
CSCDCCStatusDigi::CSCDCCStatusDigi
(
const
uint16_t*
header
,
14
const
uint16_t* trailer,
15
const
uint32_t&
error
,
16
short
unsigned
tts) {
17
errorFlag_
=
error
;
18
uint16_t headerSizeInBytes = 16;
19
uint16_t trailerSizeInBytes = 16;
20
memcpy(
header_
,
header
, headerSizeInBytes);
21
memcpy(
trailer_
,
trailer
, trailerSizeInBytes);
22
tts_
= tts;
23
}
24
25
const
uint16_t
CSCDCCStatusDigi::getDCCTTS
()
const
{
26
uint16_t ttsBits = (
tts_
& 0x00F0) >> 4;
27
return
ttsBits;
28
}
29
30
void
CSCDCCStatusDigi::print
()
const
{
31
edm::LogVerbatim
(
"CSCDigi"
) <<
" Header: "
<< std::hex << *
header_
<<
" Trailer: "
<< std::hex << *
trailer_
32
<<
" ErrorFlag: "
<<
errorFlag_
<<
" 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
}
CSCDCCStatusDigi::trailer_
uint16_t trailer_[8]
Definition:
CSCDCCStatusDigi.h:35
MessageLogger.h
CSCDCCStatusDigi::getDCCTTS
const uint16_t getDCCTTS() const
Definition:
CSCDCCStatusDigi.cc:25
CSCDCCStatusDigi.h
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
CSCDCCStatusDigi::print
void print() const
Print the content of CSCDCCStatusDigi.
Definition:
CSCDCCStatusDigi.cc:30
CSCDCCStatusDigi
Definition:
CSCDCCStatusDigi.h:15
CSCDCCStatusDigi::errorFlag_
uint32_t errorFlag_
Definition:
CSCDCCStatusDigi.h:36
CSCDCCStatusDigi::trailer
const uint16_t * trailer() const
Definition:
CSCDCCStatusDigi.h:26
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition:
MessageLogger.h:128
CSCDCCStatusDigi::CSCDCCStatusDigi
CSCDCCStatusDigi()
Default constructor.
Definition:
CSCDCCStatusDigi.h:22
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:292
operator<<
std::ostream & operator<<(std::ostream &o, const CSCDCCStatusDigi &digi)
Definition:
CSCDCCStatusDigi.cc:35
CSCDCCStatusDigi::header
const uint16_t * header() const
data accessors
Definition:
CSCDCCStatusDigi.h:25
CSCDCCStatusDigi::tts_
short unsigned tts_
Definition:
CSCDCCStatusDigi.h:37
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:143
Generated for CMSSW Reference Manual by
1.8.16