CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/DataFormats/HcalDigi/interface/HcalHistogramDigi.h File Reference

#include <ostream>
#include <boost/cstdint.hpp>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"

Go to the source code of this file.

Classes

class  HcalHistogramDigi

Functions

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

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
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;
}