CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
SiStripHashedDetId.cc File Reference
#include "CalibFormats/SiStripObjects/interface/SiStripHashedDetId.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/SiStripDetId/interface/SiStripDetId.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
#include <iomanip>
#include <sstream>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 111 of file SiStripHashedDetId.cc.

References SiStripHashedDetId::begin(), and SiStripHashedDetId::end().

111  {
112  std::stringstream ss;
113  ss << "[SiStripHashedDetId::" << __func__ << "]"
114  << " Found " << input.end() - input.begin()
115  << " entries in DetId hash map:"
116  << std::endl;
118  for ( ; iter != input.end(); ++iter ) {
119  ss << " Index: "
120  << std::dec << std::setw(5) << std::setfill(' ')
121  << iter - input.begin()
122  << " DetId: 0x"
123  << std::hex << std::setw(8) << std::setfill('0')
124  << *iter << std::endl;
125  }
126  os << ss.str();
127  return os;
128 }
std::vector< uint32_t >::const_iterator const_iterator
const_iterator begin() const
const_iterator end() const