src
DataFormats
EcalDigi
src
EcalPnDiodeDigi.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalPnDiodeDigi.h
"
2
3
EcalPnDiodeDigi::EcalPnDiodeDigi
() : size_(0), data_(
MAXSAMPLES
) {}
4
EcalPnDiodeDigi::EcalPnDiodeDigi
(
const
EcalPnDiodeDetId
&
id
) : id_(
id
), size_(0), data_(
MAXSAMPLES
) {}
5
6
void
EcalPnDiodeDigi::setSize
(
int
size
) {
7
if
(
size
< 0)
8
size_
= 0;
9
else
if
(
size
>
MAXSAMPLES
)
10
size_
=
MAXSAMPLES
;
11
else
12
size_
=
size
;
13
}
14
15
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalPnDiodeDigi
& digi) {
16
s
<< digi.
id
() <<
" "
<< digi.
size
() <<
" samples "
<< std::endl;
17
for
(
int
i
= 0;
i
< digi.
size
();
i
++)
18
s
<<
" "
<< digi.
sample
(
i
) << std::endl;
19
return
s
;
20
}
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
EcalPnDiodeDigi.h
mps_fire.i
i
Definition:
mps_fire.py:429
EcalPnDiodeDigi::setSize
void setSize(int size)
Definition:
EcalPnDiodeDigi.cc:6
EcalPnDiodeDigi::id
const EcalPnDiodeDetId & id() const
Definition:
EcalPnDiodeDigi.h:20
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:86
EcalPnDiodeDigi::EcalPnDiodeDigi
EcalPnDiodeDigi()
Definition:
EcalPnDiodeDigi.cc:3
MAXSAMPLES
static constexpr int MAXSAMPLES
Definition:
EcalEBPhase2TriggerPrimitiveDigi.cc:5
EcalPnDiodeDigi::size
int size() const
Definition:
EcalPnDiodeDigi.h:21
EcalPnDiodeDigi::size_
int size_
Definition:
EcalPnDiodeDigi.h:33
EcalPnDiodeDigi::MAXSAMPLES
static const int MAXSAMPLES
Definition:
EcalPnDiodeDigi.h:29
EcalPnDiodeDigi::sample
const EcalFEMSample & sample(int i) const
Definition:
EcalPnDiodeDigi.h:24
EcalPnDiodeDetId
Definition:
EcalPnDiodeDetId.h:22
operator<<
std::ostream & operator<<(std::ostream &s, const EcalPnDiodeDigi &digi)
Definition:
EcalPnDiodeDigi.cc:15
EcalPnDiodeDigi
Definition:
EcalPnDiodeDigi.h:13
Generated for CMSSW Reference Manual by
1.8.14