CMS 3D CMS Logo

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

◆ operator<<()

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