CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DataFormats/SiStripDetId/interface/SiStripDetId.h File Reference

#include "DataFormats/DetId/interface/DetId.h"
#include <ostream>

Go to the source code of this file.

Classes

class  SiStripDetId
 Detector identifier class for the strip tracker. More...

Functions

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

Function Documentation

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

Debug info for SiStripDetId class.

Definition at line 6 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();
}