CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 public:
22  GEMRegion(int region);
23 
25  ~GEMRegion();
26 
28  std::vector<GEMDetId> ids() const;
29 
31  bool operator==(const GEMRegion& reg) const;
32 
34  void add(GEMStation* st);
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 GEMStation* station(int st) const;
50 
52  const std::vector<const GEMStation*>& stations() const;
53 
55  int nStations() const;
56 
58  int region() const;
59 
60 private:
61  int region_;
62  // vector of stations for a region
63  std::vector<const GEMStation*> stations_;
64 };
65 #endif
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the super chamber corresponding to the given id.
Definition: GEMRegion.cc:36
std::vector< const GeomDet * > components() const
Return the super chambers in the region.
Definition: GEMRegion.cc:22
const GEMStation * station(int st) const
Return a station.
Definition: GEMRegion.cc:51
std::vector< const GEMSuperChamber * > superChambers() const
Return the super chambers in the region.
Definition: GEMRegion.cc:42
int region() const
Return the region.
Definition: GEMRegion.cc:64
int region_
Definition: GEMRegion.h:61
const std::vector< const GEMStation * > & stations() const
Return all stations.
Definition: GEMRegion.cc:60
std::vector< const GEMStation * > stations_
Definition: GEMRegion.h:63
Definition: DetId.h:17
GEMRegion(int region)
constructor
Definition: GEMRegion.cc:5
bool operator==(const GEMRegion &reg) const
equal if the id is the same
Definition: GEMRegion.cc:18
~GEMRegion()
destructor
Definition: GEMRegion.cc:7
int nStations() const
Return numbers of stations.
Definition: GEMRegion.cc:62
const GeomDet * component(DetId id) const
Return the sub-component (super chamber) with a given id in this region.
Definition: GEMRegion.cc:31
void add(GEMStation *st)
Add station to the region which takes ownership.
Definition: GEMRegion.cc:20
std::vector< GEMDetId > ids() const
Return the vector of GEMDetIds in this ring.
Definition: GEMRegion.cc:9