#include <GEMRegion.h>
Public Member Functions | |
void | add (GEMStation *st) |
Add station to the region which takes ownership. More... | |
virtual const GeomDet * | component (DetId id) const |
Return the sub-component (super chamber) with a given id in this region. More... | |
virtual std::vector< const GeomDet * > | components () const |
Return the super chambers in the region. More... | |
GEMRegion (int region) | |
constructor More... | |
std::vector< GEMDetId > | ids () const |
Return the vector of GEMDetIds in this ring. More... | |
int | nStations () const |
Return numbers of stations. More... | |
bool | operator== (const GEMRegion ®) const |
equal if the id is the same More... | |
int | region () const |
Return the region. More... | |
const GEMStation * | station (int st) const |
Return a station. More... | |
const std::vector< const GEMStation * > & | stations () const |
Return all stations. More... | |
const GEMSuperChamber * | superChamber (GEMDetId id) const |
Return the super chamber corresponding to the given id. More... | |
std::vector< const GEMSuperChamber * > | superChambers () const |
Return the super chambers in the region. More... | |
~GEMRegion () | |
destructor More... | |
Private Attributes | |
int | region_ |
std::vector< const GEMStation * > | stations_ |
GEMRegion::GEMRegion | ( | int | region | ) |
GEMRegion::~GEMRegion | ( | ) |
void GEMRegion::add | ( | GEMStation * | st | ) |
Add station to the region which takes ownership.
Definition at line 25 of file GEMRegion.cc.
References stations_.
Referenced by GEMGeometryBuilderFromDDD::buildGeometry(), and counter.Counter::register().
Return the sub-component (super chamber) with a given id in this region.
Definition at line 38 of file GEMRegion.cc.
References station().
|
virtual |
Return the super chambers in the region.
Definition at line 29 of file GEMRegion.cc.
References query::result, and stations_.
std::vector< GEMDetId > GEMRegion::ids | ( | ) | const |
Return the vector of GEMDetIds in this ring.
Definition at line 12 of file GEMRegion.cc.
References query::result, and stations_.
int GEMRegion::nStations | ( | ) | const |
bool GEMRegion::operator== | ( | const GEMRegion & | reg | ) | const |
equal if the id is the same
Definition at line 21 of file GEMRegion.cc.
int GEMRegion::region | ( | ) | const |
Return the region.
Definition at line 74 of file GEMRegion.cc.
References region_.
Referenced by operator==(), GEMGeometry::region(), and superChamber().
const GEMStation * GEMRegion::station | ( | int | st | ) | const |
Return a station.
Definition at line 57 of file GEMRegion.cc.
References stations_.
Referenced by component(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and superChamber().
const std::vector< const GEMStation * > & GEMRegion::stations | ( | ) | const |
const GEMSuperChamber * GEMRegion::superChamber | ( | GEMDetId | id | ) | const |
Return the super chamber corresponding to the given id.
Definition at line 43 of file GEMRegion.cc.
References region(), region_, GEMStation::ring(), relativeConstraints::ring, station(), and GEMRing::superChamber().
std::vector< const GEMSuperChamber * > GEMRegion::superChambers | ( | ) | const |
Return the super chambers in the region.
Definition at line 48 of file GEMRegion.cc.
References query::result, and stations_.
|
private |
Definition at line 63 of file GEMRegion.h.
Referenced by operator==(), region(), and superChamber().
|
private |
Definition at line 65 of file GEMRegion.h.
Referenced by add(), components(), ids(), nStations(), station(), stations(), and superChambers().