CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/DataFormats/SiStripDetId/src/TIDDetId.cc

Go to the documentation of this file.
00001 #include "DataFormats/SiStripDetId/interface/TIDDetId.h"
00002 
00003 
00004 std::ostream& operator<<(std::ostream& os,const TIDDetId& id) {
00005   unsigned int         theDisk   = id.wheel();
00006   unsigned int         theRing   = id.ring();
00007   std::vector<unsigned int> theModule = id.module();
00008   std::string side;
00009   std::string part;
00010   side = (id.side() == 1 ) ? "-" : "+";
00011   part = (theModule[0] == 1 ) ? "back" : "front";
00012   std::string type;
00013   type = (id.stereo() == 0) ? "r-phi" : "stereo";
00014   type = (id.glued() == 0) ? type : type+" glued";
00015   type = (id.isDoubleSide()) ? "double side" : type;
00016   return os << "TID" << side
00017             << " Disk " << theDisk
00018             << " Ring " << theRing << " " << part
00019             << " Module " << theModule[1] << " " << type
00020             << " (" << id.rawId() << ")";
00021 }
00022