Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:16

0001 #include "DataFormats/EcalDigi/interface/EcalTimeDigi.h"
0002 
0003 namespace {
0004   constexpr unsigned int MAXSAMPLES = 10;
0005 }
0006 
0007 EcalTimeDigi::EcalTimeDigi() : id_(0), size_(0), sampleOfInterest_(-1), data_(MAXSAMPLES) {}
0008 
0009 EcalTimeDigi::EcalTimeDigi(const DetId& id) : id_(id), size_(0), sampleOfInterest_(-1), data_(MAXSAMPLES) {}
0010 
0011 void EcalTimeDigi::setSize(unsigned int size) {
0012   if (size > MAXSAMPLES)
0013     size_ = MAXSAMPLES;
0014   else
0015     size_ = size;
0016   data_.resize(size_);
0017 }