CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/SiStripDetId/src/SiStripDetId.cc File Reference

#include "DataFormats/SiStripDetId/interface/SiStripDetId.h"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const SiStripDetId &id)

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const SiStripDetId  
)

Debug info for SiStripDetId class.

Definition at line 42 of file SiStripDetId.cc.

                                                                  {
  return os << "[SiStripDetId::print]" << std::endl
            << " rawId       : 0x" 
            << std::hex << std::setfill('0') << std::setw(8)
            << id.rawId()
            << std::dec << std::endl
            << " bits[0:24]  : " 
            << std::hex << std::setfill('0') << std::setw(8) 
            << (0x01FFFFFF & id.rawId())
            << std::dec << std::endl
            << " Detector    : " << id.det() << std::endl 
            << " SubDetector : " << id.subdetId() << std::endl
            << " reserved    : " << id.reserved();
}