CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
int size() const
void setSize(int size)
const EcalPnDiodeDetId & id() const
const EcalFEMSample & sample(int i) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
static const int MAXSAMPLES
tuple size
Write out results.