From 7da31993b18a7002fc47bb18970a461bda48d340 Mon Sep 17 00:00:00 2001 From: Alex Jentsch <ajentsch@bnl.gov> Date: Thu, 24 Jun 2021 23:59:51 +0000 Subject: [PATCH] Update src/SimpleRectangularTracker_geo.cpp --- src/SimpleRectangularTracker_geo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SimpleRectangularTracker_geo.cpp b/src/SimpleRectangularTracker_geo.cpp index 402ee4a..54b0bd7 100644 --- a/src/SimpleRectangularTracker_geo.cpp +++ b/src/SimpleRectangularTracker_geo.cpp @@ -69,7 +69,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s s_vol.setSensitiveDetector(sens); } s_vol.setAttributes(description, x_slice.regionStr(), x_slice.limitsStr(), x_slice.visStr()); - pv = m_vol.placeVolume(s_vol, Position(0, 0, z - zmin - layerWidth / 2 + thick / 2)); + pv = l_vol.placeVolume(s_vol, Position(0, 0, z - zmin - layerWidth / 2 + thick / 2)); pv.addPhysVolID("slice", s_num); } -- GitLab