Main Page
Namespaces
Classes
Package Documentation
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
10
EcalTimeDigi::EcalTimeDigi
(
const
DetId
&
id
) :
id_
(id),
11
size_
(0),
sampleOfInterest_
(-1),
data_
(MAXSAMPLES) {
12
}
13
14
void
EcalTimeDigi::setSize
(
unsigned
int
size
) {
15
if
(size>MAXSAMPLES)
size_
=MAXSAMPLES;
16
else
size_
=
size
;
17
data_
.resize(
size_
);
18
}
19
20
21
22
EcalTimeDigi::size_
unsigned int size_
Definition:
EcalTimeDigi.h:36
EcalTimeDigi::size
int size() const
Definition:
EcalTimeDigi.h:22
EcalTimeDigi::sampleOfInterest_
int sampleOfInterest_
Definition:
EcalTimeDigi.h:37
EcalTimeDigi::EcalTimeDigi
EcalTimeDigi()
Definition:
EcalTimeDigi.cc:7
EcalTimeDigi::id_
DetId id_
Definition:
EcalTimeDigi.h:35
EcalTimeDigi::setSize
void setSize(unsigned int size)
Definition:
EcalTimeDigi.cc:14
DetId
Definition:
DetId.h:18
EcalTimeDigi::data_
std::vector< float > data_
Definition:
EcalTimeDigi.h:38
EcalTimeDigi.h
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:35
Generated for CMSSW Reference Manual by
1.8.11