CMS 3D CMS Logo

HcalHistogramDigi.h File Reference

#include <ostream>
#include <boost/cstdint.hpp>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"

Go to the source code of this file.

Classes

class  HcalHistogramDigi
 
Date
2005/11/14 22:46:50
Revision
1.1
More...

Defines

#define DATAFORMATS_HCALDIGI_HCALHISTOGRAMDIGI_H   1

Functions

std::ostream & operator<< (std::ostream &, const HcalHistogramDigi &digi)


Define Documentation

#define DATAFORMATS_HCALDIGI_HCALHISTOGRAMDIGI_H   1

Definition at line 2 of file HcalHistogramDigi.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const HcalHistogramDigi digi 
)

Definition at line 30 of file HcalHistogramDigi.cc.

References HcalHistogramDigi::BINS_PER_HISTOGRAM, lat::endl(), HcalHistogramDigi::get(), i, and HcalHistogramDigi::id().

00030                                                                      {
00031   s << digi.id() << std::endl;
00032   for (int i=0; i<HcalHistogramDigi::BINS_PER_HISTOGRAM; i++) {
00033     s << ' ' << std::setw(2) << i;
00034     for (int capid=0; capid<4; capid++)
00035       s << std::setw(6) << digi.get(capid,i) << "  ";
00036     s << std::endl;
00037   }
00038   return s;
00039 }


Generated on Tue Jun 9 17:52:07 2009 for CMSSW by  doxygen 1.5.4