File indexing completed on 2024-04-06 12:14:39
0001 #ifndef Geometry_GEMGeometry_GEMRegion_h
0002 #define Geometry_GEMGeometry_GEMRegion_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0014 #include "DataFormats/MuonDetId/interface/GEMDetId.h"
0015
0016 class GEMStation;
0017 class GEMSuperChamber;
0018
0019 class GEMRegion {
0020 public:
0021
0022 GEMRegion(int region);
0023
0024
0025 ~GEMRegion();
0026
0027
0028 std::vector<GEMDetId> ids() const;
0029
0030
0031 bool operator==(const GEMRegion& reg) const;
0032
0033
0034 void add(GEMStation* st);
0035
0036
0037 std::vector<const GeomDet*> components() const;
0038
0039
0040 const GeomDet* component(DetId id) const;
0041
0042
0043 const GEMSuperChamber* superChamber(GEMDetId id) const;
0044
0045
0046 std::vector<const GEMSuperChamber*> superChambers() const;
0047
0048
0049 const GEMStation* station(int st) const;
0050
0051
0052 const std::vector<const GEMStation*>& stations() const;
0053
0054
0055 int nStations() const;
0056
0057
0058 int region() const;
0059
0060 private:
0061 int region_;
0062
0063 std::vector<const GEMStation*> stations_;
0064 };
0065 #endif