#include <GlobalTrackingGeometry.h>
Public Member Functions | |
const DetIdContainer & | detIds () const override |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More... | |
const DetContainer & | dets () const override |
Returm a vector of all GeomDet (including all GeomDetUnits) More... | |
const DetTypeContainer & | detTypes () const override |
Return a vector of all det types. More... | |
const DetIdContainer & | detUnitIds () const override |
Returm a vector of all GeomDetUnit DetIds. More... | |
const DetContainer & | detUnits () const override |
Returm a vector of all GeomDet. More... | |
GlobalTrackingGeometry (std::vector< const TrackingGeometry * > &geos) | |
const GeomDet * | idToDet (DetId) const override |
const GeomDet * | idToDetUnit (DetId) const override |
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... | |
~GlobalTrackingGeometry () override | |
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< DetContainer * > | theDetUnits |
std::vector< const TrackingGeometry * > | theGeometries |
Additional Inherited Members | |
Public Types inherited from TrackingGeometry | |
using | DetContainer = std::vector< const GeomDet * > |
using | DetIdContainer = std::vector< DetId > |
using | DetTypeContainer = std::vector< const GeomDetType * > |
using | mapIdToDet = std::unordered_map< unsigned int, const GeomDet * > |
using | mapIdToDetUnit = std::unordered_map< unsigned int, const GeomDet * > |
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, MTDGeometry, 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 | ) |
Definition at line 13 of file GlobalTrackingGeometry.cc.
|
override |
Definition at line 21 of file GlobalTrackingGeometry.cc.
References theDetIds, theDets, theDetTypes, theDetUnitIds, and theDetUnits.
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 149 of file GlobalTrackingGeometry.cc.
References theDetIds, and theGeometries.
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 109 of file GlobalTrackingGeometry.cc.
References theDets, and theGeometries.
|
overridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 69 of file GlobalTrackingGeometry.cc.
References theDetTypes, and theGeometries.
|
overridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 129 of file GlobalTrackingGeometry.cc.
References theDetUnitIds, and theGeometries.
|
overridevirtual |
Returm a vector of all GeomDet.
Implements TrackingGeometry.
Definition at line 89 of file GlobalTrackingGeometry.cc.
References theDetUnits, and theGeometries.
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 44 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(), TrackExtenderWithMTDT< TrackCollection >::buildTrackExtra(), reco::helper::JetMuonHitsIDHelper::calculate(), TrackTransformer::checkRecHitsOrdering(), MuonIdTruthInfo::checkSimHitForBestMatch(), ResidualRefitting::CollectTrackHits(), OutsideInMuonSeeder::doDebug(), MuonAlignmentAnalyzer::doMatching(), MuonAlignment::doMatching(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), MuonDetIdAssociator::getDetIdPoints(), MuonDetIdAssociator::getGeomDet(), pat::PATMuonProducer::getMuonDirection(), 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(), MuonSeedCleaner::SeedCandidates(), MuonSeedCleaner::SeedMomentum(), MuonSeedCleaner::SeedPosition(), SeedToTrackProducer::seedTransientState(), ExhaustiveMuonTrajectoryBuilder::trajectories(), ResidualRefitting::trkExtrap(), and CosmicParametersDefinerForTP::vertex().
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 34 of file GlobalTrackingGeometry.cc.
References TrackingGeometry::idToDetUnit(), and slaveGeometry().
Referenced by JetCoreClusterSplitter::produce().
const TrackingGeometry * GlobalTrackingGeometry::slaveGeometry | ( | DetId | id | ) | const |
Return the pointer to the actual geometry for a given DetId.
Definition at line 54 of file GlobalTrackingGeometry.cc.
References Exception, FastTime, DetId::Forward, 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 61 of file GlobalTrackingGeometry.h.
Referenced by detIds(), and ~GlobalTrackingGeometry().
|
mutableprivate |
Definition at line 59 of file GlobalTrackingGeometry.h.
Referenced by dets(), and ~GlobalTrackingGeometry().
|
mutableprivate |
Definition at line 57 of file GlobalTrackingGeometry.h.
Referenced by detTypes(), and ~GlobalTrackingGeometry().
|
mutableprivate |
Definition at line 60 of file GlobalTrackingGeometry.h.
Referenced by detUnitIds(), and ~GlobalTrackingGeometry().
|
mutableprivate |
Definition at line 58 of file GlobalTrackingGeometry.h.
Referenced by detUnits(), and ~GlobalTrackingGeometry().
|
private |
Definition at line 52 of file GlobalTrackingGeometry.h.
Referenced by detIds(), dets(), detTypes(), detUnitIds(), detUnits(), and slaveGeometry().