File indexing completed on 2025-07-12 07:52:52
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/Plugins/GeoModel/GeoModelDetectorElement.hpp"
0010
0011 #include "Acts/Surfaces/Surface.hpp"
0012
0013 #include <utility>
0014
0015 #include <GeoModelKernel/GeoFullPhysVol.h>
0016
0017 Acts::GeoModelDetectorElement::GeoModelDetectorElement(
0018 PVConstLink geoPhysVol, std::shared_ptr<Surface> surface,
0019 const Transform3& sfTransform, double thickness)
0020 : m_geoPhysVol(std::move(geoPhysVol)),
0021 m_surface(std::move(surface)),
0022 m_surfaceTransform(sfTransform),
0023 m_thickness(thickness) {}
0024
0025 const Acts::Transform3& Acts::GeoModelDetectorElement::transform(
0026 const GeometryContext& ) const {
0027 return m_surfaceTransform;
0028 }
0029
0030 const Acts::Transform3& Acts::GeoModelDetectorElement::nominalTransform()
0031 const {
0032 return m_surfaceTransform;
0033 }
0034
0035 const Acts::Surface& Acts::GeoModelDetectorElement::surface() const {
0036 return *m_surface;
0037 }
0038
0039 Acts::Surface& Acts::GeoModelDetectorElement::surface() {
0040 return *m_surface;
0041 }
0042
0043 double Acts::GeoModelDetectorElement::thickness() const {
0044 return m_thickness;
0045 }
0046
0047 PVConstLink Acts::GeoModelDetectorElement::physicalVolume() const {
0048 return m_geoPhysVol;
0049 }
0050
0051 const std::string& Acts::GeoModelDetectorElement::logVolName() const {
0052 return m_geoPhysVol->getLogVol()->getName();
0053 }