CMS 3D CMS Logo

Enumerations | Functions | Variables
GeomDetEnumerators Namespace Reference

Enumerations

enum  Location { barrel, endcap, invalidLoc }
 
enum  SubDetector {
  PixelBarrel, PixelEndcap, TIB, TOB,
  TID, TEC, CSC, DT,
  RPCBarrel, RPCEndcap, GEM, ME0,
  P2OTB, P2OTEC, P1PXB, P1PXEC,
  P2PXB, P2PXEC, TimingBarrel, TimingEndcap,
  invalidDet
}
 

Functions

bool isBarrel (GeomDetEnumerators::SubDetector m)
 
bool isCSC (GeomDetEnumerators::SubDetector m)
 
bool isDT (GeomDetEnumerators::SubDetector m)
 
bool isEndcap (GeomDetEnumerators::SubDetector m)
 
bool isGEM (GeomDetEnumerators::SubDetector m)
 
bool isInnerTracker (GeomDetEnumerators::SubDetector m)
 
bool isME0 (GeomDetEnumerators::SubDetector m)
 
bool isMuon (GeomDetEnumerators::SubDetector m)
 
bool isOuterTracker (GeomDetEnumerators::SubDetector m)
 
bool isRPC (GeomDetEnumerators::SubDetector m)
 
bool isTiming (GeomDetEnumerators::SubDetector m)
 
bool isTracker (GeomDetEnumerators::SubDetector m)
 
bool isTrackerPixel (GeomDetEnumerators::SubDetector m)
 
bool isTrackerStrip (GeomDetEnumerators::SubDetector m)
 

Variables

constexpr SubDetector subDetGeom [21]
 
constexpr unsigned int subDetId [21]
 
constexpr SubDetector tkDetEnum [8]
 

Detailed Description

Global enumerators for Det types.

Enumeration Type Documentation

◆ Location

Enumerator
barrel 
endcap 
invalidLoc 

Definition at line 9 of file GeomDetEnumerators.h.

◆ SubDetector

Enumerator
PixelBarrel 
PixelEndcap 
TIB 
TOB 
TID 
TEC 
CSC 
DT 
RPCBarrel 
RPCEndcap 
GEM 
ME0 
P2OTB 
P2OTEC 
P1PXB 
P1PXEC 
P2PXB 
P2PXEC 
TimingBarrel 
TimingEndcap 
invalidDet 

Definition at line 10 of file GeomDetEnumerators.h.

10  {
13  TIB,
14  TOB,
15  TID,
16  TEC,
17  CSC,
18  DT,
19  RPCBarrel,
20  RPCEndcap,
21  GEM,
22  ME0,
23  P2OTB,
24  P2OTEC,
25  P1PXB,
26  P1PXEC,
27  P2PXB,
28  P2PXEC,
32  };

Function Documentation

◆ isBarrel()

bool GeomDetEnumerators::isBarrel ( GeomDetEnumerators::SubDetector  m)

◆ isCSC()

bool GeomDetEnumerators::isCSC ( GeomDetEnumerators::SubDetector  m)

◆ isDT()

bool GeomDetEnumerators::isDT ( GeomDetEnumerators::SubDetector  m)

◆ isEndcap()

bool GeomDetEnumerators::isEndcap ( GeomDetEnumerators::SubDetector  m)

◆ isGEM()

bool GeomDetEnumerators::isGEM ( GeomDetEnumerators::SubDetector  m)

Definition at line 94 of file GeomDetEnumerators.cc.

94 { return (subdet == GEM); }

References GEM.

Referenced by GeomDetType::isGEM().

◆ isInnerTracker()

bool GeomDetEnumerators::isInnerTracker ( GeomDetEnumerators::SubDetector  m)

Definition at line 73 of file GeomDetEnumerators.cc.

73  {
74  return (subdet == PixelBarrel || subdet == PixelEndcap || subdet == P1PXB || subdet == P1PXEC || subdet == P2PXB ||
75  subdet == P2PXEC);
76 }

References P1PXB, P1PXEC, P2PXB, P2PXEC, PixelBarrel, and PixelEndcap.

Referenced by GeomDetType::isInnerTracker().

◆ isME0()

bool GeomDetEnumerators::isME0 ( GeomDetEnumerators::SubDetector  m)

Definition at line 96 of file GeomDetEnumerators.cc.

96 { return (subdet == ME0); }

References ME0.

Referenced by GeomDetType::isME0().

◆ isMuon()

bool GeomDetEnumerators::isMuon ( GeomDetEnumerators::SubDetector  m)

Definition at line 98 of file GeomDetEnumerators.cc.

98  {
99  return (subdet == DT || subdet == CSC || isRPC(subdet) || subdet == GEM || subdet == ME0);
100 }

References CSC, DT, GEM, isRPC(), and ME0.

Referenced by GeomDetType::isMuon().

◆ isOuterTracker()

bool GeomDetEnumerators::isOuterTracker ( GeomDetEnumerators::SubDetector  m)

Definition at line 78 of file GeomDetEnumerators.cc.

78  {
79  return (subdet == TIB || subdet == TOB || subdet == TID || subdet == TEC || subdet == P2OTB || subdet == P2OTEC);
80 }

References P2OTB, P2OTEC, TEC, TIB, TID, and TOB.

Referenced by Phase2EndcapLayerBuilder::build(), and GeomDetType::isOuterTracker().

