Skip to content

Commit d2975d2

Browse files
committed
Import Geant4 11.0.4 source tree
1 parent 3136fa9 commit d2975d2

File tree

236 files changed

+48040
-27346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+48040
-27346
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ project(Geant4
3232
HOMEPAGE_URL "https://geant4.cern.ch")
3333
set(${PROJECT_NAME}_VERSION_MAJOR 11)
3434
set(${PROJECT_NAME}_VERSION_MINOR 0)
35-
set(${PROJECT_NAME}_VERSION_PATCH 3)
35+
set(${PROJECT_NAME}_VERSION_PATCH 4)
3636
set(${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}")
3737

3838
# - Prepend our own CMake Modules to the search path

ReleaseNotes/Patch.11.0-4.txt

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
2+
Geant4 11.0 - patch-04 Release Notes
3+
------------------------------------
4+
5+
3 March 2023
6+
7+
List of fixes included in this public patch since the public release 11.0.3:
8+
9+
o Configuration
10+
-------------
11+
+ CMake:
12+
o Removed no longer required G4VecGeomShim module.
13+
VecGeom supports/supplies full imported targets since 1.1.18
14+
Use of VECGEOM_LIBRARIES variable is required to allow build against
15+
CUDA-enabled VecGeom.
16+
17+
o Analysis
18+
--------
19+
+ Added a protection against nullptr in G4VAnalysisManager::GetNofNtuples()
20+
Addressing problem report #2518.
21+
+ Do not remove non-empty HDF5 output files.
22+
23+
o Global:
24+
------
25+
+ Updated date and version for 11.0.4.
26+
27+
o Materials:
28+
---------
29+
+ G4Material: added an extra check on number of atoms in method
30+
AddElementByNumberOfAtoms(..). Addressing problem report #2514.
31+
32+
o Particles:
33+
---------
34+
+ G4XicZero, G4AntiXicZero, G4OmegacZero, G4AntiOmegacZero: updated mean
35+
lifetime values according to PDG-2022.
36+
+ G4Triton, G4AntiTriton: corrected the lifetime value for triton and
37+
anti_triton. The half-life (12.32 years) was incorrectly used instead of
38+
the mean lifetime (17.774 years) for triton, whereas the anti_triton was
39+
incorrectly treated as stable.
40+
+ G4AntiNeutron: set the "PDG stable" flag to "false", as for G4Neutron.
41+
This has no practical consequences, i.e. anti_neutron decays regardless
42+
of this flag.
43+
44+
o Physics Lists:
45+
-------------
46+
+ constructors/decay
47+
o G4RadioactiveDecayPhysics: assigned RadioactiveDecay process to G4Triton
48+
(which is the only light ion that decays). Note: before, triton did not
49+
have beta decay, i.e. it was wrongly treated as stable even when
50+
radioactive decay physics was enabled; anti_triton did not, and still
51+
does not, have beta decay (because RadioactiveDecay, in its current
52+
implementation, does not handle any kind of anti-ions): in practice,
53+
this is an acceptable approximation because of its relatively long
54+
lifetime and the fact that annihilation and nuclear capture are more
55+
likely to happen before decay.
56+
57+
o Processes - Electromagnetic:
58+
---------------------------
59+
+ standard:
60+
o G4WentzelOKandVIxSection: fixed numeric instability for the extreme
61+
case of very small kinetic energy (< 1 eV). Improved comments and
62+
fixed single scattering per region. Addressing problem report #2530.
63+
64+
o Processes - Hadronic:
65+
--------------------
66+
+ cross_sections:
67+
o G4ComponentAntiNuclNuclearXS: fix and extension in methods
68+
GetTotalElementCrossSection() and GetInelasticElementCrossSection();
69+
a bug was causing undefined values for, respectively, the total and
70+
inelastic cross-sections of anti-proton interactions with light target
71+
nuclei (d, H3, He3 and He4).
72+
o G4NeutronInelasticXS, G4ParticleInelasticXS: fixed computation of
73+
isotope cross-sections. Addressing problem report #2498.
74+
+ models/cascade
75+
o G4NumIntTwoBodyAngDst: corrected incomplete initialization of a vector.
76+
Addressing problem report #2515.
77+
o G4TwoBodyAngularDist: corrected the charge exchange reaction of pion+
78+
on neutron producing in the final state pion0 and proton.
79+
Addressing problem report #2516.
80+
+ models/lepto_nuclear
81+
o G4ElectroVDNuclearModel: added protections against null pointers to
82+
gamma cross-section and material, responsible for rare crashes.
83+
+ models/particle_hp
84+
o G4ParticleHPContAngularPar: added protection against zero probability
85+
for both discrete and continuous emission.
86+
+ models/parton_string
87+
o G4DiffractiveSplitableHadron: fixed rare large energy violations seen
88+
with FTF when dealing with charm and bottom hadron nuclear interactions.
89+
o G4LundStringFragmentation, G4QGSMFragmentation: corrected value for
90+
the probability of charm/anti-charm creation from the vacuum (a factor
91+
of 10 higher was set to enhance the production of charm hadrons for
92+
testing purposes).
93+
o G4QGSMFragmentation: bug-fix in the method GetLightConeZ(), which
94+
might cause rare access to arrays with a wrong index.
95+
+ util
96+
o G4Nucleus: corrected method GetN_asInt() for the case of hypernuclei.
97+
98+
----------------------------------------------------------------------------
99+
100+
Technical Notes
101+
---------------
102+
103+
o This patch should be applied on top of release 11.0 series.
104+
o Technical notes distributed for release 11.0 are also applicable and
105+
valid for this patch.
106+
107+
The code and rebuilt binary libraries for release 11.0.4 are available
108+
through the Geant4 "Download" Web page.
109+
110+
Please refer to the Geant4 User Documentation for further information about
111+
using Geant4.

cmake/History

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ add this in the documentation for the changed file as [BUGFIX #BUGNUMBER].
2929
* Reverse chronological order (last date on top), please *
3030
----------------------------------------------------------
3131

32+
6 February 2023 Ben Morgan (cmake-V10-07-58)
33+
- Remove no longer required G4VecGeomShim module.
34+
- VecGeom supports/supplies full imported targets since 1.1.18
35+
- Use of VECGEOM_LIBRARIES variable required to allow build against CUDA-enabled VecGeom
36+
3237
14 July 2022 - Ben Morgan (cmake-V10-07-57)
3338
- Address [Bugzilla 2485](https://bugzilla-geant4.kek.jp/show_bug.cgi?id=2485)
3439
- Update extraction of include paths from VecGeom to use imported target

cmake/Modules/G4ConfigureCMakeHelpers.cmake

-7
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,6 @@ configure_file(
187187
COPYONLY
188188
)
189189

190-
configure_file(
191-
${PROJECT_SOURCE_DIR}/cmake/Modules/G4VecGeomShim.cmake
192-
${PROJECT_BINARY_DIR}/G4VecGeomShim.cmake
193-
COPYONLY
194-
)
195-
196190
configure_file(
197191
${PROJECT_SOURCE_DIR}/cmake/Modules/G4X11Shim.cmake
198192
${PROJECT_BINARY_DIR}/G4X11Shim.cmake
@@ -274,7 +268,6 @@ install(FILES
274268
${PROJECT_BINARY_DIR}/G4EXPATShim.cmake
275269
${PROJECT_BINARY_DIR}/G4FreetypeShim.cmake
276270
${PROJECT_BINARY_DIR}/G4HDF5Shim.cmake
277-
${PROJECT_BINARY_DIR}/G4VecGeomShim.cmake
278271
${PROJECT_BINARY_DIR}/G4MotifShim.cmake
279272
${PROJECT_BINARY_DIR}/G4X11Shim.cmake
280273
${PROJECT_SOURCE_DIR}/cmake/Templates/UseGeant4.cmake

cmake/Modules/G4OptionalComponents.cmake

-5
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,6 @@ endif()
298298
# - Geant4 USolids/VecGom setup
299299
if(GEANT4_USE_ALL_USOLIDS OR GEANT4_USE_PARTIAL_USOLIDS)
300300
find_package(VecGeom 1.1.18 REQUIRED)
301-
# Shim until VecGeom supports config mode properly
302-
include("${CMAKE_CURRENT_LIST_DIR}/G4VecGeomShim.cmake")
303-
# Backward Compatibility
304-
set(VECGEOM_LIBRARIES VecGeom::vecgeom)
305-
306301
geant4_save_package_variables(VecGeom VecGeom_DIR)
307302

308303
# If VecCore_DIR is set, means updated VecGeom install used, so

cmake/Modules/G4VecGeomShim.cmake

-20
This file was deleted.

cmake/Templates/Geant4Config.cmake.in

-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ endif()
332332
set(Geant4_usolids_FOUND @GEANT4_USE_USOLIDS_EITHER@)
333333
if(Geant4_usolids_FOUND)
334334
find_dependency(VecGeom @VecGeom_VERSION@)
335-
include("${CMAKE_CURRENT_LIST_DIR}/G4VecGeomShim.cmake")
336335
endif()
337336

338337
# - Freetype

0 commit comments

Comments
 (0)