CMS 3D CMS Logo

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 30 of file HcalHistogramDigi.cc.

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

30  {
31  s << digi.id() << std::endl;
32  for (int i=0; i<HcalHistogramDigi::BINS_PER_HISTOGRAM; i++) {
33  s << ' ' << std::setw(2) << i;
34  for (int capid=0; capid<4; capid++)
35  s << std::setw(6) << digi.get(capid,i) << " ";
36  s << std::endl;
37  }
38  return s;
39 }
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)