CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
19 class GEMStation {
20 public:
22  GEMStation(int region, int station);
23 
25  ~GEMStation();
26 
28  std::vector<GEMDetId> ids() const;
29 
31  bool operator==(const GEMStation& st) const;
32 
34  void add(GEMRing* ring);
35 
37  std::vector<const GeomDet*> components() const;
38 
40  const GeomDet* component(DetId id) const;
41 
43  const GEMSuperChamber* superChamber(GEMDetId id) const;
44 
46  std::vector<const GEMSuperChamber*> superChambers() const;
47 
49  const GEMRing* ring(int ring) const;
50 
52  const std::vector<const GEMRing*>& rings() const;
53 
55  int nRings() const;
56 
58  void setName(std::string name);
59 
61  const std::string getName() const;
62 
64  int region() const;
65 
67  int station() const;
68 
69 private:
70  int region_;
71  int station_;
72 
73  // vector of rings for a station
74  std::vector<const GEMRing*> rings_;
76 };
77 #endif
std::vector< const GeomDet * > components() const
Return the super chambers in the station.
Definition: GEMStation.cc:24
int region_
Definition: GEMStation.h:70
bool operator==(const GEMStation &st) const
equal if the id is the same
Definition: GEMStation.cc:20
int region() const
Get the region.
Definition: GEMStation.cc:70
int station() const
Get the station.
Definition: GEMStation.cc:72
void add(GEMRing *ring)
Add ring to the station which takes ownership.
Definition: GEMStation.cc:22
std::vector< const GEMSuperChamber * > superChambers() const
Return the super chambers in the region.
Definition: GEMStation.cc:44
const GEMRing * ring(int ring) const
Get a ring.
Definition: GEMStation.cc:53
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the chamber corresponding to the given id.
Definition: GEMStation.cc:38
const std::string getName() const
Set the station name.
Definition: GEMStation.cc:68
const GeomDet * component(DetId id) const
Return the sub-component (super chamber) with a given id in this station.
Definition: GEMStation.cc:33
void setName(std::string name)
Set the station name.
Definition: GEMStation.cc:66
std::vector< const GEMRing * > rings_
Definition: GEMStation.h:74
std::vector< GEMDetId > ids() const
Return the vector of GEMDetIds in this station.
Definition: GEMStation.cc:11
~GEMStation()
destructor
Definition: GEMStation.cc:9
std::string name_
Definition: GEMStation.h:75
Definition: DetId.h:17
GEMStation(int region, int station)
constructor
Definition: GEMStation.cc:7
int nRings() const
Return numbers of rings for this station.
Definition: GEMStation.cc:64
int station_
Definition: GEMStation.h:71
const std::vector< const GEMRing * > & rings() const
Return the rings in the station.
Definition: GEMStation.cc:62