14 std::vector<GEMDetId>
result;
16 std::vector<GEMDetId> newIds(ri->ids());
17 result.insert(result.end(), newIds.begin(), newIds.end());
31 std::vector<const GeomDet*>
result;
33 auto newSch(ri->components());
34 result.insert(result.end(), newSch.begin(), newSch.end());
50 std::vector<const GEMSuperChamber*>
result;
52 std::vector<const GEMSuperChamber*> newSch(ri->superChambers());
53 result.insert(result.end(), newSch.begin(), newSch.end());
60 if (ring == ri->ring()) {
std::vector< const GeomDet * > components() const
Return the super chambers in the station.
bool operator==(const GEMStation &st) const
equal if the id is the same
int region() const
Get the region.
int station() const
Get the station.
void add(GEMRing *ring)
Add ring to the station which takes ownership.
std::vector< const GEMSuperChamber * > superChambers() const
Return the super chambers in the region.
const GEMRing * ring(int ring) const
Get a ring.
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the chamber corresponding to the given id.
const std::string getName() const
Set the station name.
const GeomDet * component(DetId id) const
Return the sub-component (super chamber) with a given id in this station.
void setName(std::string name)
Set the station name.
std::vector< const GEMRing * > rings_
std::vector< GEMDetId > ids() const
Return the vector of GEMDetIds in this station.
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the chamber corresponding to the given id.
GEMStation(int region, int station)
constructor
int nRings() const
Return numbers of rings for this station.
const std::vector< const GEMRing * > & rings() const
Return the rings in the station.