CMS 3D CMS Logo

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
GEMRegion::station
const GEMStation * station(int st) const
Return a station.
Definition: GEMRegion.cc:51
GEMRegion::components
std::vector< const GeomDet * > components() const
Return the super chambers in the region.
Definition: GEMRegion.cc:22
GEMRegion::add
void add(GEMStation *st)
Add station to the region which takes ownership.
Definition: GEMRegion.cc:20
GeomDet
Definition: GeomDet.h:27
GEMSuperChamber
Definition: GEMSuperChamber.h:19
GEMRegion::ids
std::vector< GEMDetId > ids() const
Return the vector of GEMDetIds in this ring.
Definition: GEMRegion.cc:9
GEMRegion::operator==
bool operator==(const GEMRegion &reg) const
equal if the id is the same
Definition: GEMRegion.cc:18
GEMRegion::region_
int region_
Definition: GEMRegion.h:61
GEMRegion::GEMRegion
GEMRegion(int region)
constructor
Definition: GEMRegion.cc:5
DetId
Definition: DetId.h:17
GEMRegion::~GEMRegion
~GEMRegion()
destructor
Definition: GEMRegion.cc:7
GEMRegion::nStations
int nStations() const
Return numbers of stations.
Definition: GEMRegion.cc:62
GEMStation
Definition: GEMStation.h:19
GEMRegion::stations_
std::vector< const GEMStation * > stations_
Definition: GEMRegion.h:63
GEMDetId
Definition: GEMDetId.h:18
GEMRegion::stations
const std::vector< const GEMStation * > & stations() const
Return all stations.
Definition: GEMRegion.cc:60
GeomDet.h
GEMDetId.h
GEMRegion::superChambers
std::vector< const GEMSuperChamber * > superChambers() const
Return the super chambers in the region.
Definition: GEMRegion.cc:42
GEMRegion::superChamber
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the super chamber corresponding to the given id.
Definition: GEMRegion.cc:36
GEMRegion
Definition: GEMRegion.h:19
GEMRegion::component
const GeomDet * component(DetId id) const
Return the sub-component (super chamber) with a given id in this region.
Definition: GEMRegion.cc:31
GEMRegion::region
int region() const
Return the region.
Definition: GEMRegion.cc:64