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 isBarrel(GeomDetEnumerators::SubDetector m)
bool isME0(GeomDetEnumerators::SubDetector m)
bool isDT(GeomDetEnumerators::SubDetector m)
unsigned int subDetId[21]
bool isTiming(GeomDetEnumerators::SubDetector m)
bool isGEM(GeomDetEnumerators::SubDetector m)
SubDetector subDetGeom[21]
SubDetector tkDetEnum[8]
bool isEndcap(GeomDetEnumerators::SubDetector m)
bool isTrackerStrip(GeomDetEnumerators::SubDetector m)
bool isMuon(GeomDetEnumerators::SubDetector m)
bool isRPC(GeomDetEnumerators::SubDetector m)
std::ostream & operator<<(std::ostream &s, GeomDetEnumerators::Location l)
bool isCSC(GeomDetEnumerators::SubDetector m)
bool isTracker(GeomDetEnumerators::SubDetector m)
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
#define constexpr