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
}
mps_fire.i
i
Definition:
mps_fire.py:428
EcalPnDiodeDigi::id
const EcalPnDiodeDetId & id() const
Definition:
EcalPnDiodeDigi.h:20
EcalPnDiodeDigi::setSize
void setSize(int size)
Definition:
EcalPnDiodeDigi.cc:6
EcalPnDiodeDigi::size
int size() const
Definition:
EcalPnDiodeDigi.h:21
EcalPnDiodeDigi::MAXSAMPLES
static const int MAXSAMPLES
Definition:
EcalPnDiodeDigi.h:29
EcalPnDiodeDetId
Definition:
EcalPnDiodeDetId.h:22
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EcalPnDiodeDigi::sample
const EcalFEMSample & sample(int i) const
Definition:
EcalPnDiodeDigi.h:24
EcalPnDiodeDigi.h
EcalPnDiodeDigi::EcalPnDiodeDigi
EcalPnDiodeDigi()
Definition:
EcalPnDiodeDigi.cc:3
operator<<
std::ostream & operator<<(std::ostream &s, const EcalPnDiodeDigi &digi)
Definition:
EcalPnDiodeDigi.cc:15
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:31
EcalPnDiodeDigi::size_
int size_
Definition:
EcalPnDiodeDigi.h:33
EcalPnDiodeDigi
Definition:
EcalPnDiodeDigi.h:13
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
Generated for CMSSW Reference Manual by
1.8.16