File indexing completed on 2023-03-17 13:02:59
0001 #ifndef GEMGeometry_GEMChamber_h
0002 #define GEMGeometry_GEMChamber_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0015 #include "DataFormats/MuonDetId/interface/GEMDetId.h"
0016
0017 class GEMEtaPartition;
0018
0019 class GEMChamber : public GeomDet {
0020 public:
0021
0022 GEMChamber(GEMDetId id, const ReferenceCountingPointer<BoundPlane>& plane);
0023
0024
0025 ~GEMChamber() override;
0026
0027
0028 GEMDetId id() const;
0029
0030
0031 SubDetector subDetector() const override { return GeomDetEnumerators::GEM; }
0032
0033
0034 bool operator==(const GEMChamber& ch) const;
0035
0036
0037 void add(const GEMEtaPartition* roll);
0038
0039
0040 std::vector<const GeomDet*> components() const override;
0041
0042
0043 const GeomDet* component(DetId id) const override;
0044
0045
0046 const GEMEtaPartition* etaPartition(GEMDetId id) const;
0047
0048 const GEMEtaPartition* etaPartition(int isl) const;
0049
0050
0051 const std::vector<const GEMEtaPartition*>& etaPartitions() const;
0052
0053
0054 int nEtaPartitions() const;
0055
0056 private:
0057 GEMDetId detId_;
0058
0059
0060 std::vector<const GEMEtaPartition*> etaPartitions_;
0061 };
0062 #endif