Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
EcalDigi
src
EcalPnDiodeDigi.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalPnDiodeDigi.h
"
2
3
4
EcalPnDiodeDigi::EcalPnDiodeDigi
() :
size_
(0), data_(MAXSAMPLES) {
5
}
6
EcalPnDiodeDigi::EcalPnDiodeDigi
(
const
EcalPnDiodeDetId
&
id
) : id_(id),
7
size_
(0), data_(MAXSAMPLES) {
8
}
9
10
void
EcalPnDiodeDigi::setSize
(
int
size
) {
11
if
(size<0)
size_
=0;
12
else
if
(size>
MAXSAMPLES
)
size_
=
MAXSAMPLES
;
13
else
size_
=
size
;
14
}
15
16
17
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalPnDiodeDigi
& digi) {
18
s << digi.
id
() <<
" "
<< digi.
size
() <<
" samples "
<< std::endl;
19
for
(
int
i
=0;
i
<digi.
size
();
i
++)
20
s <<
" "
<< digi.
sample
(
i
) << std::endl;
21
return
s
;
22
}
i
int i
Definition:
DBlmapReader.cc:9
EcalPnDiodeDigi.h
EcalPnDiodeDigi::size
int size() const
Definition:
EcalPnDiodeDigi.h:23
EcalPnDiodeDigi::setSize
void setSize(int size)
Definition:
EcalPnDiodeDigi.cc:10
EcalPnDiodeDigi::id
const EcalPnDiodeDetId & id() const
Definition:
EcalPnDiodeDigi.h:22
EcalPnDiodeDigi::sample
const EcalFEMSample & sample(int i) const
Definition:
EcalPnDiodeDigi.h:26
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
EcalPnDiodeDigi::EcalPnDiodeDigi
EcalPnDiodeDigi()
Definition:
EcalPnDiodeDigi.cc:4
EcalPnDiodeDigi::size_
int size_
Definition:
EcalPnDiodeDigi.h:34
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
EcalPnDiodeDigi::MAXSAMPLES
static const int MAXSAMPLES
Definition:
EcalPnDiodeDigi.h:31
EcalPnDiodeDetId
Definition:
EcalPnDiodeDetId.h:24
edm::size_
size_(0)
Definition:
OwnArray.h:181
findQualityFiles.size
tuple size
Write out results.
Definition:
findQualityFiles.py:442
EcalPnDiodeDigi
Definition:
EcalPnDiodeDigi.h:15
Generated for CMSSW Reference Manual by
1.8.5