CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  CaloSamples
 

Functions

std::ostream & operator<< (std::ostream &s, const CaloSamples &samps)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const CaloSamples samps 
)

Definition at line 50 of file CaloSamples.cc.

References i, CaloSamples::id(), DetId::rawId(), asciidump::s, and CaloSamples::size().

50  {
51  s << "DetId=" << samples.id().rawId();
52  s << ", "<< samples.size() << "samples" << std::endl;
53  for (int i=0; i<samples.size(); i++)
54  s << i << ":" << samples[i] << std::endl;
55  return s;
56 }
int i
Definition: DBlmapReader.cc:9
string s
Definition: asciidump.py:422