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
}
6
7
EcalTimeDigi::EcalTimeDigi
() : id_(0), size_(0), sampleOfInterest_(-1), data_(MAXSAMPLES) {}
8
9
EcalTimeDigi::EcalTimeDigi
(
const
DetId
&
id
) : id_(
id
), size_(0), sampleOfInterest_(-1), data_(MAXSAMPLES) {}
10
11
void
EcalTimeDigi::setSize
(
unsigned
int
size
) {
12
if
(
size
> MAXSAMPLES)
13
size_
= MAXSAMPLES;
14
else
15
size_
=
size
;
16
data_
.resize(
size_
);
17
}
EcalTimeDigi::size_
unsigned int size_
Definition:
EcalTimeDigi.h:36
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
EcalTimeDigi::size
int size() const
Definition:
EcalTimeDigi.h:22
EcalTimeDigi::EcalTimeDigi
EcalTimeDigi()
Definition:
EcalTimeDigi.cc:7
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:29
EcalTimeDigi::setSize
void setSize(unsigned int size)
Definition:
EcalTimeDigi.cc:11
DetId
Definition:
DetId.h:17
EcalTimeDigi::data_
std::vector< float > data_
Definition:
EcalTimeDigi.h:38
EcalTimeDigi.h
Generated for CMSSW Reference Manual by
1.8.14