-
Notifications
You must be signed in to change notification settings - Fork 6
Description
While adding an example to #30 I found that assembly geometries do not work in Geant4 10.4.3, due to a bug. I am not sure if there is a workaround but I did not find it, the G4PhysicalVolumeStore
simply does not have all the physical volumes.
The obvious fix is to support more recent Geant4 versions and to introduce some mechanism to prevent a user to use assembly geometries in old Geant4 versions.
There are probably some changes to be made also to Geant4Lib.
In restG4
it seems like the only changes necessary are to update physicsList.cxx
since it uses some deprecated interfaces. It even uses some deprecated interfaces already for 10.4.3, which throw a warning that they may not give correct results.
#include <G4EmProcessOptions.hh>
used in
G4EmProcessOptions emOptions;
emOptions.SetFluo(true); // To activate deexcitation processes and fluorescence
emOptions.SetAuger(true); // To activate Auger effect if deexcitation is activated
emOptions.SetPIXE(true); // To activate Particle Induced X-Ray Emission (PIXE)
is deprecated and may not work correctly even in 10.4.3, we should replace this with the correct way.
- Radioactive decay:
G4RadioactiveDecay* radioactiveDecay = new G4RadioactiveDecay();
radioactiveDecay->SetHLThreshold(nanosecond);
This interface also does not work in the newer versions, we need to replace it.