CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GeomDetEnumerators.h
Go to the documentation of this file.
1 #ifndef _COMMONDETUNIT_GEOMDETENUMERATORS_H_
2 #define _COMMONDETUNIT_GEOMDETENUMERATORS_H_
3 
5 #include <iosfwd>
6 
9 namespace GeomDetEnumerators {
12  // gives subdetId in DetId conrrepsonding to the above
13  constexpr unsigned int subDetId[12]={1,2,3,5,4,6, 0,0,0,0,0, 0}; // don't ask, don't ask, simply do not ask!
14  //inverse (only for tracker)
15  constexpr SubDetector tkDetEnum[8]={invalidDet, PixelBarrel, PixelEndcap, TIB, TID, TOB, TEC, invalidDet}; // don't ask, don't ask, simply do not ask!
16 
17 }
18 
19 /* overload << for correct output of the enumerators
20  * (e.g. to get "barrel" instead of "0")
21  */
22 std::ostream& operator<<( std::ostream& s, GeomDetEnumerators::Location l);
23 std::ostream& operator<<( std::ostream& s, GeomDetEnumerators::SubDetector m);
24 
25 
26 #endif
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
#define constexpr
SubDetector tkDetEnum[8]
unsigned int subDetId[12]