Go to the documentation of this file.00001 #include "DataFormats/SiStripDetId/interface/TIBDetId.h"
00002
00003
00004 std::ostream& operator<<(std::ostream& os,const TIBDetId& id) {
00005 unsigned int theLayer = id.layer();
00006 std::vector<unsigned int> theString = id.string();
00007 unsigned int theModule = id.module();
00008 std::string side;
00009 std::string part;
00010 side = (theString[0] == 1 ) ? "-" : "+";
00011 part = (theString[1] == 1 ) ? "int" : "ext";
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 << "TIB" << side
00017 << " Layer " << theLayer << " " << part
00018 << " String " << theString[2]
00019 << " Module " << theModule << " " << type
00020 << " (" << id.rawId() << ")";
00021 }
00022