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

◆ operator<<()

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

Definition at line 29 of file HcalHistogramDigi.cc.

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 }

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

mps_fire.i
i
Definition: mps_fire.py:355
HcalHistogramDigi::get
uint16_t get(int capid, int bin) const
get the contents of the specified bin for the specified capid (0-3)
Definition: HcalHistogramDigi.cc:14
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalHistogramDigi::id
const HcalDetId & id() const
Definition: HcalHistogramDigi.h:19
HcalHistogramDigi::BINS_PER_HISTOGRAM
static const int BINS_PER_HISTOGRAM
Definition: HcalHistogramDigi.h:28