From 17ac97bec34a4fc9bc5ae9e5e42211d6161b20d2 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Wed, 4 Dec 2024 15:41:54 +0100
Subject: [PATCH] Geant4AssemblyVolume: remove no longer used numberOfDaughters

---
 DDG4/src/Geant4AssemblyVolume.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/DDG4/src/Geant4AssemblyVolume.cpp b/DDG4/src/Geant4AssemblyVolume.cpp
index 91bb1883e..fe60c5d40 100644
--- a/DDG4/src/Geant4AssemblyVolume.cpp
+++ b/DDG4/src/Geant4AssemblyVolume.cpp
@@ -82,10 +82,7 @@ void Geant4AssemblyVolume::imprint(const Geant4Converter& cnv,
   TGeoVolume*       vol = parent->GetVolume();
   G4AssemblyVolume* par_ass = pParentAssembly->m_assembly;
   Geant4GeometryInfo&  info = cnv.data();
-  unsigned int numberOfDaughters = (copyNumBase == 0) ? pMotherLV->GetNoDaughters() : copyNumBase;
 
-  // We start from the first available index
-  numberOfDaughters++;
   _Wrap::imprintsCountPlus(par_ass);
 
   path = detail::tools::placementPath(chain);
-- 
GitLab