CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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 42 of file SiStripDetId.cc.

42  {
43  return os << "[SiStripDetId::print]" << std::endl
44  << " rawId : 0x"
45  << std::hex << std::setfill('0') << std::setw(8)
46  << id.rawId()
47  << std::dec << std::endl
48  << " bits[0:24] : "
49  << std::hex << std::setfill('0') << std::setw(8)
50  << (0x01FFFFFF & id.rawId())
51  << std::dec << std::endl
52  << " Detector : " << id.det() << std::endl
53  << " SubDetector : " << id.subdetId() << std::endl
54  << " reserved : " << id.reserved();
55 }