CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMRegion.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_GEMRegion_h
2 #define Geometry_GEMGeometry_GEMRegion_h
3 
15 
16 class GEMStation;
17 class GEMSuperChamber;
18 
19 class GEMRegion
20 {
21  public:
23  GEMRegion(int region);
24 
26  ~GEMRegion();
27 
29  std::vector<GEMDetId> ids() const;
30 
32  bool operator==(const GEMRegion& reg) const;
33 
35  void add(GEMStation* st);
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 GEMStation* station(int st) const;
51 
53  const std::vector<const GEMStation*>& stations() const;
54 
56  int nStations() const;
57 
59  int region() const;
60 
61  private:
62 
63  int region_;
64  // vector of stations for a region
65  std::vector<const GEMStation*> stations_;
66 
67 };
68 #endif
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the super chamber corresponding to the given id.
Definition: GEMRegion.cc:43
virtual std::vector< const GeomDet * > components() const
Return the super chambers in the region.
Definition: GEMRegion.cc:29
const GEMStation * station(int st) const
Return a station.
Definition: GEMRegion.cc:57
std::vector< const GEMSuperChamber * > superChambers() const
Return the super chambers in the region.
Definition: GEMRegion.cc:48
int region() const
Return the region.
Definition: GEMRegion.cc:74
int region_
Definition: GEMRegion.h:63
const std::vector< const GEMStation * > & stations() const
Return all stations.
Definition: GEMRegion.cc:66
std::vector< const GEMStation * > stations_
Definition: GEMRegion.h:65
Definition: DetId.h:18
GEMRegion(int region)
constructor
Definition: GEMRegion.cc:5
bool operator==(const GEMRegion &reg) const
equal if the id is the same
Definition: GEMRegion.cc:21
~GEMRegion()
destructor
Definition: GEMRegion.cc:10
int nStations() const
Return numbers of stations.
Definition: GEMRegion.cc:70
virtual const GeomDet * component(DetId id) const
Return the sub-component (super chamber) with a given id in this region.
Definition: GEMRegion.cc:38
void add(GEMStation *st)
Add station to the region which takes ownership.
Definition: GEMRegion.cc:25
std::vector< GEMDetId > ids() const
Return the vector of GEMDetIds in this ring.
Definition: GEMRegion.cc:12