I am getting the following error when I attempt to modify a csg volume that I am placing in a gdml geometry and its associated world volume. I can change the number of repetitions at the start in batch mode, however the following results if in G4_idle I attempt to change the number of repetitions of geometry, with the relative command also running
G4RunManager::GetRunManager()->ReinitializeGeometry();
I have added the following in DetectorConstruction to no avail
prior to the import of the gdml geometry.
// Cleanup old geometry
G4GeometryManager::GetInstance()->OpenGeometry();
G4PhysicalVolumeStore::GetInstance()->Clean();
G4LogicalVolumeStore::GetInstance()->Clean();
G4SolidStore::GetInstance()->Clean();
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : InvalidExpression
issued by : G4GDMLEvaluator::DefineConstant()
Redefinition of constant or variable: HALFPI
*** Fatal Exception *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment
-------- EEEE -------- G4Exception-END --------- EEEE -------
As a small comment, I feel like the G4VPVParameterisation could be a little more user friendly. I struggled getting it to reproduce the function of a simple for loop with touchables using its much more complex setup.
I have this error with the G4PVParameterisation
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : GeomVol0002
issued by : G4PVReplica::G4PVReplica()
Replica or parameterised volume must be the only daughter !
Mother logical volume: worldVOL
Replicated volume: ParameterisedSample
Existing 'sister': PV-ConcreteBase
*** Fatal Exception *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment
-------- EEEE -------- G4Exception-END --------- EEEE -------
*** G4Exception: Aborting execution ***
Thank you for your help!
_Geant4 Version:_11.2
_Operating System:_Deb12
_Compiler/Version:_gcc12