#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 22 of file GEMStation.cc.
References rings_.
Referenced by GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilder::buildRegions(), and counter.Counter::register().
Return the sub-component (super chamber) with a given id in this station.
Definition at line 33 of file GEMStation.cc.
References ring().
std::vector< const GeomDet * > GEMStation::components | ( | ) | const |
Return the super chambers in the station.
Definition at line 24 of file GEMStation.cc.
References mps_fire::result, and rings_.
const std::string GEMStation::getName | ( | void | ) | const |
Set the station name.
Definition at line 68 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 11 of file GEMStation.cc.
References mps_fire::result, and rings_.
int GEMStation::nRings | ( | ) | const |
Return numbers of rings for this station.
Definition at line 64 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 70 of file GEMStation.cc.
References region_.
Referenced by operator==(), GEMGeometry::station(), and superChamber().
const GEMRing * GEMStation::ring | ( | int | ring | ) | const |
Get a ring.
Definition at line 53 of file GEMStation.cc.
References rings_.
Referenced by component(), geometryXMLparser.CSCAlignable::index(), superChamber(), and GEMRegion::superChamber().
const std::vector< const GEMRing * > & GEMStation::rings | ( | ) | const |
void GEMStation::setName | ( | std::string | name | ) |
Set the station name.
Definition at line 66 of file GEMStation.cc.
References eostools::move(), and name_.
Referenced by GEMGeometryBuilderFromCondDB::build(), and GEMGeometryBuilder::buildRegions().
int GEMStation::station | ( | ) | const |
Get the station.
Definition at line 72 of file GEMStation.cc.
References station_.
Referenced by geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), operator==(), GEMOfflineDQMBase::setDetLabelsVFAT(), GEMGeometry::station(), and superChamber().
const GEMSuperChamber * GEMStation::superChamber | ( | GEMDetId | id | ) | const |
Return the chamber corresponding to the given id.
Definition at line 38 of file GEMStation.cc.
References 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 44 of file GEMStation.cc.
References mps_fire::result, and rings_.
Referenced by GEMBaseValidation::bookDetectorOccupancy(), GEMOfflineDQMBase::getNumEtaPartitions(), GEMDQMBase::getNumEtaPartitions(), GEMOfflineDQMBase::setDetLabelsEta(), and GEMOfflineDQMBase::setDetLabelsVFAT().
|
private |
Definition at line 75 of file GEMStation.h.
|
private |
Definition at line 70 of file GEMStation.h.
Referenced by operator==(), region(), and superChamber().
|
private |
Definition at line 74 of file GEMStation.h.
Referenced by add(), components(), ids(), nRings(), ring(), rings(), and superChambers().
|
private |
Definition at line 71 of file GEMStation.h.
Referenced by operator==(), station(), and superChamber().