File indexing completed on 2024-04-06 12:14:26
0001 #ifndef DTGeometry_DTChamber_h
0002 #define DTGeometry_DTChamber_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0017 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
0018 #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
0019 #include "DataFormats/MuonDetId/interface/DTLayerId.h"
0020
0021 class DTSuperLayer;
0022 class DTLayer;
0023
0024 class DTChamber : public GeomDet {
0025 public:
0026
0027 DTChamber(const DTChamberId& id, const ReferenceCountingPointer<BoundPlane>& plane);
0028
0029
0030 ~DTChamber() override;
0031
0032
0033 DTChamberId id() const;
0034
0035
0036 SubDetector subDetector() const override { return GeomDetEnumerators::DT; }
0037
0038
0039 bool operator==(const DTChamber& ch) const;
0040
0041
0042 void add(DTSuperLayer* sl);
0043
0044
0045 std::vector<const GeomDet*> components() const override;
0046
0047
0048 const GeomDet* component(DetId id) const override;
0049
0050
0051 const std::vector<const DTSuperLayer*>& superLayers() const;
0052
0053
0054 const DTSuperLayer* superLayer(const DTSuperLayerId& id) const;
0055
0056
0057
0058 const DTSuperLayer* superLayer(int isl) const;
0059
0060
0061 const DTLayer* layer(const DTLayerId& id) const;
0062
0063 private:
0064 DTChamberId theId;
0065
0066
0067 std::vector<const DTSuperLayer*> theSLs;
0068 };
0069 #endif