CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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 }
unsigned int size_
Definition: EcalTimeDigi.h:36
int size() const
Definition: EcalTimeDigi.h:22
void setSize(unsigned int size)
Definition: EcalTimeDigi.cc:11
Definition: DetId.h:17
std::vector< float > data_
Definition: EcalTimeDigi.h:38
tuple size
Write out results.