diff --git a/src/SimpleRectangularTracker_geo.cpp b/src/SimpleRectangularTracker_geo.cpp index 402ee4a636823d61565355f30b78e55ff5a34834..54b0bd7c4b34038f1f582d194ec85ad21f088706 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); }