CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DataFormats/SiStripDetId/src/SiStripDetId.cc

Go to the documentation of this file.
00001 #include "DataFormats/SiStripDetId/interface/SiStripDetId.h"
00002 #include <iomanip>
00003 
00004 
00005 
00006 std::ostream& operator<< ( std::ostream& os, const SiStripDetId& id ) {
00007   return os << "[SiStripDetId::print]" << std::endl
00008             << " rawId       : 0x" 
00009             << std::hex << std::setfill('0') << std::setw(8)
00010             << id.rawId()
00011             << std::dec << std::endl
00012             << " bits[0:24]  : " 
00013             << std::hex << std::setfill('0') << std::setw(8) 
00014             << (0x01FFFFFF & id.rawId())
00015             << std::dec << std::endl
00016             << " Detector    : " << id.det() << std::endl 
00017             << " SubDetector : " << id.subdetId() << std::endl
00018             << " reserved    : " << id.reserved();
00019 }
00020