39 mapIdToDet::const_iterator
i =
theMap.find(
id);
40 return (i !=
theMap.end()) ? i->second : 0;
93 if (sch->id() != id)
continue;
125 theDets.push_back(superChamber);
127 theMap.insert(std::pair<DetId,GeomDet*>
133 theDets.push_back(etaPartition);
140 theMap.insert(std::pair<DetId,const GeomDetUnit*>
149 theMap.insert(std::pair<DetId,GeomDet*>
int region() const
Return the region number.
int station() const
Return the station number.
std::vector< GeomDetType const * > DetTypeContainer
std::vector< const GEMRegion * > allRegions
std::vector< const GEMEtaPartition * > allEtaPartitions
virtual const GeomDetUnit * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
DetIdContainer theEtaPartitionIds
int region() const
Get the region.
virtual const GeomDet * idToDet(DetId) const override
std::vector< const GEMSuperChamber * > allSuperChambers
virtual const DetTypeContainer & detTypes() const override
Return a vector of all det types.
int station() const
Get the station.
virtual const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
virtual const DetIdContainer & detUnitIds() const override
Returm a vector of all GeomDetUnit DetIds.
const GEMRing * ring(int region, int station, int ring) const
Return a GEMRing.
const GEMRegion * region(int region) const
GEMGeometry()
Default constructor.
const GEMEtaPartition * etaPartition(GEMDetId id) const
Return a GEMEtaPartition given its id.
std::vector< const GEMRing * > allRings
virtual ~GEMGeometry()
Destructor.
int ring() const
Return the ring number.
int region() const
Return the region.
std::vector< const GEMStation * > allStations
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 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.
void add(GEMRegion *region)
Add a GEMRegion to the Geometry.
const std::vector< const GEMRing * > & rings() const
Return a vector of all GEM rings.
DetUnitContainer theEtaPartitions
const GEMChamber * chamber(GEMDetId id) const
virtual const DetIdContainer & detIds() const override
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
const std::vector< const GEMChamber * > & chambers() const
Return a vector of all GEM chambers.
virtual const DetUnitContainer & detUnits() const override
Returm a vector of all GeomDetUnit.
const std::vector< const GEMStation * > & stations() const
Return a vector of all GEM stations.
DetTypeContainer theEtaPartitionTypes
std::vector< const GEMChamber * > allChambers
std::vector< GeomDet const * > DetContainer
std::vector< GeomDetUnit const * > DetUnitContainer
std::vector< DetId > DetIdContainer