CMS 3D CMS Logo

EcalPnDiodeDigi.cc
Go to the documentation of this file.
2 
3 EcalPnDiodeDigi::EcalPnDiodeDigi() : size_(0), data_(MAXSAMPLES) {}
4 EcalPnDiodeDigi::EcalPnDiodeDigi(const EcalPnDiodeDetId& id) : id_(id), size_(0), data_(MAXSAMPLES) {}
5 
7  if (size < 0)
8  size_ = 0;
9  else if (size > MAXSAMPLES)
10  size_ = MAXSAMPLES;
11  else
12  size_ = size;
13 }
14 
15 std::ostream& operator<<(std::ostream& s, const EcalPnDiodeDigi& digi) {
16  s << digi.id() << " " << digi.size() << " samples " << std::endl;
17  for (int i = 0; i < digi.size(); i++)
18  s << " " << digi.sample(i) << std::endl;
19  return s;
20 }
size
Write out results.
void setSize(int size)
const EcalPnDiodeDetId & id() const
int size() const
static const int MAXSAMPLES
const EcalFEMSample & sample(int i) const
std::ostream & operator<<(std::ostream &s, const EcalPnDiodeDigi &digi)