CMS 3D CMS Logo

Functions
IntegerCaloSamples.cc File Reference
#include "CalibFormats/CaloObjects/interface/IntegerCaloSamples.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const IntegerCaloSamples &samples)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const IntegerCaloSamples samples 
)

Definition at line 15 of file IntegerCaloSamples.cc.

References mps_fire::i, IntegerCaloSamples::id(), DetId::rawId(), alignCSCRings::s, and IntegerCaloSamples::size().

15  {
16  s << "DetId=" << samples.id().rawId();
17  s << ", " << samples.size() << "samples" << std::endl;
18  for (int i = 0; i < samples.size(); i++)
19  s << i << ":" << samples[i] << std::endl;
20  return s;
21 }
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:50
int size() const
get the size
DetId id() const
get the (generic) id