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 {
11  enum SubDetector {
14  TIB,
15  TOB,
16  TID,
17  TEC,
18  CSC,
19  DT,
22  GEM,
23  ME0,
33  };
34  // gives subdetId in DetId conrrepsonding to the above
35  constexpr unsigned int subDetId[21] = {1, 2, 3, 5, 4, 6, 0, 0, 0, 0, 0,
36  0, 5, 4, 1, 2, 1, 2, 2, 2, 0}; // don't ask, don't ask, simply do not ask!
37  //inverse (only for tracker)
39  invalidDet, PixelBarrel, PixelEndcap, TIB, TID, TOB, TEC, invalidDet}; // don't ask, don't ask, simply do not ask!
40  //to convert a physical subdetector (it could be larger than 5) into a geometry subdetector (between 0 and 5). ONLY for tracker
44  invalidDet, invalidDet, invalidDet};
45 
48 
54 
62 
63 } // namespace GeomDetEnumerators
64 
65 /* overload << for correct output of the enumerators
66  * (e.g. to get "barrel" instead of "0")
67  */
68 std::ostream& operator<<(std::ostream& s, GeomDetEnumerators::Location l);
69 std::ostream& operator<<(std::ostream& s, GeomDetEnumerators::SubDetector m);
70 
71 #endif
bool isOuterTracker(GeomDetEnumerators::SubDetector m)
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 isInnerTracker(GeomDetEnumerators::SubDetector m)
bool isCSC(GeomDetEnumerators::SubDetector m)
bool isTracker(GeomDetEnumerators::SubDetector m)
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
#define constexpr