CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/HcalDigi/src/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(), i, HcalHistogramDigi::id(), and alignCSCRings::s.

                                                                     {
  s << digi.id() << std::endl;
  for (int i=0; i<HcalHistogramDigi::BINS_PER_HISTOGRAM; i++) {
    s << ' ' << std::setw(2) << i;
    for (int capid=0; capid<4; capid++)
      s << std::setw(6) << digi.get(capid,i) << "  ";
    s << std::endl;
  }
  return s;
}