CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
HcalHistogramDigi.h File Reference
#include <ostream>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include <cstdint>

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 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)