From 1e14e6a3ae681d30b62df44bfa8413581a06bede Mon Sep 17 00:00:00 2001 From: Markus FRANK <Markus.Frank@cern.ch> Date: Sat, 21 Nov 2020 04:19:42 +0100 Subject: [PATCH] Fix Geant4 conversion of scaled shapes --- DDCore/src/Volumes.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DDCore/src/Volumes.cpp b/DDCore/src/Volumes.cpp index 65b61c086..9fbeaf6e3 100644 --- a/DDCore/src/Volumes.cpp +++ b/DDCore/src/Volumes.cpp @@ -210,11 +210,11 @@ namespace { // The volume is now properly cloned, but with the same shape. // Reflect the shape (if any) and connect it. if (v->GetShape()) { - //TGeoScale* scale = new TGeoScale( 1., 1.,-1.); - //TGeoShape* reflected_shape = - // TGeoScaledShape::MakeScaledShape((nam+"_shape_refl").c_str(), v->GetShape(), scale); - //vol->SetShape(reflected_shape); - vol->SetShape(v->GetShape()); + TGeoScale* scale = new TGeoScale( 1., 1.,-1.); + TGeoShape* reflected_shape = + TGeoScaledShape::MakeScaledShape((nam+"_shape_refl").c_str(), v->GetShape(), scale); + vol->SetShape(reflected_shape); + //vol->SetShape(v->GetShape()); } // Reflect the daughters. Int_t nd = vol->GetNdaughters(); -- GitLab