CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/Geometry/CommonDetUnit/interface/GeomDetEnumerators.h

Go to the documentation of this file.
00001 #ifndef _COMMONDETUNIT_GEOMDETENUMERATORS_H_ 
00002 #define _COMMONDETUNIT_GEOMDETENUMERATORS_H_
00003 
00004 #include <iosfwd>
00005 #include <ostream>
00006 
00009 namespace GeomDetEnumerators {
00010   enum Location {barrel, endcap, invalidLoc};
00011   enum SubDetector {PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap, invalidDet};
00012 }
00013 
00014 /* overload << for correct output of the enumerators 
00015  *  (e.g. to get "barrel" instead of "0")
00016  */
00017 std::ostream& operator<<( std::ostream& s, GeomDetEnumerators::Location l);
00018 std::ostream& operator<<( std::ostream& s, GeomDetEnumerators::SubDetector m);
00019 
00020 
00021 #endif