CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMRing.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_GEMRing_h
2 #define Geometry_GEMGeometry_GEMRing_h
3 
15 
16 class GEMSuperChamber;
17 
18 class GEMRing
19 {
20  public:
22  GEMRing(int region, int station, int ring);
23 
25  ~GEMRing();
26 
28  std::vector<GEMDetId> ids() const;
29 
31  bool operator==(const GEMRing& sch) const;
32 
34  void add(GEMSuperChamber* ch);
35 
37  virtual std::vector<const GeomDet*> components() const;
38 
40  virtual const GeomDet* component(DetId id) const;
41 
43  const GEMSuperChamber* superChamber(GEMDetId id) const;
44 
45  // Return a super chamber
46  const GEMSuperChamber* superChamber(int sch) const;
47 
49  const std::vector<const GEMSuperChamber*>& superChambers() const;
50 
52  int nSuperChambers() const;
53 
55  int region() const;
56 
58  int station() const;
59 
61  int ring() const;
62 
63  private:
64 
65  int region_;
66  int station_;
67  int ring_;
68 
69  std::vector<GEMDetId> detIds_;
70 
71  // vector of chambers for a super chamber
72  std::vector<const GEMSuperChamber*> superChambers_;
73 
74 };
75 #endif
int region() const
Return the region number.
Definition: GEMRing.cc:61
int station() const
Return the station number.
Definition: GEMRing.cc:65
int nSuperChambers() const
Return numbers of chambers.
Definition: GEMRing.cc:57
GEMRing(int region, int station, int ring)
constructor
Definition: GEMRing.cc:4
virtual std::vector< const GeomDet * > components() const
Return the super chambers in the ring.
Definition: GEMRing.cc:26
void add(GEMSuperChamber *ch)
Add super chamber to the ring which takes ownership.
Definition: GEMRing.cc:22
~GEMRing()
destructor
Definition: GEMRing.cc:10
int ring() const
Return the ring number.
Definition: GEMRing.cc:69
std::vector< const GEMSuperChamber * > superChambers_
Definition: GEMRing.h:72
std::vector< GEMDetId > detIds_
Definition: GEMRing.h:69
std::vector< GEMDetId > ids() const
Return the vector of GEMDetIds in this ring.
Definition: GEMRing.cc:12
virtual const GeomDet * component(DetId id) const
Return the sub-component (super chamber) with a given id in this ring.
Definition: GEMRing.cc:35
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the chamber corresponding to the given id.
Definition: GEMRing.cc:39
bool operator==(const GEMRing &sch) const
equal if the id is the same
Definition: GEMRing.cc:16
int ring_
Definition: GEMRing.h:67
Definition: DetId.h:18
int region_
Definition: GEMRing.h:65
int station_
Definition: GEMRing.h:66
const std::vector< const GEMSuperChamber * > & superChambers() const
Return the chambers in the ring.
Definition: GEMRing.cc:53