#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) |
std::ostream& operator<< | ( | std::ostream & | os, |
const SiStripHashedDetId & | input | ||
) |
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; }