CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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,
  P2PXEC, invalidDet
}
 

Functions

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

Variables

SubDetector subDetGeom [18] ={PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, invalidDet, invalidDet, invalidDet, invalidDet, invalidDet, invalidDet, TOB, TID, PixelBarrel, PixelEndcap, PixelEndcap, invalidDet}
 
unsigned int subDetId [18] ={1,2,3,5,4,6, 0, 0,0,0,0,0,5,4,1,2,2, 0}
 
SubDetector tkDetEnum [8] ={invalidDet, PixelBarrel, PixelEndcap, TIB, TID, TOB, TEC, invalidDet}
 

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 
P2PXEC 
invalidDet 

Definition at line 11 of file GeomDetEnumerators.h.

Function Documentation

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

Definition at line 32 of file GeomDetEnumerators.cc.

References isDT(), P1PXB, P2OTB, PixelBarrel, RPCBarrel, TIB, and TOB.

Referenced by EwkElecDQM::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ME::apdRefChannels(), MuonSeedSimpleCleaner::checkPt(), GlobalTrackingRegion::checkRZ(), RectangularEtaPhiTrackingRegion::checkRZOld(), EcalClusterToolsT< noZS >::cluster2ndMoments(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), PixelCPEBase::driftDirection(), GlobalDigisProducer::fillECal(), GlobalDigisAnalyzer::fillECal(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), ecaldqm::binning::getBinningSM_(), EcalLaserDbService::getLaserCorrection(), EcalClusterToolsT< noZS >::getNrCrysDiffInEta(), EcalClusterToolsT< noZS >::getNrCrysDiffInPhi(), EcalDisplaysByEvent::init2DEcalHist(), EcalDisplaysByEvent::init3DEcalHist(), GeomDetType::isBarrel(), isEndcap(), RPCCosmicSeedrecHitFinder::LayerComponent(), ME::lmmodFromDcc(), ME::lmmodFromLmr(), EcalClusterToolsT< noZS >::localCovariances(), HcalHardcodeGeometryLoader::makeCell(), HcalDDDGeometryLoader::makeCell(), EcalDisplaysByEvent::makeHistos(), ME::memFromLmr(), HitComparatorByRadius::operator()(), ME::pn(), EleIsoDetIdCollectionProducer::produce(), ConversionTrackCandidateProducer::produce(), GamIsoDetIdCollectionProducer::produce(), PixelFitterByConformalMappingAndLine::run(), TrackFitter::run(), PixelFitterByHelixProjections::run(), ecaldqm::RecoSummaryTask::runOnBasicClusters(), ecaldqm::ClusterTask::runOnBasicClusters(), ecaldqm::RecoSummaryTask::runOnRecHits(), ecaldqm::ClusterTask::runOnSuperClusters(), EcalClusterToolsT< noZS >::scLocalCovariances(), EcalMipGraphs::selectDigi(), EcalDisplaysByEvent::selectDigi(), EcalMipGraphs::selectHits(), EcalDisplaysByEvent::selectHits(), and ExhaustiveMuonTrajectoryBuilder::trajectories().

33 {
34  return (subdet == PixelBarrel || subdet == TIB || subdet == TOB || subdet == P1PXB || subdet == P2OTB || isDT(subdet) || subdet == RPCBarrel);
35 }
bool isDT(const GeomDetEnumerators::SubDetector m)
bool GeomDetEnumerators::isCSC ( const GeomDetEnumerators::SubDetector  m)

Definition at line 67 of file GeomDetEnumerators.cc.

References CSC.

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

68 {
69  return (subdet == CSC) ;
70 }
</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 ( const GeomDetEnumerators::SubDetector  m)
bool GeomDetEnumerators::isEndcap ( GeomDetEnumerators::SubDetector  m)
bool GeomDetEnumerators::isGEM ( const GeomDetEnumerators::SubDetector  m)

Definition at line 78 of file GeomDetEnumerators.cc.

References GEM.

Referenced by GeomDetType::isGEM().

79 {
80  return (subdet == GEM ) ;
81 }
bool GeomDetEnumerators::isME0 ( const GeomDetEnumerators::SubDetector  m)

Definition at line 83 of file GeomDetEnumerators.cc.

References ME0.

Referenced by GeomDetType::isME0().

84 {
85  return (subdet == ME0 ) ;
86 }
bool GeomDetEnumerators::isMuon ( const GeomDetEnumerators::SubDetector  m)

Definition at line 89 of file GeomDetEnumerators.cc.

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

Referenced by GeomDetType::isMuon().

90 {
91  return (subdet == DT || subdet == CSC || isRPC(subdet) || subdet == GEM || subdet == ME0) ;
92 }
bool isRPC(const 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
bool GeomDetEnumerators::isRPC ( const GeomDetEnumerators::SubDetector  m)
bool GeomDetEnumerators::isTracker ( const GeomDetEnumerators::SubDetector  m)

Definition at line 56 of file GeomDetEnumerators.cc.

References isTrackerPixel(), and isTrackerStrip().

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

57 {
58  return ( isTrackerStrip(subdet) || isTrackerPixel(subdet) );
59 }
bool isTrackerStrip(const GeomDetEnumerators::SubDetector m)
bool isTrackerPixel(const GeomDetEnumerators::SubDetector m)
bool GeomDetEnumerators::isTrackerPixel ( const GeomDetEnumerators::SubDetector  m)
bool GeomDetEnumerators::isTrackerStrip ( const GeomDetEnumerators::SubDetector  m)

Variable Documentation

unsigned int GeomDetEnumerators::subDetId[18] ={1,2,3,5,4,6, 0, 0,0,0,0,0,5,4,1,2,2, 0}

Definition at line 13 of file GeomDetEnumerators.h.

Referenced by TrajectorySeedProducer::produce().

SubDetector GeomDetEnumerators::tkDetEnum[8] ={invalidDet, PixelBarrel, PixelEndcap, TIB, TID, TOB, TEC, invalidDet}