#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 26 of file GEMStation.cc.
References rings_.
Referenced by GEMGeometryBuilderFromDDD::buildGeometry(), and counter.Counter::register().
Return the sub-component (super chamber) with a given id in this station.
Definition at line 39 of file GEMStation.cc.
References component(), and ring().
Referenced by component().
std::vector< const GeomDet * > GEMStation::components | ( | ) | const |
Return the super chambers in the station.
Definition at line 30 of file GEMStation.cc.
References mps_fire::result, and rings_.
const std::string GEMStation::getName | ( | void | ) | const |
Set the station name.
Definition at line 79 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 13 of file GEMStation.cc.
References mps_fire::result, and rings_.
int GEMStation::nRings | ( | ) | const |
Return numbers of rings for this station.
Definition at line 71 of file GEMStation.cc.
References rings_.
bool GEMStation::operator== | ( | const GEMStation & | st | ) | const |
int GEMStation::region | ( | ) | const |
Get the region.
Definition at line 83 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 58 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 67 of file GEMStation.cc.
References rings_.
Referenced by GEMBaseValidation::getDCEta().
void GEMStation::setName | ( | std::string | name | ) |
Set the station name.
Definition at line 75 of file GEMStation.cc.
References dataset::name, and name_.
Referenced by GEMGeometryBuilderFromDDD::buildGeometry().
int GEMStation::station | ( | ) | const |
Get the station.
Definition at line 87 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 44 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 49 of file GEMStation.cc.
References mps_fire::result, and rings_.
Referenced by GEMBaseValidation::getDCEta().
|
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().