CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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  };
</a ></td >< td >< ahref="RecoLocalMuon_CSCRecHit.html"> csc2DRecHits</a ></td >< tdclass="description"> CSC(x, y) rechits</td >< td >T.Cox</td ></tr >< tr >< td >< a href
ME0 Data Record : block-&gt;header().getID() = 6.
Definition: Block.h:23

Function Documentation

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

Definition at line 88 of file GeomDetEnumerators.cc.

References CSC.

Referenced by GeomDetType::isCSC(), MuonSeedOrcaPatternRecognition::markAsUsed(), TrackTransformerForGlobalCosmicMuons::MuonKeep(), and SETSeedFinder::sortByLayer().

88 { return (subdet == CSC); }
</a ></td >< td >< ahref="RecoLocalMuon_CSCRecHit.html"> csc2DRecHits</a ></td >< tdclass="description"> CSC(x, y) rechits</td >< td >T.Cox</td ></tr >< tr >< td >< a href
bool GeomDetEnumerators::isDT ( GeomDetEnumerators::SubDetector  m)
bool GeomDetEnumerators::isEndcap ( GeomDetEnumerators::SubDetector  m)
bool GeomDetEnumerators::isGEM ( GeomDetEnumerators::SubDetector  m)

Definition at line 94 of file GeomDetEnumerators.cc.

References GEM.

Referenced by GeomDetType::isGEM().

94 { return (subdet == GEM); }
bool GeomDetEnumerators::isInnerTracker ( GeomDetEnumerators::SubDetector  m)
bool GeomDetEnumerators::isME0 ( GeomDetEnumerators::SubDetector  m)

Definition at line 96 of file GeomDetEnumerators.cc.

References ME0.

Referenced by GEMClusterProcessor::addCoincidenceClusters(), GEMClusterProcessor::addSingleClusters(), and GeomDetType::isME0().

96 { return (subdet == ME0); }
ME0 Data Record : block-&gt;header().getID() = 6.
Definition: Block.h:23
bool GeomDetEnumerators::isMuon ( GeomDetEnumerators::SubDetector  m)

Definition at line 98 of file GeomDetEnumerators.cc.

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

Referenced by GeomDetType::isMuon().

98  {
99  return (subdet == DT || subdet == CSC || isRPC(subdet) || subdet == GEM || subdet == ME0);
100 }
bool isRPC(GeomDetEnumerators::SubDetector m)
</a ></td >< td >< ahref="RecoLocalMuon_CSCRecHit.html"> csc2DRecHits</a ></td >< tdclass="description"> CSC(x, y) rechits</td >< td >T.Cox</td ></tr >< tr >< td >< a href
ME0 Data Record : block-&gt;header().getID() = 6.
Definition: Block.h:23
bool GeomDetEnumerators::isOuterTracker ( GeomDetEnumerators::SubDetector  m)

Definition at line 78 of file GeomDetEnumerators.cc.

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

Referenced by GeomDetType::isOuterTracker().

78  {
79  return (subdet == TIB || subdet == TOB || subdet == TID || subdet == TEC || subdet == P2OTB || subdet == P2OTEC);
80 }
bool GeomDetEnumerators::isRPC ( GeomDetEnumerators::SubDetector  m)
bool GeomDetEnumerators::isTiming ( GeomDetEnumerators::SubDetector  m)

Definition at line 102 of file GeomDetEnumerators.cc.

References TimingBarrel, and TimingEndcap.

Referenced by GeomDetType::isTiming().

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

Definition at line 82 of file GeomDetEnumerators.cc.

References isTrackerPixel(), and isTrackerStrip().

Referenced by GeomDetType::isTracker(), and PFMuonSelector::TopPag12LjetsCuts().

82  {
83  return (isTrackerStrip(subdet) || isTrackerPixel(subdet));
84 }
bool isTrackerStrip(GeomDetEnumerators::SubDetector m)
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
bool GeomDetEnumerators::isTrackerPixel ( GeomDetEnumerators::SubDetector  m)

Definition at line 68 of file GeomDetEnumerators.cc.

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

Referenced by cms::SiPixelDigitizer::accumulatePixelHits(), SiPixelHLTSource::analyze(), PixelLumiDQM::analyze(), CosmicNavigationSchool::build(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), reco::modules::TrackerTrackHitFilter::checkStoN(), PixelCPEBase::driftDirection(), TrajSeedMatcher::getNrValidLayersAlongTraj(), RectangularEtaPhiTrackingRegion::hits(), MeasurementTrackerImpl::initialize(), isTracker(), GeomDetType::isTrackerPixel(), PixelCPEClusterRepair::localError(), PixelCPETemplateReco::localError(), PixelCPEClusterRepair::localPosition(), PixelCPETemplateReco::localPosition(), SeedClusterRemover::process(), HLTTrackClusterRemoverNew::process(), HITrackClusterRemover::process(), ConvBremSeedProducer::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrajectory(), and PixelCPEGenericBase::setXYErrors().

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

Variable Documentation

constexpr SubDetector GeomDetEnumerators::subDetGeom[21]
Initial value:

Definition at line 40 of file GeomDetEnumerators.h.

Referenced by MTDGeomBuilderFromGeometricTimingDet::buildPixel(), TrackerGeomBuilderFromGeometricDet::buildPixel(), TrackerGeomBuilderFromGeometricDet::buildSilicon(), EgammaHLTPhase2ExtraProducer::filterRecHits(), EgammaHLTExtraProducer::filterRecHits(), CaloDetIdAssociator::getDetIdPoints(), FixedGridRhoProducerFastjetFromRecHit::getHitP4(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >::makeFilteredColl(), TSGForRoadSearch::makeSeeds_0(), TSGForRoadSearch::makeSeeds_3(), TSGForRoadSearch::makeSeeds_4(), HLTRecHitInAllL1RegionsProducer< RecHitType >::produce(), PixelForwardLayer::subDetector(), PixelForwardLayerPhase1::subDetector(), TECLayer::subDetector(), TBLayer::subDetector(), TIDLayer::subDetector(), and Phase2EndcapLayer::subDetector().

constexpr unsigned int GeomDetEnumerators::subDetId[21]
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(), NearbyPixelClustersProducer::findAllNearbyClusters(), and NearbyPixelClustersAnalyzer::findClosestCluster().

constexpr SubDetector GeomDetEnumerators::tkDetEnum[8]