CMS 3D CMS Logo

EcalTimeDigi.cc
Go to the documentation of this file.
2 
3 namespace {
4  constexpr unsigned int MAXSAMPLES = 10;
5 }
6 
7 EcalTimeDigi::EcalTimeDigi() : id_(0), size_(0), sampleOfInterest_(-1), data_(MAXSAMPLES) {
8 }
9 
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 
unsigned int size_
Definition: EcalTimeDigi.h:36
int size() const
Definition: EcalTimeDigi.h:22
int sampleOfInterest_
Definition: EcalTimeDigi.h:37
void setSize(unsigned int size)
Definition: EcalTimeDigi.cc:14
Definition: DetId.h:18
std::vector< float > data_
Definition: EcalTimeDigi.h:38
#define constexpr