CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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

◆ operator<<()

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

Definition at line 85 of file SiStripHashedDetId.cc.

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 }

References TauDecayModes::dec, input, and contentValuesCheck::ss.

input
static const std::string input
Definition: EdmProvDump.cc:48
SiStripHashedDetId::const_iterator
std::vector< uint32_t >::const_iterator const_iterator
Definition: SiStripHashedDetId.h:40
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143