CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMStation.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_GEMStation_h
2 #define Geometry_GEMGeometry_GEMStation_h
3 
16 
17 class GEMSuperChamber;
18 
20 {
21  public:
23  GEMStation(int region, int station);
24 
26  ~GEMStation();
27 
29  std::vector<GEMDetId> ids() const;
30 
32  bool operator==(const GEMStation& st) const;
33 
35  void add(GEMRing* ring);
36 
38  virtual std::vector<const GeomDet*> components() const;
39 
41  virtual const GeomDet* component(DetId id) const;
42 
44  const GEMSuperChamber* superChamber(GEMDetId id) const;
45 
47  std::vector<const GEMSuperChamber*> superChambers() const;
48 
50  const GEMRing* ring(int ring) const;
51 
53  const std::vector<const GEMRing*>& rings() const;
54 
56  int nRings() const;
57 
59  void setName(std::string name);
60 
62  const std::string getName() const;
63 
65  int region() const;
66 
68  int station() const;
69 
70  private:
71 
72  int region_;
73  int station_;
74 
75  // vector of rings for a station
76  std::vector<const GEMRing*> rings_;
78 
79 };
80 #endif
virtual std::vector< const GeomDet * > components() const
Return the super chambers in the station.
Definition: GEMStation.cc:30
int region_
Definition: GEMStation.h:72
bool operator==(const GEMStation &st) const
equal if the id is the same
Definition: GEMStation.cc:22
int region() const
Get the region.
Definition: GEMStation.cc:83
int station() const
Get the station.
Definition: GEMStation.cc:87
void add(GEMRing *ring)
Add ring to the station which takes ownership.
Definition: GEMStation.cc:26
std::vector< const GEMSuperChamber * > superChambers() const
Return the super chambers in the region.
Definition: GEMStation.cc:49
const GEMRing * ring(int ring) const
Get a ring.
Definition: GEMStation.cc:58
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the chamber corresponding to the given id.
Definition: GEMStation.cc:44
const std::string getName() const
Set the station name.
Definition: GEMStation.cc:79
virtual const GeomDet * component(DetId id) const
Return the sub-component (super chamber) with a given id in this station.
Definition: GEMStation.cc:39
void setName(std::string name)
Set the station name.
Definition: GEMStation.cc:75
std::vector< const GEMRing * > rings_
Definition: GEMStation.h:76
std::vector< GEMDetId > ids() const
Return the vector of GEMDetIds in this station.
Definition: GEMStation.cc:13
~GEMStation()
destructor
Definition: GEMStation.cc:11
std::string name_
Definition: GEMStation.h:77
Definition: DetId.h:18
GEMStation(int region, int station)
constructor
Definition: GEMStation.cc:5
int nRings() const
Return numbers of rings for this station.
Definition: GEMStation.cc:71
int station_
Definition: GEMStation.h:73
const std::vector< const GEMRing * > & rings() const
Return the rings in the station.
Definition: GEMStation.cc:67