CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TOBDetId.cc
Go to the documentation of this file.
2 
3 
4 std::ostream& operator<<(std::ostream& os,const TOBDetId& id) {
5  unsigned int theLayer = id.layer();
6  std::vector<unsigned int> theRod = id.rod();
7  unsigned int theModule = id.module();
8  std::string side;
10  side = (theRod[0] == 1 ) ? "-" : "+";
12  type = (id.stereo() == 0) ? "r-phi" : "stereo";
13  type = (id.glued() == 0) ? type : type+" glued";
14  type = (id.isDoubleSide()) ? "double side" : type;
15  return os << "TOB" << side
16  << " Layer " << theLayer
17  << " Rod " << theRod[1]
18  << " Module " << theModule << " " << type
19  << " (" << id.rawId() << ")";
20 }
21 
type
Definition: HCALResponse.h:21
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
part
Definition: HCALResponse.h:20