CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_0/src/CalibFormats/SiStripObjects/interface/SiStripHashedDetId.h File Reference

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

Go to the source code of this file.

Classes

class  SiStripHashedDetId
 Provides dense hash map in place of DetId. 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(), and SiStripHashedDetId::end().

                                                                           {
  std::stringstream ss;
  ss << "[SiStripHashedDetId::" << __func__ << "]"
     << " Found " << input.end() - input.begin()
     << " entries in DetId hash map:"
     << std::endl;
  SiStripHashedDetId::const_iterator iter = input.begin();
  for ( ; iter != input.end(); ++iter ) {
    ss << " Index: "
       << std::dec << std::setw(5) << std::setfill(' ')
       << iter - input.begin() 
       << "  DetId: 0x"
       << std::hex << std::setw(8) << std::setfill('0')
       << *iter << std::endl;
  }
  os << ss.str();
  return os;
}