#include <GEMRing.h>
Public Member Functions | |
void | add (GEMSuperChamber *ch) |
Add super chamber to the ring which takes ownership. More... | |
const GeomDet * | component (DetId id) const |
Return the sub-component (super chamber) with a given id in this ring. More... | |
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 14 of file GEMRing.cc.
References superChambers_.
Referenced by counter.Counter::register().
Return the sub-component (super chamber) with a given id in this ring.
Definition at line 25 of file GEMRing.cc.
References nano_mu_digi_cff::rawId, and superChamber().
std::vector< const GeomDet * > GEMRing::components | ( | ) | const |
Return the super chambers in the ring.
Definition at line 16 of file GEMRing.cc.
References mps_fire::result, and superChambers_.
std::vector< GEMDetId > GEMRing::ids | ( | ) | const |
Return the vector of GEMDetIds in this ring.
Definition at line 8 of file GEMRing.cc.
References detIds_.
int GEMRing::nSuperChambers | ( | ) | const |
Return numbers of chambers.
Definition at line 44 of file GEMRing.cc.
References superChambers_.
bool GEMRing::operator== | ( | const GEMRing & | sch | ) | const |
int GEMRing::region | ( | ) | const |
Return the region number.
Definition at line 46 of file GEMRing.cc.
References region_.
Referenced by operator==(), GEMGeometry::ring(), and superChamber().
int GEMRing::ring | ( | ) | const |
Return the ring number.
Definition at line 50 of file GEMRing.cc.
References ring_.
Referenced by geometryXMLparser.CSCAlignable::index(), operator==(), GEMStation::ring(), GEMGeometry::ring(), and superChamber().
int GEMRing::station | ( | ) | const |
Return the station number.
Definition at line 48 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 27 of file GEMRing.cc.
References relativeConstraints::chamber, 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 33 of file GEMRing.cc.
References superChambers_.
const std::vector< const GEMSuperChamber * > & GEMRing::superChambers | ( | ) | const |
Return the chambers in the ring.
Definition at line 42 of file GEMRing.cc.
References superChambers_.
|
private |
|
private |
Definition at line 63 of file GEMRing.h.
Referenced by operator==(), region(), and superChamber().
|
private |
Definition at line 65 of file GEMRing.h.
Referenced by operator==(), ring(), and superChamber().
|
private |
Definition at line 64 of file GEMRing.h.
Referenced by operator==(), station(), and superChamber().
|
private |
Definition at line 70 of file GEMRing.h.
Referenced by add(), components(), nSuperChambers(), superChamber(), and superChambers().