Main Page
Namespaces
Classes
Package Documentation
DataFormats
HcalDigi
src
QIE10DataFrame.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalDigi/interface/QIE10DataFrame.h
"
2
#include "
DataFormats/HcalDetId/interface/HcalGenericDetId.h
"
3
4
std::ostream&
operator<<
(std::ostream&
s
,
const
QIE10DataFrame
& 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.
zsMarkAndPass
()) s <<
" MaP "
;
13
s << std::endl;
14
for
(
int
i
=0;
i
<digi.
samples
();
i
++) {
15
QIE10DataFrame::Sample
sam = digi[
i
];
16
s <<
" ADC="
<< sam.
adc
() <<
" TDC(LE)="
<< sam.
le_tdc
() <<
" TDC(TE)="
<< sam.
te_tdc
() <<
" CAPID="
<< sam.
capid
();
17
if
(sam.
soi
()) s <<
" SOI "
;
18
if
(!sam.
ok
()) s <<
" !OK "
;
19
s << std::endl;
20
}
21
return
s
;
22
}
QIE10DataFrame::samples
int samples() const
total number of samples in the digi
Definition:
QIE10DataFrame.h:88
DetId::Hcal
Definition:
DetId.h:26
QIE10DataFrame::Sample
Definition:
QIE10DataFrame.h:21
mps_fire.i
i
Definition:
mps_fire.py:329
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
QIE10DataFrame::linkError
bool linkError() const
Definition:
QIE10DataFrame.h:102
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition:
DetId.h:50
QIE10DataFrame
Definition:
QIE10DataFrame.h:11
operator<<
std::ostream & operator<<(std::ostream &s, const QIE10DataFrame &digi)
Definition:
QIE10DataFrame.cc:4
QIE10DataFrame::Sample::te_tdc
int te_tdc() const
Definition:
QIE10DataFrame.h:48
HcalGenericDetId.h
QIE10DataFrame::zsMarkAndPass
bool zsMarkAndPass() const
Definition:
QIE10DataFrame.h:105
QIE10DataFrame::detid
DetId detid() const
Get the detector id.
Definition:
QIE10DataFrame.h:78
QIE10DataFrame.h
HcalGenericDetId
Definition:
HcalGenericDetId.h:15
QIE10DataFrame::Sample::adc
int adc() const
Definition:
QIE10DataFrame.h:46
QIE10DataFrame::Sample::soi
bool soi() const
Definition:
QIE10DataFrame.h:50
QIE10DataFrame::Sample::ok
bool ok() const
Definition:
QIE10DataFrame.h:49
QIE10DataFrame::Sample::capid
int capid() const
Definition:
QIE10DataFrame.h:51
QIE10DataFrame::Sample::le_tdc
int le_tdc() const
Definition:
QIE10DataFrame.h:47
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