CMS 3D CMS Logo

TECDetId.cc
Go to the documentation of this file.
2 
3 #include <iostream>
4 
5 
6 std::ostream& operator<<(std::ostream& os,const TECDetId& id) {
7  unsigned int theWheel = id.wheel();
8  unsigned int theModule = id.module();
9  std::vector<unsigned int> thePetal = id.petal();
10  unsigned int theRing = id.ring();
11  std::string side;
12  std::string petal;
13  side = (id.side() == 1 ) ? "-" : "+";
14  petal = (thePetal[0] == 1 ) ? "back" : "front";
16  type = (id.stereo() == 0) ? "r-phi" : "stereo";
17  type = (id.glued() == 0) ? type : type+" glued";
18  type = (id.isDoubleSide()) ? "double side" : type;
19  return os << "TEC" << side
20  << " Wheel " << theWheel
21  << " Petal " << thePetal[1] << " " << petal
22  << " Ring " << theRing
23  << " Module " << theModule << " " << type
24  << " (" << id.rawId() << ")";
25 }
type
Definition: HCALResponse.h:21
std::ostream & operator<<(std::ostream &os, const TECDetId &id)
Definition: TECDetId.cc:6