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