39 mapIdToDet::const_iterator
i =
theMap.find(
id);
40 return (i !=
theMap.end()) ? i->second :
nullptr;
121 theDets.emplace_back(superChamber);
123 theMap.insert(std::pair<DetId,const GeomDet*>
129 theDets.emplace_back(etaPartition);
135 theMap.insert(std::pair<DetId,const GeomDet*>
144 theMap.insert(std::pair<DetId,const GeomDet*>
const DetIdContainer & detIds() const override
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
int region() const
Return the region number.
~GEMGeometry() override
Destructor.
int station() const
Return the station number.
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
std::vector< const GEMRegion * > allRegions
std::vector< const GEMEtaPartition * > allEtaPartitions
DetContainer theEtaPartitions
DetIdContainer theEtaPartitionIds
int region() const
Get the region.
std::vector< const GEMSuperChamber * > allSuperChambers
int station() const
Get the station.
const GEMRing * ring(int region, int station, int ring) const
Return a GEMRing.
const GEMRegion * region(int region) const
GEMGeometry()
Default constructor.
const DetTypeContainer & detTypes() const override
Return a vector of all det types.
const GEMEtaPartition * etaPartition(GEMDetId id) const
Return a GEMEtaPartition given its id.
std::vector< const GEMRing * > allRings
int ring() const
Return the ring number.
int region() const
Return the region.
std::vector< const GEMStation * > allStations
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
const std::vector< const GEMRegion * > & regions() const
Return a vector of all GEM regions.
const std::vector< const GEMEtaPartition * > & etaPartitions() const
Return a vector of all GEM eta partitions.
DetId geographicalId() const
The label of this GeomDet.
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
const GEMSuperChamber * superChamber(GEMDetId id) const
const GEMStation * station(int region, int station) const
const std::vector< const GEMSuperChamber * > & superChambers() const
Return a vector of all GEM super chambers.
const std::vector< const GEMRing * > & rings() const
Return a vector of all GEM rings.
const DetIdContainer & detUnitIds() const override
Returm a vector of all GeomDetUnit DetIds.
const GeomDet * idToDet(DetId) const override
const GEMChamber * chamber(GEMDetId id) const
const std::vector< const GEMChamber * > & chambers() const
Return a vector of all GEM chambers.
std::vector< DetId > DetIdContainer
std::vector< const GeomDet * > DetContainer
const std::vector< const GEMStation * > & stations() const
Return a vector of all GEM stations.
DetTypeContainer theEtaPartitionTypes
std::vector< const GEMChamber * > allChambers
std::vector< const GeomDetType * > DetTypeContainer
void add(const GEMRegion *region)
Add a GEMRegion to the Geometry.