CMS 3D CMS Logo

Classes | Functions
SiStripHashedDetId.h File Reference
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include <algorithm>
#include <iomanip>
#include <vector>
#include <cstdint>

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 85 of file SiStripHashedDetId.cc.

References SiStripHashedDetId::begin(), TauDecayModes::dec, SiStripHashedDetId::end(), and contentValuesCheck::ss.

85  {
86  std::stringstream ss;
87  ss << "[SiStripHashedDetId::" << __func__ << "]"
88  << " Found " << input.end() - input.begin() << " entries in DetId hash map:" << std::endl;
90  for (; iter != input.end(); ++iter) {
91  ss << " Index: " << std::dec << std::setw(5) << std::setfill(' ') << iter - input.begin() << " DetId: 0x"
92  << std::hex << std::setw(8) << std::setfill('0') << *iter << std::endl;
93  }
94  os << ss.str();
95  return os;
96 }
std::vector< uint32_t >::const_iterator const_iterator
static std::string const input
Definition: EdmProvDump.cc:48