Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
EcalTimeDigi::size
int size() const
Definition:
EcalTimeDigi.h:22
EcalTimeDigi::EcalTimeDigi
EcalTimeDigi()
Definition:
EcalTimeDigi.cc:7
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
findQualityFiles.size
tuple size
Write out results.
Definition:
findQualityFiles.py:443
Generated for CMSSW Reference Manual by
1.8.5