CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 16 of file IntegerCaloSamples.cc.

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

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