File indexing completed on 2023-10-25 09:49:25
0001 #ifndef Geometry_GEMGeometry_GEMSuperChamber_h
0002 #define Geometry_GEMGeometry_GEMSuperChamber_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 GEMChamber;
0018
0019 class GEMSuperChamber : public GeomDet {
0020 public:
0021
0022 GEMSuperChamber(GEMDetId id, const ReferenceCountingPointer<BoundPlane>& plane);
0023
0024
0025 ~GEMSuperChamber() override;
0026
0027
0028 GEMDetId id() const;
0029
0030
0031 const std::vector<GEMDetId>& ids() const;
0032
0033
0034 SubDetector subDetector() const override { return GeomDetEnumerators::GEM; }
0035
0036
0037 bool operator==(const GEMSuperChamber& sch) const;
0038
0039
0040 void add(const GEMChamber* ch);
0041
0042
0043 std::vector<const GeomDet*> components() const override;
0044
0045
0046 const GeomDet* component(DetId id) const override;
0047
0048
0049 const GEMChamber* chamber(GEMDetId id) const;
0050
0051 const GEMChamber* chamber(int layer) const;
0052
0053
0054 const std::vector<const GEMChamber*>& chambers() const;
0055
0056
0057 int nChambers() const;
0058
0059 float computeDeltaPhi(const LocalPoint& position, const LocalVector& direction) const;
0060
0061 private:
0062 GEMDetId detId_;
0063
0064
0065 std::vector<const GEMChamber*> chambers_;
0066 };
0067 #endif