From 9e03e71e14ec8a06eb8659b0ce95a6507865dd4e Mon Sep 17 00:00:00 2001 From: Alvaro Tolosa Delgado Date: Mon, 12 Feb 2024 17:59:43 +0100 Subject: [PATCH] Twisted tube: twisted angle unit conversion now works properly --- DDCore/src/Shapes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDCore/src/Shapes.cpp b/DDCore/src/Shapes.cpp index 3077b215b..914fc21cb 100644 --- a/DDCore/src/Shapes.cpp +++ b/DDCore/src/Shapes.cpp @@ -510,7 +510,7 @@ void EllipticalTube::make(const std::string& nam, double a, double b, double dz) /// Internal helper method to support TwistedTube object construction void TwistedTube::make(const std::string& nam, double twist_angle, double rmin, double rmax, double zneg, double zpos, int nsegments, double totphi) { - _assign(new TwistedTubeObject(nam.c_str(), twist_angle, rmin, rmax, zneg, zpos, nsegments, totphi/units::deg), + _assign(new TwistedTubeObject(nam.c_str(), twist_angle/units::deg, rmin, rmax, zneg, zpos, nsegments, totphi/units::deg), "", TWISTEDTUBE_TAG, true); }