File indexing completed on 2024-04-06 12:05:15
0001 #include "DataFormats/SiStripDetId/interface/SiStripDetId.h"
0002 #include <iomanip>
0003
0004 std::ostream &operator<<(std::ostream &os, const SiStripDetId &id) {
0005 return os << "[SiStripDetId::print]" << std::endl
0006 << " rawId : 0x" << std::hex << std::setfill('0') << std::setw(8) << id.rawId() << std::dec
0007 << std::endl
0008 << " bits[0:24] : " << std::hex << std::setfill('0') << std::setw(8) << (0x01FFFFFF & id.rawId())
0009 << std::dec << std::endl
0010 << " Detector : " << id.det() << std::endl
0011 << " SubDetector : " << id.subdetId() << std::endl
0012 << " reserved : " << id.reserved();
0013 }