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