diff --git a/DDCore/src/Shapes.cpp b/DDCore/src/Shapes.cpp index 441f13f39b3e9988ceb69430184407952931c912..f8c00ba409aaf9fa01ca644cb311b64275fe9f2a 100644 --- a/DDCore/src/Shapes.cpp +++ b/DDCore/src/Shapes.cpp @@ -328,7 +328,7 @@ Hyperboloid& Hyperboloid::setDimensions(double rin, double stin, double rout, do /// Constructor to be used when creating a new object with attribute initialization Sphere::Sphere(double rmin, double rmax, double theta, double delta_theta, double phi, double delta_phi) { - _assign(new TGeoSphere(rmin, rmax, theta, delta_theta/dd4hep::deg, phi/dd4hep::deg, delta_phi/dd4hep::deg), "", "sphere", true); + _assign(new TGeoSphere(rmin, rmax, theta/dd4hep::deg, delta_theta/dd4hep::deg, phi/dd4hep::deg, delta_phi/dd4hep::deg), "", "sphere", true); } /// Set the Sphere dimensions diff --git a/DDCore/src/plugins/ShapePlugins.cpp b/DDCore/src/plugins/ShapePlugins.cpp index 070f3181206f3bbad6904dbede05a05d910a6d9f..e2e982a8131af9be0e653f3b1d14c7e3ad970266 100644 --- a/DDCore/src/plugins/ShapePlugins.cpp +++ b/DDCore/src/plugins/ShapePlugins.cpp @@ -96,7 +96,7 @@ DECLARE_XMLELEMENT(Torus__shape_constructor,create_Torus) static Ref_t create_Sphere(lcdd_t&, xml_h element) { xml_dim_t e(element); - return Sphere(e.rmin(),e.rmax(),e.deltatheta(M_PI),e.phi(0e0),e.deltaphi(2.*M_PI)); + return Sphere(e.rmin(),e.rmax(),e.theta(0e0),e.deltatheta(M_PI),e.phi(0e0),e.deltaphi(2.*M_PI)); } DECLARE_XMLELEMENT(Sphere__shape_constructor,create_Sphere)