test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalPnDiodeDigi.cc
Go to the documentation of this file.
2 
3 
4 EcalPnDiodeDigi::EcalPnDiodeDigi() : size_(0), data_(MAXSAMPLES) {
5 }
7  size_(0), data_(MAXSAMPLES) {
8 }
9 
11  if (size<0) size_=0;
12  else if (size>MAXSAMPLES) size_=MAXSAMPLES;
13  else size_=size;
14 }
15 
16 
17 std::ostream& operator<<(std::ostream& s, const EcalPnDiodeDigi& digi) {
18  s << digi.id() << " " << digi.size() << " samples " << std::endl;
19  for (int i=0; i<digi.size(); i++)
20  s << " " << digi.sample(i) << std::endl;
21  return s;
22 }
int i
Definition: DBlmapReader.cc:9
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:188
static const int MAXSAMPLES
size_(0)
Definition: OwnArray.h:181
tuple size
Write out results.