CMS 3D CMS Logo

SiStripHashedDetId.h File Reference

#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include <boost/cstdint.hpp>
#include <iomanip>
#include <vector>

Go to the source code of this file.

Classes

class  SiStripHashedDetId
 
Author:
R.Bainbridge
More...

Functions

std::ostream & operator<< (std::ostream &os, const SiStripHashedDetId &)


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const SiStripHashedDetId  
)

Definition at line 111 of file SiStripHashedDetId.cc.

References SiStripHashedDetId::begin(), SiStripHashedDetId::end(), lat::endl(), iter, and ss.

00111                                                                            {
00112   std::stringstream ss;
00113   ss << "[SiStripHashedDetId::" << __func__ << "]"
00114      << " Found " << input.end() - input.begin()
00115      << " entries in DetId hash map:"
00116      << std::endl;
00117   SiStripHashedDetId::const_iterator iter = input.begin();
00118   for ( ; iter != input.end(); ++iter ) {
00119     ss << " Index: "
00120        << std::dec << std::setw(5) << std::setfill(' ')
00121        << iter - input.begin() 
00122        << "  DetId: 0x"
00123        << std::hex << std::setw(8) << std::setfill('0')
00124        << *iter << std::endl;
00125   }
00126   os << ss.str();
00127   return os;
00128 }


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