File indexing completed on 2023-03-17 13:02:43
0001
0002
0003
0004
0005
0006
0007
0008 #include "Geometry/DTGeometry/interface/DTLayer.h"
0009
0010
0011 #include "Geometry/DTGeometry/interface/DTSuperLayer.h"
0012
0013
0014
0015
0016
0017
0018
0019
0020 DTLayer::DTLayer(const DTLayerId& id,
0021 ReferenceCountingPointer<BoundPlane>& plane,
0022 const DTTopology& topo,
0023 const DTLayerType& type,
0024 const DTSuperLayer* sl)
0025 : GeomDetUnit(*&plane), theId(id), theTopo(topo), theType(type), theSL(sl) {
0026 setDetId(id);
0027 }
0028
0029
0030 DTLayer::~DTLayer() {}
0031
0032
0033 const Topology& DTLayer::topology() const { return theTopo; }
0034
0035 const GeomDetType& DTLayer::type() const { return theType; }
0036
0037 const DTTopology& DTLayer::specificTopology() const { return theTopo; }
0038
0039 DTLayerId DTLayer::id() const { return theId; }
0040
0041 bool DTLayer::operator==(const DTLayer& l) const { return id() == l.id(); }
0042
0043 const DTSuperLayer* DTLayer::superLayer() const { return theSL; }
0044
0045 const DTChamber* DTLayer::chamber() const { return (theSL) ? theSL->chamber() : nullptr; }
0046
0047 std::vector<const GeomDet*> DTLayer::components() const { return std::vector<const GeomDet*>(); }