Skip to content

Commit

Permalink
Import Geant4 11.0.3 source tree
Browse files Browse the repository at this point in the history
  • Loading branch information
gcosmo committed Sep 16, 2022
1 parent 2dc4baa commit 3136fa9
Show file tree
Hide file tree
Showing 222 changed files with 49,240 additions and 46,571 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ project(Geant4
HOMEPAGE_URL "https://geant4.cern.ch")
set(${PROJECT_NAME}_VERSION_MAJOR 11)
set(${PROJECT_NAME}_VERSION_MINOR 0)
set(${PROJECT_NAME}_VERSION_PATCH 2)
set(${PROJECT_NAME}_VERSION_PATCH 3)
set(${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}")

# - Prepend our own CMake Modules to the search path
Expand Down
107 changes: 107 additions & 0 deletions ReleaseNotes/Patch.11.0-3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@

Geant4 11.0 - patch-03 Release Notes
------------------------------------

16 September 2022

List of fixes included in this public patch since the public release 11.0.2:

o Configuration
-------------
+ CMake:
o Update extraction of include paths from VecGeom to use imported target
property. Addressing problem report #2485.

o Geometry:
--------
+ management:
o Added protection in G4GeometryManager for Open/CloseGeometry() to
be executed only by master thread. Addressing problem report #2502.

o Global:
------
+ Commented out debug printout in G4ThreadLocalSingleton method.
+ Updated date and version for 11.0.3.

o Parameterisations:
-----------------
+ gflash:
o GFlashHitMaker: fix to make it compatible with command-based scorer.

o Particles:
---------
+ Fixes for transportation of hypernuclei and anti-hypernuclei: in G4Ion,
set (forgotten) 'isGeneralIon' to false for hypernuclei and
anti-hypernuclei, to avoid they get assigned same processes as
'GenericIon'.
In G4DoubleHyperDoubleNeutron and G4AntiDoubleHyperDoubleNeutron, added
(forgotten) call to SetDecayTable(), to have the decay table defined for
these particles.
In G4ParticleDefinition, protect methods GetNumberOfLambdasInHypernucleus()
and GetNumberOfAntiLambdasInAntiHypernucleus() against baryonic resonances
with high spins (such as N(2220), N(2250) and their anti-particles) which
have 8-digits PDG codes, but which are not hypernuclei or anti-hypernuclei.

o Physics Lists:
-------------
+ constructors/electromagnetic
o G4GammaGeneralProcess: fixed problem of Compton scattering selection
in the low energy interval < 150 keV.

o Processes - Electromagnetic:
---------------------------
+ utils
o G4EmExtraParametersMessenger: fixed typo.
Addressing problem report #2492.

o Processes - Generic:
-------------------
+ cuts
o G4VRangeToEnergyConverter: fixed static methods to provide correct
initialisation of energy limits.

o Processes - Hadronic:
--------------------
+ models/particle_hp
o G4ParticleHPInelastic, G4ParticleHPCapture, G4ParticleHPFission,
G4ParticleHPElastic, G4ParticleHPThermalScattering: replaced the
threshold used for checking the absolute energy non-conservation from
DLB_MAX (implying no checking at all) to 350 GeV (this value allows for
cases where the residual nucleus is not produced, even when super-heavy
nuclides are involved).
o G4ParticleHPContAngularPar: added protections against evaluations of
arrays at negative index (-1), fixing rare reproducibility problems.
+ models/parton_string
o Fixes to get isotropic distributions in annihilations at rest: in
G4DiffractiveSplitableHadron, set proper parton index.
In G4DiffractiveExcitation, in the CreateStrings() method, take into
account that strings are created in G4FTFAnnihilation; by default, the
method CreateStrings() creates a string from a wounded nucleon/hadron,
but this is not needed in the case of annihilation.
In G4FTFAnnihilation, removed splitting of hadron; fixed bugs in the
calculations of kinematical properties; set quark momenta at string
ends, to properly account for string order on rapidity.
o G4VSplitableHadron: changed the method Splitting() from "protected" to
"public" (needed to change the status of SplitableHadron in
G4FTFAnnihilation, to get isotropic distributions in annihilations
at rest).

o Track:
-----
+ G4Step: added ResetPre/PostStepPoint() methods to replace a StepPoint
without deleting the previous object.

----------------------------------------------------------------------------

Technical Notes
---------------

o This patch should be applied on top of release 11.0 series.
o Technical notes distributed for release 11.0 are also applicable and
valid for this patch.

The code and rebuilt binary libraries for release 11.0.3 are available
through the Geant4 "Download" Web page.

Please refer to the Geant4 User Documentation for further information about
using Geant4.
76 changes: 76 additions & 0 deletions ReleaseNotes/Patch4.10.7-4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

Geant4 10.7 - patch-04 Release Notes
------------------------------------

9 September 2022

List of fixes included in this public patch since the public release 10.7.p03:

o Configuration
-------------
+ CMake:
o Update extraction of include paths from VecGeom to use imported target
property. Addressing problem report #2485.

o Global:
------
+ Updated date and version for 10.7.p04.

o Physics Lists:
-------------
+ constructors/electromagnetic
o G4GammaGeneralProcess: fixed problem of Compton scattering selection
in the low energy interval < 150 keV.

o Processes - Electromagnetic:
---------------------------
+ utils
o G4EmExtraParameters: safe definition of StepFuction for G4GenericIon.
Addressing problem report #2495.
o G4EmExtraParametersMessenger: fixed typo.
Addressing problem report #2492.

o Processes - Hadronic:
--------------------
+ cross_sections
o G4ComponentAntiNuclNuclearXS: correct treatment of the cross-sections
of light anti-nuclei on hydrogen target. This relies on the isospin
symmetry assumption, according to which the properties of the reactions
between anti-proton and light nuclei are equivalent to those between
light anti-nuclei and hydrogen.
+ models/coherent_elastic
o G4AntiNuclElastic: correction in SampleInvariantT() method of the
highest momentum transfer (which was causing the cosine of the polar
angle in the center-of-mass system to be larger than 1 in some cases).
Addressing problem report #2204.
+ models/inclxx
o G4INCLXXInterface: fixed treatment of kaon0, anti_kaon0, kaon0L, and
kaon0S. In current reference physics lists, INCLXX is never used for
handling kaons, although it is capable of doing so, but at process-
level or in custom physics lists one could observe crashes when trying
to use INCLXX for neutral kaon projectiles. The change fixes this
misbehavior.
+ models/particle_hp
o Fixed issue for photons too high in energy generated from
G4NDL/Capture/FSMF6 data. Addressing problem report #2468.
o G4ParticleHPContAngularPar: added protections against evaluations of
arrays at negative index (-1), fixing rare reproducibility problems
and rare crashes observed.
o Code cleanup in G4ParticleHPContEnergyAngular and
G4ParticleHPContAngularPar: removed debug and commented out code,
indentation of loops and if branches.

----------------------------------------------------------------------------

Technical Notes
---------------

o This patch should be applied on top of release 10.7 series.
o Technical notes distributed for release 10.7 are also applicable and
valid for this patch.

The code and rebuilt binary libraries for release 10.7.p04 are available
through the Geant4 "Download" Web page.

Please refer to the Geant4 User Documentation for further information about
using Geant4.
5 changes: 5 additions & 0 deletions cmake/History
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ add this in the documentation for the changed file as [BUGFIX #BUGNUMBER].
* Reverse chronological order (last date on top), please *
----------------------------------------------------------

14 July 2022 - Ben Morgan (cmake-V10-07-57)
- Address [Bugzilla 2485](https://bugzilla-geant4.kek.jp/show_bug.cgi?id=2485)
- Update extraction of include paths from VecGeom to use imported target
property.

06 April 2022 - Ben Morgan (cmake-V10-07-56)
- Don't add CLHEP_INCLUDE_DIRS directly through include_directories to prevent potential
issues with it holding relative paths (reported by Seth Johnson)
Expand Down
9 changes: 3 additions & 6 deletions cmake/Modules/G4ConfigurePkgConfigHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,13 @@ if(NOT GEANT4_BUILD_GRANULAR_LIBS)
# - USolids
if(GEANT4_USE_USOLIDS OR GEANT4_USE_PARTIAL_USOLIDS)
set(G4_BUILTWITH_USOLIDS "yes")
set(G4_USOLIDS_INCLUDE_DIRS "${USOLIDS_INCLUDE_DIRS} ${VECGEOM_EXTERNAL_INCLUDES}")
get_target_property(G4_USOLIDS_INCLUDE_DIRS VecGeom::vecgeom INTERFACE_INCLUDE_DIRECTORIES)
list(REMOVE_DUPLICATES G4_USOLIDS_INCLUDE_DIRS)
if(_cxx_compiler_dirs)
list(REMOVE_ITEM G4_USOLIDS_INCLUDE_DIRS ${_cxx_compiler_dirs})
endif()

string(REPLACE ";" " " G4_USOLIDS_CFLAGS "${VECGEOM_DEFINITIONS}")
foreach(_dir ${G4_USOLIDS_INCLUDE_DIRS})
set(G4_USOLIDS_CFLAGS "${G4_USOLIDS_CFLAGS} -I${_dir}")
endforeach()
# NB: should ALSO account for VecGeom having compile_options, but
# this is better handled through proper pkg-config support
else()
set(G4_BUILTWITH_USOLIDS "no")
endif()
Expand Down
Loading

0 comments on commit 3136fa9

Please sign in to comment.