CMS 3D CMS Logo

TOBDetId.cc File Reference

#include "DataFormats/SiStripDetId/interface/TOBDetId.h"

Go to the source code of this file.

Functions

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


Function Documentation

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

Definition at line 19 of file TOBDetId.cc.

References theLayer.

00019                                                           {
00020   unsigned int              theLayer  = id.layer();
00021   std::vector<unsigned int> theRod    = id.rod();
00022   unsigned int              theModule = id.module();
00023   std::string side;
00024   std::string part;
00025   side = (theRod[0] == 1 ) ? "-" : "+";
00026   std::string type;
00027   type = (id.stereo() == 0) ? "r-phi" : "stereo";
00028   type = (id.glued() == 0) ? type : type+" glued";
00029   type = (id.isDoubleSide()) ? "double side" : type;
00030   return os << "TOB" << side
00031             << " Layer " << theLayer
00032             << " Rod " << theRod[1]
00033             << " Module " << theModule << " " << type
00034             << " (" << id.rawId() << ")";
00035 }


Generated on Tue Jun 9 17:52:17 2009 for CMSSW by  doxygen 1.5.4