CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Enumerations | Functions
GeomDetEnumerators.h File Reference
#include <iosfwd>
#include <ostream>

Go to the source code of this file.

Namespaces

 GeomDetEnumerators
 

Enumerations

enum  GeomDetEnumerators::Location { GeomDetEnumerators::barrel, GeomDetEnumerators::endcap, GeomDetEnumerators::invalidLoc }
 
enum  GeomDetEnumerators::SubDetector {
  GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, GeomDetEnumerators::TIB, GeomDetEnumerators::TOB,
  GeomDetEnumerators::TID, GeomDetEnumerators::TEC, GeomDetEnumerators::CSC, GeomDetEnumerators::DT,
  GeomDetEnumerators::RPCBarrel, GeomDetEnumerators::RPCEndcap, GeomDetEnumerators::invalidDet
}
 

Functions

std::ostream & operator<< (std::ostream &s, GeomDetEnumerators::Location l)
 
std::ostream & operator<< (std::ostream &s, GeomDetEnumerators::SubDetector m)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
GeomDetEnumerators::Location  l 
)

Definition at line 11 of file GeomDetEnumerators.cc.

References GeomDetEnumerators::barrel.

11  {
12  if (l == barrel) return s << "barrel";
13  else return s << "endcap";
14 }
string s
Definition: asciidump.py:422
std::ostream& operator<< ( std::ostream &  s,
GeomDetEnumerators::SubDetector  m 
)

Definition at line 16 of file GeomDetEnumerators.cc.

References GeomDetEnumerators::CSC, GeomDetEnumerators::DT, GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, GeomDetEnumerators::RPCBarrel, GeomDetEnumerators::RPCEndcap, GeomDetEnumerators::TEC, GeomDetEnumerators::TIB, GeomDetEnumerators::TID, and GeomDetEnumerators::TOB.

16  {
17  if ( m == PixelBarrel ) return s << "PixelBarrel";
18  else if ( m == PixelEndcap ) return s << "PixelEndcap";
19  else if ( m == TIB) return s << "TIB";
20  else if (m == TOB) return s << "TOB";
21  else if (m == TID) return s << "TID";
22  else if (m == TEC) return s << "TEC";
23  else if ( m == DT ) return s << "DT";
24  else if ( m == CSC ) return s << "CSC";
25  else if ( m == RPCBarrel ) return s << "RPCBarrel";
26  else if ( m == RPCEndcap ) return s << "RPCEndcap";
27  else return s << "?";
28 }
</a ></td >< td >< ahref="RecoLocalMuon_CSCRecHit.html"> csc2DRecHits</a ></td >< tdclass="description"> CSC(x, y) rechits</td >< td >T.Cox</td ></tr >< tr >< td >< a href
string s
Definition: asciidump.py:422