From bc985a8d972aef0c849fd68c6b8b35a52d2337cd Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Wed, 4 Dec 2024 15:46:55 +0100 Subject: [PATCH] Geant4AssemblyVolume::imprint: remove no longer used copyBase argument --- DDG4/include/DDG4/Geant4AssemblyVolume.h | 1 - DDG4/src/Geant4AssemblyVolume.cpp | 3 +-- DDG4/src/Geant4Converter.cpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/DDG4/include/DDG4/Geant4AssemblyVolume.h b/DDG4/include/DDG4/Geant4AssemblyVolume.h index da18d7f33..8960b095a 100644 --- a/DDG4/include/DDG4/Geant4AssemblyVolume.h +++ b/DDG4/include/DDG4/Geant4AssemblyVolume.h @@ -71,7 +71,6 @@ namespace dd4hep { Geant4AssemblyVolume* pAssembly, G4LogicalVolume* pMotherLV, G4Transform3D& transformation, - G4int copyNumBase, G4bool surfCheck ); }; } diff --git a/DDG4/src/Geant4AssemblyVolume.cpp b/DDG4/src/Geant4AssemblyVolume.cpp index fe60c5d40..4055636e7 100644 --- a/DDG4/src/Geant4AssemblyVolume.cpp +++ b/DDG4/src/Geant4AssemblyVolume.cpp @@ -71,7 +71,6 @@ void Geant4AssemblyVolume::imprint(const Geant4Converter& cnv, Geant4AssemblyVolume* pParentAssembly, G4LogicalVolume* pMotherLV, G4Transform3D& transformation, - G4int copyNumBase, G4bool surfCheck) { struct _Wrap : public G4AssemblyVolume { @@ -156,7 +155,7 @@ void Geant4AssemblyVolume::imprint(const Geant4Converter& cnv, } else if ( triplet.GetAssembly() ) { // Place volumes in this assembly with composed transformation - imprint(cnv, parent, std::move(new_chain), avol, pMotherLV, Tfinal, i*100+copyNumBase, surfCheck ); + imprint(cnv, parent, std::move(new_chain), avol, pMotherLV, Tfinal, surfCheck ); } else { G4Exception("Geant4AssemblyVolume::imprint(..)", "GeomVol0003", FatalException, diff --git a/DDG4/src/Geant4Converter.cpp b/DDG4/src/Geant4Converter.cpp index 57531caf7..fd4686802 100644 --- a/DDG4/src/Geant4Converter.cpp +++ b/DDG4/src/Geant4Converter.cpp @@ -1000,7 +1000,7 @@ void* Geant4Converter::handlePlacement(const std::string& name, const TGeoNode* Geant4AssemblyVolume* ass = (Geant4AssemblyVolume*)info.g4AssemblyVolumes[node]; Geant4AssemblyVolume::Chain chain; chain.emplace_back(node); - ass->imprint(*this, node, chain, ass, (*volIt).second, transform, copy, checkOverlaps); + ass->imprint(*this, node, chain, ass, (*volIt).second, transform, checkOverlaps); return nullptr; } else if ( node != info.manager->GetTopNode() && volIt == info.g4Volumes.end() ) {