CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
HcalHistogramDigi.cc File Reference
#include "DataFormats/HcalDigi/interface/HcalHistogramDigi.h"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const HcalHistogramDigi &digi)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HcalHistogramDigi digi 
)

Definition at line 29 of file HcalHistogramDigi.cc.

References HcalHistogramDigi::BINS_PER_HISTOGRAM, HcalHistogramDigi::get(), mps_fire::i, HcalHistogramDigi::id(), and alignCSCRings::s.

29  {
30  s << digi.id() << std::endl;
31  for (int i = 0; i < HcalHistogramDigi::BINS_PER_HISTOGRAM; i++) {
32  s << ' ' << std::setw(2) << i;
33  for (int capid = 0; capid < 4; capid++)
34  s << std::setw(6) << digi.get(capid, i) << " ";
35  s << std::endl;
36  }
37  return s;
38 }
static const int BINS_PER_HISTOGRAM
const HcalDetId & id() const
uint16_t get(int capid, int bin) const
get the contents of the specified bin for the specified capid (0-3)