src
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
size_
=
size
;
14
if
(
size
>
MAXSAMPLES
)
15
data_
.resize(
size_
);
16
}
17
18
void
EcalTimeDigi::setWaveform
(
float
* waveform) {
19
waveform_
.resize(
WAVEFORMSAMPLES
);
20
for
(
uint
i
(0);
i
!=
WAVEFORMSAMPLES
; ++
i
) {
21
waveform_
[
i
] =
waveform
[
i
];
22
}
23
}
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
ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr
if constexpr(n > 3)
Definition:
BrokenLine.h:164
EcalTimeDigi::setWaveform
void setWaveform(float *waveform)
Definition:
EcalTimeDigi.cc:18
EcalTimeDigi::waveform
std::vector< float > waveform() const
Definition:
EcalTimeDigi.h:35
EcalTimeDigi::WAVEFORMSAMPLES
static const unsigned int WAVEFORMSAMPLES
Definition:
EcalTimeDigi.h:37
MAXSAMPLES
static constexpr int MAXSAMPLES
Definition:
EcalEBPhase2TriggerPrimitiveDigi.cc:5
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
EcalPhiSymFlatTableProducers_cfi.id
id
Definition:
EcalPhiSymFlatTableProducers_cfi.py:11
EcalTimeDigi.h
EcalTimeDigi::waveform_
std::vector< float > waveform_
Definition:
EcalTimeDigi.h:43
Generated for CMSSW Reference Manual by
1.8.14