#include <GlobalTrackingGeometry.h>
Public Member Functions | |
virtual const DetIdContainer & | detIds () const |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More... | |
virtual const DetContainer & | dets () const |
Returm a vector of all GeomDet (including all GeomDetUnits) More... | |
virtual const DetTypeContainer & | detTypes () const |
Return a vector of all det types. More... | |
virtual const DetIdContainer & | detUnitIds () const |
Returm a vector of all GeomDetUnit DetIds. More... | |
virtual const DetUnitContainer & | detUnits () const |
Returm a vector of all GeomDetUnit. More... | |
GlobalTrackingGeometry (std::vector< const TrackingGeometry * > &geos) | |
Constructor. More... | |
virtual const GeomDet * | idToDet (DetId) const |
virtual const GeomDetUnit * | idToDetUnit (DetId) const |
Return the pointer to the GeomDetUnit corresponding to a given DetId. More... | |
const TrackingGeometry * | slaveGeometry (DetId id) const |
Return the pointer to the actual geometry for a given DetId. More... | |
virtual | ~GlobalTrackingGeometry () |
Destructor. More... | |
Public Member Functions inherited from TrackingGeometry | |
virtual | ~TrackingGeometry () |
Destructor. More... | |
Private Attributes | |
std::atomic< DetIdContainer * > | theDetIds |
std::atomic< DetContainer * > | theDets |
std::atomic< DetTypeContainer * > | theDetTypes |
std::atomic< DetIdContainer * > | theDetUnitIds |
std::atomic< DetUnitContainer * > | theDetUnits |
std::vector< const TrackingGeometry * > | theGeometries |
Additional Inherited Members | |
Public Types inherited from TrackingGeometry | |
typedef std::vector< GeomDet const * > | DetContainer |
typedef std::vector< DetId > | DetIdContainer |
typedef std::vector< GeomDetType const * > | DetTypeContainer |
typedef std::vector< GeomDetUnit const * > | DetUnitContainer |
typedef std::unordered_map< unsigned int, GeomDet const * > | mapIdToDet |
typedef std::unordered_map< unsigned int, GeomDetUnit const * > | mapIdToDetUnit |
Single entry point to the tracker and muon geometries. The main purpose is to provide the methods idToDetUnit(DetId) and idToDet(DetId) that allow to get an element of the geometry given its DetId, regardless of wich subdetector it belongs.
The slave geometries (TrackerGeometry, DTGeometry, CSCGeometry, RPCGeometry, GEMGeometry, ME0Geometry) are accessible with the method slaveGeometry(DetId).
ESProducer for GlobalTrackingGeometry in MuonGeometryRecord
Definition at line 20 of file GlobalTrackingGeometry.h.
GlobalTrackingGeometry::GlobalTrackingGeometry | ( | std::vector< const TrackingGeometry * > & | geos | ) |
Constructor.
Definition at line 11 of file GlobalTrackingGeometry.cc.
|
virtual |
Destructor.
Definition at line 16 of file GlobalTrackingGeometry.cc.
References theDetIds, theDets, theDetTypes, theDetUnitIds, and theDetUnits.
|
virtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 151 of file GlobalTrackingGeometry.cc.
References relativeConstraints::geom, theDetIds, and theGeometries.
|
virtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 109 of file GlobalTrackingGeometry.cc.
References relativeConstraints::geom, theDets, and theGeometries.
|
virtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 67 of file GlobalTrackingGeometry.cc.
References relativeConstraints::geom, theDetTypes, and theGeometries.
|
virtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 130 of file GlobalTrackingGeometry.cc.
References relativeConstraints::geom, theDetUnitIds, and theGeometries.
|
virtual |
Returm a vector of all GeomDetUnit.
Implements TrackingGeometry.
Definition at line 88 of file GlobalTrackingGeometry.cc.
References relativeConstraints::geom, theDetUnits, and theGeometries.
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 42 of file GlobalTrackingGeometry.cc.
References TrackingGeometry::idToDet(), and slaveGeometry().
Referenced by MuonDT2ChamberResidual::addResidual(), MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonAlignmentAnalyzer::analyze(), MuonIdVal::analyze(), MuonAlignment::analyze(), SegmentToTrackAssociator::associate(), SegmentsTrackAssociator::associate(), MuonTransientTrackingRecHitBuilder::build(), reco::helper::JetMuonHitsIDHelper::calculate(), MuonIdTruthInfo::checkSimHitForBestMatch(), ResidualRefitting::CollectTrackHits(), OutsideInMuonSeeder::doDebug(), MuonAlignmentAnalyzer::doMatching(), MuonAlignment::doMatching(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), MuonDetIdAssociator::getDetIdPoints(), MuonDetIdAssociator::getGeomDet(), GlobalTrajectoryBuilderBase::getTransientRecHits(), MuonChamberResidual::hitposition(), MuonDetIdAssociator::insideElement(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), CosmicParametersDefinerForTP::momentum(), MuonCSCChamberResidual::MuonCSCChamberResidual(), MuonDT13ChamberResidual::MuonDT13ChamberResidual(), MuonDT2ChamberResidual::MuonDT2ChamberResidual(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonTrackCSCChamberResidual::MuonTrackCSCChamberResidual(), MuonTrackDT13ChamberResidual::MuonTrackDT13ChamberResidual(), MuonTrackDT2ChamberResidual::MuonTrackDT2ChamberResidual(), MuonSeedCleaner::NChi2OfSegment(), ResidualRefitting::NewTrackMeasurements(), MuonSeedCleaner::NRecHitsFromSegment(), CosmicTrackingParticleSelector::operator()(), MuonSeedCleaner::OverlapSegments(), GlobalMuonToMuonProducer::printTrackRecHits(), JetCoreClusterSplitter::produce(), MuonMillepedeTrackRefitter::produce(), TrackClusterSplitter::produce(), MuonSeedCleaner::SeedCandidates(), MuonSeedCleaner::SeedMomentum(), MuonSeedCleaner::SeedPosition(), SeedToTrackProducer::seedTransientState(), TrackClusterSplitter::splitClusters(), ExhaustiveMuonTrajectoryBuilder::trajectories(), ResidualRefitting::trkExtrap(), and CosmicParametersDefinerForTP::vertex().
|
virtual |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 30 of file GlobalTrackingGeometry.cc.
References TrackingGeometry::idToDetUnit(), and slaveGeometry().
Referenced by JetCoreClusterSplitter::produce(), and TrackClusterSplitter::splitCluster().
const TrackingGeometry * GlobalTrackingGeometry::slaveGeometry | ( | DetId | id | ) | const |
Return the pointer to the actual geometry for a given DetId.
Definition at line 53 of file GlobalTrackingGeometry.cc.
References Exception, training_settings::idx, DetId::Muon, and theGeometries.
Referenced by FWRecoGeometryESProducer::addCSCGeometry(), FWTGeoRecoGeometryESProducer::addCSCGeometry(), FWRecoGeometryESProducer::addDTGeometry(), FWTGeoRecoGeometryESProducer::addDTGeometry(), FWRecoGeometryESProducer::addGEMGeometry(), FWTGeoRecoGeometryESProducer::addGEMGeometry(), FWRecoGeometryESProducer::addME0Geometry(), FWTGeoRecoGeometryESProducer::addME0Geometry(), MuonCSCChamberResidual::addResidual(), FWRecoGeometryESProducer::addRPCGeometry(), FWTGeoRecoGeometryESProducer::addRPCGeometry(), MuonDetIdAssociator::getValidDetIds(), idToDet(), idToDetUnit(), FWRecoGeometryESProducer::produce(), and FWTGeoRecoGeometryESProducer::produce().
|
mutableprivate |
Definition at line 65 of file GlobalTrackingGeometry.h.
Referenced by detIds(), and ~GlobalTrackingGeometry().
|
mutableprivate |
Definition at line 63 of file GlobalTrackingGeometry.h.
Referenced by dets(), and ~GlobalTrackingGeometry().
|
mutableprivate |
Definition at line 61 of file GlobalTrackingGeometry.h.
Referenced by detTypes(), and ~GlobalTrackingGeometry().
|
mutableprivate |
Definition at line 64 of file GlobalTrackingGeometry.h.
Referenced by detUnitIds(), and ~GlobalTrackingGeometry().
|
mutableprivate |
Definition at line 62 of file GlobalTrackingGeometry.h.
Referenced by detUnits(), and ~GlobalTrackingGeometry().
|
private |
Definition at line 56 of file GlobalTrackingGeometry.h.
Referenced by detIds(), dets(), detTypes(), detUnitIds(), detUnits(), and slaveGeometry().