#include <GEMStation.h>
Public Member Functions | |
void | add (GEMRing *ring) |
Add ring to the station which takes ownership. More... | |
const GeomDet * | component (DetId id) const |
Return the sub-component (super chamber) with a given id in this station. More... | |
std::vector< const GeomDet * > | components () const |
Return the super chambers in the station. More... | |
GEMStation (int region, int station) | |
constructor More... | |
const std::string | getName () const |
Set the station name. More... | |
std::vector< GEMDetId > | ids () const |
Return the vector of GEMDetIds in this station. More... | |
int | nRings () const |
Return numbers of rings for this station. More... | |
bool | operator== (const GEMStation &st) const |
equal if the id is the same More... | |
int | region () const |
Get the region. More... | |
const GEMRing * | ring (int ring) const |
Get a ring. More... | |
const std::vector< const GEMRing * > & | rings () const |
Return the rings in the station. More... | |
void | setName (std::string name) |
Set the station name. More... | |
int | station () const |
Get the station. More... | |
const GEMSuperChamber * | superChamber (GEMDetId id) const |
Return the chamber corresponding to the given id. More... | |
std::vector< const GEMSuperChamber * > | superChambers () const |
Return the super chambers in the region. More... | |
~GEMStation () | |
destructor More... | |
Private Attributes | |
std::string | name_ |
int | region_ |
std::vector< const GEMRing * > | rings_ |
int | station_ |
Model of a GEM Station
A station is composed of maximal 3 rings
Definition at line 19 of file GEMStation.h.
GEMStation::GEMStation | ( | int | region, |
int | station | ||
) |
GEMStation::~GEMStation | ( | ) |
void GEMStation::add | ( | GEMRing * | ring | ) |
Add ring to the station which takes ownership.
Definition at line 28 of file GEMStation.cc.
References rings_.
Referenced by GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilderFromDDD::build(), and counter.Counter::register().
Return the sub-component (super chamber) with a given id in this station.
Definition at line 41 of file GEMStation.cc.
References ring().
std::vector< const GeomDet * > GEMStation::components | ( | ) | const |
Return the super chambers in the station.
Definition at line 32 of file GEMStation.cc.
References mps_fire::result, and rings_.
const std::string GEMStation::getName | ( | void | ) | const |
Set the station name.
Definition at line 81 of file GEMStation.cc.
References name_.
Referenced by plotting.Plot::draw().
std::vector< GEMDetId > GEMStation::ids | ( | ) | const |
Return the vector of GEMDetIds in this station.
Definition at line 15 of file GEMStation.cc.
References mps_fire::result, and rings_.
int GEMStation::nRings | ( | ) | const |
Return numbers of rings for this station.
Definition at line 73 of file GEMStation.cc.
References rings_.
Referenced by GEMGeometryBuilderFromCondDB::build().
bool GEMStation::operator== | ( | const GEMStation & | st | ) | const |
int GEMStation::region | ( | ) | const |
Get the region.
Definition at line 85 of file GEMStation.cc.
References region_.
Referenced by GEMBaseValidation::getDCEta(), operator==(), GEMGeometry::station(), and superChamber().
const GEMRing * GEMStation::ring | ( | int | ring | ) | const |
Get a ring.
Definition at line 60 of file GEMStation.cc.
References rings_.
Referenced by component(), geometryXMLparser.CSCAlignable::index(), superChamber(), and GEMRegion::superChamber().
const std::vector< const GEMRing * > & GEMStation::rings | ( | ) | const |
Return the rings in the station.
Definition at line 69 of file GEMStation.cc.
References rings_.
Referenced by GEMBaseValidation::getDCEta().
void GEMStation::setName | ( | std::string | name | ) |
Set the station name.
Definition at line 77 of file GEMStation.cc.
References eostools::move(), and name_.
Referenced by GEMGeometryBuilderFromCondDB::build(), and GEMGeometryBuilderFromDDD::build().
int GEMStation::station | ( | ) | const |
Get the station.
Definition at line 89 of file GEMStation.cc.
References station_.
Referenced by GEMBaseValidation::getDCEta(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), operator==(), GEMGeometry::station(), and superChamber().
const GEMSuperChamber * GEMStation::superChamber | ( | GEMDetId | id | ) | const |
Return the chamber corresponding to the given id.
Definition at line 46 of file GEMStation.cc.
References relativeConstraints::chamber, region(), region_, ring(), station(), station_, and GEMRing::superChamber().
std::vector< const GEMSuperChamber * > GEMStation::superChambers | ( | ) | const |
Return the super chambers in the region.
Definition at line 51 of file GEMStation.cc.
References mps_fire::result, and rings_.
|
private |
Definition at line 77 of file GEMStation.h.
|
private |
Definition at line 72 of file GEMStation.h.
Referenced by operator==(), region(), and superChamber().
|
private |
Definition at line 76 of file GEMStation.h.
Referenced by add(), components(), ids(), nRings(), ring(), rings(), and superChambers().
|
private |
Definition at line 73 of file GEMStation.h.
Referenced by operator==(), station(), and superChamber().