#include <GEMRing.h>
Public Member Functions | |
void | add (GEMSuperChamber *ch) |
Add super chamber to the ring which takes ownership. More... | |
virtual const GeomDet * | component (DetId id) const |
Return the sub-component (super chamber) with a given id in this ring. More... | |
virtual std::vector< const GeomDet * > | components () const |
Return the super chambers in the ring. More... | |
GEMRing (int region, int station, int ring) | |
constructor More... | |
std::vector< GEMDetId > | ids () const |
Return the vector of GEMDetIds in this ring. More... | |
int | nSuperChambers () const |
Return numbers of chambers. More... | |
bool | operator== (const GEMRing &sch) const |
equal if the id is the same More... | |
int | region () const |
Return the region number. More... | |
int | ring () const |
Return the ring number. More... | |
int | station () const |
Return the station number. More... | |
const GEMSuperChamber * | superChamber (GEMDetId id) const |
Return the chamber corresponding to the given id. More... | |
const GEMSuperChamber * | superChamber (int sch) const |
const std::vector< const GEMSuperChamber * > & | superChambers () const |
Return the chambers in the ring. More... | |
~GEMRing () | |
destructor More... | |
Private Attributes | |
std::vector< GEMDetId > | detIds_ |
int | region_ |
int | ring_ |
int | station_ |
std::vector< const GEMSuperChamber * > | superChambers_ |
Model of a GEM Ring
A ring is composed of 36 super chambers
GEMRing::GEMRing | ( | int | region, |
int | station, | ||
int | ring | ||
) |
GEMRing::~GEMRing | ( | ) |
void GEMRing::add | ( | GEMSuperChamber * | ch | ) |
Add super chamber to the ring which takes ownership.
Definition at line 22 of file GEMRing.cc.
References superChambers_.
Referenced by GEMGeometryBuilderFromDDD::buildGeometry().
Return the sub-component (super chamber) with a given id in this ring.
Definition at line 35 of file GEMRing.cc.
References superChamber().
|
virtual |
Return the super chambers in the ring.
Definition at line 26 of file GEMRing.cc.
References query::result, and superChambers_.
std::vector< GEMDetId > GEMRing::ids | ( | ) | const |
Return the vector of GEMDetIds in this ring.
Definition at line 12 of file GEMRing.cc.
References detIds_.
int GEMRing::nSuperChambers | ( | ) | const |
Return numbers of chambers.
Definition at line 57 of file GEMRing.cc.
References superChambers_.
bool GEMRing::operator== | ( | const GEMRing & | sch | ) | const |
int GEMRing::region | ( | ) | const |
Return the region number.
Definition at line 61 of file GEMRing.cc.
References region_.
Referenced by operator==(), GEMGeometry::ring(), and superChamber().
int GEMRing::ring | ( | ) | const |
Return the ring number.
Definition at line 69 of file GEMRing.cc.
References ring_.
Referenced by geometryXMLparser.CSCAlignable::index(), operator==(), GEMGeometry::ring(), and superChamber().
int GEMRing::station | ( | ) | const |
Return the station number.
Definition at line 65 of file GEMRing.cc.
References station_.
Referenced by geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), operator==(), GEMGeometry::ring(), and superChamber().
const GEMSuperChamber * GEMRing::superChamber | ( | GEMDetId | id | ) | const |
Return the chamber corresponding to the given id.
Definition at line 39 of file GEMRing.cc.
References region(), region_, ring(), ring_, station(), and station_.
Referenced by component(), GEMStation::superChamber(), and GEMRegion::superChamber().
const GEMSuperChamber * GEMRing::superChamber | ( | int | sch | ) | const |
Definition at line 44 of file GEMRing.cc.
References superChambers_.
const std::vector< const GEMSuperChamber * > & GEMRing::superChambers | ( | ) | const |
Return the chambers in the ring.
Definition at line 53 of file GEMRing.cc.
References superChambers_.
|
private |
|
private |
Definition at line 65 of file GEMRing.h.
Referenced by operator==(), region(), and superChamber().
|
private |
Definition at line 67 of file GEMRing.h.
Referenced by operator==(), ring(), and superChamber().
|
private |
Definition at line 66 of file GEMRing.h.
Referenced by operator==(), station(), and superChamber().
|
private |
Definition at line 72 of file GEMRing.h.
Referenced by add(), components(), nSuperChambers(), superChamber(), and superChambers().