From 2ca6e00a489eeaa9239bb069d89dbe0de49d5948 Mon Sep 17 00:00:00 2001 From: Markus FRANK <Markus.Frank@cern.ch> Date: Sat, 21 Nov 2020 02:48:48 +0100 Subject: [PATCH] Fix Geant4 conversion of scaled shapes --- DDCore/src/Volumes.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/DDCore/src/Volumes.cpp b/DDCore/src/Volumes.cpp index f4d677502..65b61c086 100644 --- a/DDCore/src/Volumes.cpp +++ b/DDCore/src/Volumes.cpp @@ -210,10 +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); + //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(); @@ -293,7 +294,7 @@ void ReflectionBuilder::execute() const { TGeoMatrix* mclone = new TGeoCombiTrans(*matrix); mclone->RegisterYourself(); // Reflect just the rotation component - mclone->ReflectZ(kFALSE, kTRUE); + //mclone->ReflectZ(kFALSE, kTRUE); if ( print_active ) { printout(INFO,"ReflectionBuilder","CLONE matrix:"); mclone->Print(); -- GitLab