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[18]={1,2,3,5,4,6, 0, 0,0,0,0,0,5,4,1,2,2, 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  //to convert a physical subdetector (it could be larger than 5) into a geometry subdetector (between 0 and 5). ONLY for tracker
18 
21 
31 
32 }
33 
34 /* overload << for correct output of the enumerators
35  * (e.g. to get "barrel" instead of "0")
36  */
37 std::ostream& operator<<( std::ostream& s, GeomDetEnumerators::Location l);
38 std::ostream& operator<<( std::ostream& s, GeomDetEnumerators::SubDetector m);
39 
40 
41 #endif
bool isTracker(const GeomDetEnumerators::SubDetector m)
bool isGEM(const GeomDetEnumerators::SubDetector m)
bool isBarrel(GeomDetEnumerators::SubDetector m)
bool isRPC(const GeomDetEnumerators::SubDetector m)
bool isDT(const GeomDetEnumerators::SubDetector m)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
#define constexpr
bool isTrackerStrip(const GeomDetEnumerators::SubDetector m)
unsigned int subDetId[18]
SubDetector tkDetEnum[8]
bool isEndcap(GeomDetEnumerators::SubDetector m)
bool isMuon(const GeomDetEnumerators::SubDetector m)
SubDetector subDetGeom[18]
bool isME0(const GeomDetEnumerators::SubDetector m)
bool isTrackerPixel(const GeomDetEnumerators::SubDetector m)
bool isCSC(const GeomDetEnumerators::SubDetector m)