DataFormats
EcalDigi
src
EcalTimeDigi.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalTimeDigi.h
"
2
3
namespace
{
4
constexpr
unsigned
int
MAXSAMPLES = 10;
5
}
// namespace
6
7
EcalTimeDigi::EcalTimeDigi
() : id_(0), size_(0), sampleOfInterest_(-1), waveform_(WAVEFORMSAMPLES), data_(MAXSAMPLES) {}
8
9
EcalTimeDigi::EcalTimeDigi
(
const
DetId
&
id
)
10
: id_(
id
), size_(0), sampleOfInterest_(-1), waveform_(WAVEFORMSAMPLES), data_(MAXSAMPLES) {}
11
12
void
EcalTimeDigi::setSize
(
unsigned
int
size
) {
13
if
(
size
> MAXSAMPLES)
14
size_
= MAXSAMPLES;
15
else
16
size_
=
size
;
17
data_
.resize(
size_
);
18
}
19
20
void
EcalTimeDigi::setWaveform
(
float
* waveform) {
21
waveform_
.resize(
WAVEFORMSAMPLES
);
22
for
(
uint
i
(0);
i
!=
WAVEFORMSAMPLES
; ++
i
) {
23
waveform_
[
i
] =
waveform
[
i
];
24
}
25
}
EcalTimeDigi::size_
unsigned int size_
Definition:
EcalTimeDigi.h:41
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
parallelization.uint
uint
Definition:
parallelization.py:124
mps_fire.i
i
Definition:
mps_fire.py:429
EcalTimeDigi::size
int size() const
Definition:
EcalTimeDigi.h:23
EcalTimeDigi::EcalTimeDigi
EcalTimeDigi()
Definition:
EcalTimeDigi.cc:7
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:65
EcalTimeDigi::setWaveform
void setWaveform(float *waveform)
Definition:
EcalTimeDigi.cc:20
EcalTimeDigi::waveform
std::vector< float > waveform() const
Definition:
EcalTimeDigi.h:35
EcalTimeDigi::WAVEFORMSAMPLES
static const unsigned int WAVEFORMSAMPLES
Definition:
EcalTimeDigi.h:37
EcalTimeDigi::setSize
void setSize(unsigned int size)
Definition:
EcalTimeDigi.cc:12
DetId
Definition:
DetId.h:17
EcalTimeDigi::data_
std::vector< float > data_
Definition:
EcalTimeDigi.h:44
EcalTimeDigi.h
EcalTimeDigi::waveform_
std::vector< float > waveform_
Definition:
EcalTimeDigi.h:43
Generated for CMSSW Reference Manual by
1.8.14