Warning, file /acts/Plugins/GeoModel/src/GeoModelDetectorElement.cpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 if (m_surface) {
0027 attachSurface(std::move(m_surface));
0028 }
0029 }
0030
0031 const Transform3& ActsPlugins::GeoModelDetectorElement::localToGlobalTransform(
0032 const GeometryContext& ) const {
0033 return m_surfaceTransform;
0034 }
0035
0036 const Transform3& ActsPlugins::GeoModelDetectorElement::nominalTransform()
0037 const {
0038 return m_surfaceTransform;
0039 }
0040
0041 const Surface& ActsPlugins::GeoModelDetectorElement::surface() const {
0042 return *m_surface;
0043 }
0044
0045 Surface& ActsPlugins::GeoModelDetectorElement::surface() {
0046 return *m_surface;
0047 }
0048
0049 double ActsPlugins::GeoModelDetectorElement::thickness() const {
0050 return m_thickness;
0051 }
0052
0053 PVConstLink ActsPlugins::GeoModelDetectorElement::physicalVolume() const {
0054 return m_geoPhysVol;
0055 }
0056
0057 const std::string& ActsPlugins::GeoModelDetectorElement::logVolName() const {
0058 return m_geoPhysVol->getLogVol()->getName();
0059 }