CMS 3D CMS Logo

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[21]={1,2,3,5,4,6, 0, 0,0,0,0,0,5,4,1,2,1,2, 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 
32 
33 }
34 
35 /* overload << for correct output of the enumerators
36  * (e.g. to get "barrel" instead of "0")
37  */
38 std::ostream& operator<<( std::ostream& s, GeomDetEnumerators::Location l);
39 std::ostream& operator<<( std::ostream& s, GeomDetEnumerators::SubDetector m);
40 
41 
42 #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)
#define constexpr
bool isTrackerStrip(const GeomDetEnumerators::SubDetector m)
unsigned int subDetId[21]
SubDetector subDetGeom[21]
SubDetector tkDetEnum[8]
bool isEndcap(GeomDetEnumerators::SubDetector m)
bool isMuon(const GeomDetEnumerators::SubDetector m)
std::ostream & operator<<(std::ostream &s, GeomDetEnumerators::Location l)
bool isME0(const GeomDetEnumerators::SubDetector m)
bool isTrackerPixel(const GeomDetEnumerators::SubDetector m)
bool isCSC(const GeomDetEnumerators::SubDetector m)
bool isTiming(const GeomDetEnumerators::SubDetector m)