#include "DataFormats/SiStripDetId/interface/TIBDetId.h"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const TIBDetId &id) |
std::ostream& operator<< | ( | std::ostream & | os, |
const TIBDetId & | id | ||
) |
Definition at line 19 of file TIBDetId.cc.
{ unsigned int theLayer = id.layer(); std::vector<unsigned int> theString = id.string(); unsigned int theModule = id.module(); std::string side; std::string part; side = (theString[0] == 1 ) ? "-" : "+"; part = (theString[1] == 1 ) ? "int" : "ext"; std::string type; type = (id.stereo() == 0) ? "r-phi" : "stereo"; type = (id.glued() == 0) ? type : type+" glued"; type = (id.isDoubleSide()) ? "double side" : type; return os << "TIB" << side << " Layer " << theLayer << " " << part << " String " << theString[2] << " Module " << theModule << " " << type << " (" << id.rawId() << ")"; }