CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GeomDetEnumerators.cc
Go to the documentation of this file.
2 #include<ostream>
3 using namespace GeomDetEnumerators;
4 
5 std::ostream& operator<<( std::ostream& s, Location l) {
6  if (l == barrel) return s << "barrel";
7  else return s << "endcap";
8 }
9 
10 std::ostream& operator<<( std::ostream& s, SubDetector m){
11  if ( m == PixelBarrel ) return s << "PixelBarrel";
12  else if ( m == PixelEndcap ) return s << "PixelEndcap";
13  else if ( m == TIB) return s << "TIB";
14  else if (m == TOB) return s << "TOB";
15  else if (m == TID) return s << "TID";
16  else if (m == TEC) return s << "TEC";
17  else if ( m == DT ) return s << "DT";
18  else if ( m == CSC ) return s << "CSC";
19  else if ( m == RPCBarrel ) return s << "RPCBarrel";
20  else if ( m == RPCEndcap ) return s << "RPCEndcap";
21  else if ( m == GEM) return s << "GEM";
22  else if ( m == ME0 ) return s << "ME0";
23  else return s << "?";
24 }
25 
26 
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187