Main Page
Namespaces
Classes
Package Documentation
DataFormats
HcalDigi
src
QIE11DataFrame.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalDigi/interface/QIE11DataFrame.h
"
2
#include "
DataFormats/HcalDetId/interface/HcalGenericDetId.h
"
3
4
std::ostream&
operator<<
(std::ostream&
s
,
const
QIE11DataFrame
& digi) {
5
if
(digi.
detid
().
det
()==
DetId::Hcal
) {
6
s <<
HcalGenericDetId
(digi.
detid
());
7
}
else
{
8
s <<
"DetId("
<< digi.
detid
().
rawId
() <<
")"
;
9
}
10
s <<
" "
<< digi.
samples
() <<
" samples"
;
11
if
(digi.
linkError
()) s <<
" LinkError "
;
12
if
(digi.
capidError
()) s <<
" CapIdError "
;
13
if
(digi.
zsMarkAndPass
()) s <<
" M&P "
;
14
s << std::endl;
15
for
(
int
i
=0;
i
<digi.
samples
();
i
++) {
16
QIE11DataFrame::Sample
sam = digi[
i
];
17
s <<
" ADC="
<< sam.
adc
() <<
" TDC="
<< sam.
tdc
() <<
" CAPID="
<< sam.
capid
();
18
if
(sam.
soi
()) s <<
" SOI "
;
19
s << std::endl;
20
}
21
return
s
;
22
}
QIE11DataFrame::detid
DetId detid() const
Get the detector id.
Definition:
QIE11DataFrame.h:47
DetId::Hcal
Definition:
DetId.h:26
mps_fire.i
i
Definition:
mps_fire.py:269
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition:
DetId.h:47
QIE11DataFrame
Definition:
QIE11DataFrame.h:11
HcalGenericDetId.h
operator<<
std::ostream & operator<<(std::ostream &s, const QIE11DataFrame &digi)
Definition:
QIE11DataFrame.cc:4
QIE11DataFrame::linkError
bool linkError() const
Definition:
QIE11DataFrame.h:71
QIE11DataFrame::zsMarkAndPass
bool zsMarkAndPass() const
was this a mark-and-pass ZS event?
Definition:
QIE11DataFrame.h:76
QIE11DataFrame::Sample::adc
int adc() const
Definition:
QIE11DataFrame.h:30
QIE11DataFrame::Sample
Definition:
QIE11DataFrame.h:21
QIE11DataFrame::capidError
bool capidError() const
Definition:
QIE11DataFrame.h:74
HcalGenericDetId
Definition:
HcalGenericDetId.h:15
QIE11DataFrame.h
QIE11DataFrame::Sample::capid
int capid() const
Definition:
QIE11DataFrame.h:33
QIE11DataFrame::samples
int samples() const
total number of samples in the digi
Definition:
QIE11DataFrame.h:57
QIE11DataFrame::Sample::soi
bool soi() const
Definition:
QIE11DataFrame.h:32
QIE11DataFrame::Sample::tdc
int tdc() const
Definition:
QIE11DataFrame.h:31
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition:
DetId.h:39
Generated for CMSSW Reference Manual by
1.8.11