CMS 3D CMS Logo

CaloSamples.h File Reference

#include <ostream>
#include "DataFormats/DetId/interface/DetId.h"

Go to the source code of this file.

Classes

class  CaloSamples
 Class which represents the charge/voltage measurements of an event/channel with the ADC decoding performed. More...

Defines

#define CALOSAMPLES_H   1

Functions

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


Define Documentation

#define CALOSAMPLES_H   1

Definition at line 2 of file CaloSamples.h.


Function Documentation

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

Definition at line 25 of file CaloSamples.cc.

References lat::endl(), i, CaloSamples::id(), DetId::rawId(), and CaloSamples::size().

00025                                                                   {
00026   s << "DetId=" << samples.id().rawId();
00027   s << ", "<<  samples.size() << "samples" << std::endl;
00028   for (int i=0; i<samples.size(); i++)
00029     s << i << ":" << samples[i] << std::endl;
00030   return s;
00031 }


Generated on Tue Jun 9 17:51:04 2009 for CMSSW by  doxygen 1.5.4