◆ isRPC()

bool GeomDetEnumerators::isRPC ( GeomDetEnumerators::SubDetector  m)

◆ isTiming()

bool GeomDetEnumerators::isTiming ( GeomDetEnumerators::SubDetector  m)

Definition at line 102 of file GeomDetEnumerators.cc.

102  {
103  return (subdet == TimingBarrel || subdet == TimingEndcap);
104 }

References TimingBarrel, and TimingEndcap.

Referenced by GeomDetType::isTiming().

◆ isTracker()

bool GeomDetEnumerators::isTracker ( GeomDetEnumerators::SubDetector  m)

Definition at line 82 of file GeomDetEnumerators.cc.

82  {
83  return (isTrackerStrip(subdet) || isTrackerPixel(subdet));
84 }

References isTrackerPixel(), and isTrackerStrip().

Referenced by GeomDetType::isTracker().

◆ isTrackerPixel()

bool GeomDetEnumerators::isTrackerPixel ( GeomDetEnumerators::SubDetector  m)

◆ isTrackerStrip()

bool GeomDetEnumerators::isTrackerStrip ( GeomDetEnumerators::SubDetector  m)

Variable Documentation

◆ subDetGeom

constexpr SubDetector GeomDetEnumerators::subDetGeom[21]
constexpr

◆ subDetId

constexpr unsigned int GeomDetEnumerators::subDetId[21]
constexpr
Initial value:
= {1, 2, 3, 5, 4, 6, 0, 0, 0, 0, 0,
0, 5, 4, 1, 2, 1, 2, 2, 2, 0}

Definition at line 34 of file GeomDetEnumerators.h.

Referenced by MCMisalignmentScaler::analyze(), MCMisalignmentScaler::decodeSubDetectors(), TrackerOfflineValidation::isBarrel(), TrackerOfflineValidation::isEndCap(), and TrackerOfflineValidation::isPixel().

◆ tkDetEnum

constexpr SubDetector GeomDetEnumerators::tkDetEnum[8]
constexpr
SectorBuilder_Tib_cff.TIB
TIB
Definition: SectorBuilder_Tib_cff.py:16
GeomDetEnumerators::RPCEndcap
Definition: GeomDetEnumerators.h:20
GeomDetEnumerators::TID
Definition: GeomDetEnumerators.h:15
GeomDetEnumerators::invalidDet
Definition: GeomDetEnumerators.h:31
GeomDetEnumerators::isRPC
bool isRPC(GeomDetEnumerators::SubDetector m)
Definition: GeomDetEnumerators.cc:90
GeomDetEnumerators::TIB
Definition: GeomDetEnumerators.h:13
SectorBuilder_Tec_cff.TEC
TEC
Definition: SectorBuilder_Tec_cff.py:16
GeomDetEnumerators::P2OTB
Definition: GeomDetEnumerators.h:23
GeomDetEnumerators::TOB
Definition: GeomDetEnumerators.h:14
GeomDetEnumerators::barrel
Definition: GeomDetEnumerators.h:9
GeomDetEnumerators::PixelBarrel
Definition: GeomDetEnumerators.h:11
GeomDetEnumerators::P1PXEC
Definition: GeomDetEnumerators.h:26
GeomDetEnumerators::TimingBarrel
Definition: GeomDetEnumerators.h:29
GeomDetEnumerators::P2OTEC
Definition: GeomDetEnumerators.h:24
GeomDetEnumerators::CSC
Definition: GeomDetEnumerators.h:17
GeomDetEnumerators::invalidLoc
Definition: GeomDetEnumerators.h:9
PixelPluginsPhase0_cfi.isBarrel
isBarrel
Definition: PixelPluginsPhase0_cfi.py:17
GeomDetEnumerators::P1PXB
Definition: GeomDetEnumerators.h:25
GeomDetEnumerators::DT
Definition: GeomDetEnumerators.h:18
GeomDetEnumerators::TEC
Definition: GeomDetEnumerators.h:16
GeomDetEnumerators::endcap
Definition: GeomDetEnumerators.h:9
GeomDetEnumerators::isTrackerPixel
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
Definition: GeomDetEnumerators.cc:68
GeomDetEnumerators::TimingEndcap
Definition: GeomDetEnumerators.h:30
SectorBuilder_Tid_cff.TID
TID
Definition: SectorBuilder_Tid_cff.py:16
GeomDetEnumerators::GEM
Definition: GeomDetEnumerators.h:21
GeomDetEnumerators::PixelEndcap
Definition: GeomDetEnumerators.h:12
GeomDetEnumerators::RPCBarrel
Definition: GeomDetEnumerators.h:19
GeomDetEnumerators::P2PXB
Definition: GeomDetEnumerators.h:27
GeomDetEnumerators::ME0
Definition: GeomDetEnumerators.h:22
SectorBuilder_Tob_cff.TOB
TOB
Definition: SectorBuilder_Tob_cff.py:16
GeomDetEnumerators::isDT
bool isDT(GeomDetEnumerators::SubDetector m)
Definition: GeomDetEnumerators.cc:86
GeomDetEnumerators::isTrackerStrip
bool isTrackerStrip(GeomDetEnumerators::SubDetector m)
Definition: GeomDetEnumerators.cc:64
GeomDetEnumerators::P2PXEC
Definition: GeomDetEnumerators.h:28