Skip to content

Commit de4f28d

Browse files
committed
Import Geant4 11.0.1 source tree
1 parent 84f33a0 commit de4f28d

File tree

234 files changed

+49204
-49155
lines changed

Some content is hidden

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

234 files changed

+49204
-49155
lines changed

.github/CODEOWNERS

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
/source/processes/scoring @makotoasai @jrmadsen
1616

1717
# Tracking
18-
/source/tracking/ @ts-kek @amakoG4AI @makotoasai
18+
/source/tracking/ @ts-kek @shogo0416 @makotoasai
1919

2020
# Particles and Track
2121
# TBA: Hisaya Kurashige
22-
/source/track/ @makotoasai
23-
/source/particles/ @makotoasai
22+
/source/track/ @shogo0416 @makotoasai
23+
/source/particles/ @shogo0416 @makotoasai
2424

2525
# Geometry and Transport
2626
/source/geometry/ @gcosmo @jonapost

.gitignore

+8-6
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,7 @@ tags
243243
#======================================================================
244244
# vi. VisualStudio/Code
245245
#======================================================================
246-
.vscode/*
247-
!.vscode/settings.json
248-
!.vscode/tasks.json
249-
!.vscode/launch.json
250-
!.vscode/extensions.json
246+
.vscode*
251247

252248
#======================================================================
253249
# vii. Xcode
@@ -272,10 +268,15 @@ xcuserdata/
272268
*.xccheckout
273269
*.xcscmblueprint
274270

271+
#======================================================================
272+
# viii. QtCreator
273+
#======================================================================
274+
CMakeLists.txt.user
275+
275276
#=====================================================================
276277
# CLion
277278
#=====================================================================
278-
279+
.idea*
279280
cmake-build*
280281

281282
4. Development/Build Generated
@@ -333,3 +334,4 @@ CTestTestfile.cmake
333334
*.su
334335
*.idb
335336
*.pdb
337+

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 0)
35+
set(${PROJECT_NAME}_VERSION_PATCH 1)
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-1.txt

+176
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
2+
Geant4 11.0 - patch-01 Release Notes
3+
------------------------------------
4+
5+
8 March 2022
6+
7+
List of fixes included in this public patch since the public release 11.0:
8+
9+
o Configuration
10+
-------------
11+
+ CMake:
12+
o Adding missing G4ptl and G4tasking libraries to link list in
13+
geant4-config script. Addressing GitHub PR#37.
14+
15+
o Analysis:
16+
--------
17+
+ Fix in notifying about closing file in G4GenericAnalysisManager.
18+
19+
o Externals:
20+
---------
21+
+ Fix in CMAke script to export built-in PTL include directory to include
22+
path list for use of geant4-config.
23+
24+
o Geometry:
25+
--------
26+
+ solids/Boolean:
27+
o In G4MultiUnion, added alternative signature for AddNode() taking a
28+
pointer to solid. Added 'const' qualification to transformation passed
29+
as argument. Addressing problem report #2457.
30+
31+
o Global:
32+
------
33+
+ G4String: provide overload G4String::operator[](int) to workaround MSVC
34+
compiler error C2666. Addressing problem report #2463.
35+
+ Updated date and version for 11.0.1.
36+
37+
o Intercoms:
38+
---------
39+
+ Check and set proper argument types for each individual argument when
40+
G4GenericMessenger::DeclareMethod() is used.
41+
Addressing problem report #2420.
42+
43+
o Materials:
44+
---------
45+
+ G4MaterialPropertiesTable: set G4MaterialPropertyVector verbosity to 1.
46+
+ G4DensityEffectData: fixed typos in the density effect data table for 8
47+
materials; the most significant fix is for G4_Tm; of minor entity for
48+
G4_Be, G4_Mg, G4_Fe, and G4_Y. Addressing problem report #2423.
49+
+ G4SandiaTable: fixed compilation warning on unused variable.
50+
51+
o Persistency:
52+
-----------
53+
+ ASCII:
54+
o Corrected wrong automatic conversion degree-radian for G4Polycone phi
55+
angle parameter. Based on GitHub PR#36.
56+
57+
o Physics Lists:
58+
-------------
59+
+ constructors/electromagnetic
60+
o G4EmStandardPhysics_option3: use options providing more accurate
61+
simulation without loss of CPU performance: set RangeFactor to 0.03;
62+
use 'SafetyPlus' step limitation instead of 'DistanceToBoundary'.
63+
Significantly improving fanoCavity results.
64+
65+
o Processes - Electromagnetic:
66+
---------------------------
67+
+ low-energy
68+
o G4MicroElecInelasticModel_new: changed interpolate() method; making a
69+
choice between log-log, lin-log, and lin-lin interpolations and added a
70+
protection for zero input energy. When sampling transition, the choice
71+
is implemented for transition from atomic level and Fermi level.
72+
Should fix rare crash observed in this model.
73+
o Prefer pointer to 'const G4Material' where possible.
74+
o G4hIonEffChargeSquare, G4PenelopeRayleighModel,
75+
G4PenelopeRayleighModelMI: fixed compilation warning on unused variable.
76+
+ standard
77+
o G4UniversalFluctuation: introduced new protected method SampleGlandz(),
78+
which provides sampling of non-Gauss fluctuations; improved arithmetics;
79+
same results as in release 11.0.0.
80+
o G4UrbanFluctuation: reorganized version of fluctuation model from
81+
release 10.7 in SampleGlandz() method.
82+
o G4UniversalFluctuation, G4UrbanFluctuation: use the same fw=4 and a0=42
83+
parameters of the model providing similar fluctuation results for small
84+
steps in thin layers as in version 10.7.
85+
Addressing problem report #2466.
86+
o G4LossFluctuationDummy: new class with zero fluctuations.
87+
o G4UrbanMscModel: minor optimisation of arithmetics. Removed multiple
88+
initialisation of the cache data structure and possible data race.
89+
o G4CoulombScattering: for single scattering used in restricted interval
90+
of large angles, use 'fEmIncreasing' type of cross-section shape.
91+
+ utils
92+
o G4VEmProcess: fixed methods where implementation is based on assumption
93+
that the lambda table is defined for full energy range:
94+
LambdaPhysicsVector(..), CrossSEctionPerVolume(..), FindLambdaMax(..).
95+
No change is expected for the default physics configuration; fix mainly
96+
affecting positron annihilation processes at high energies.
97+
o G4VMscModel, G4VEmProcess: move few methods and header files from
98+
header to source in order to reduce dependencies between packages.
99+
o G4EmParametersMessenger: added forgotten UI command to enable
100+
polarisation.
101+
o Added info in 'setMaxBetaChange' command description.
102+
+ xrays
103+
o Fix in 'MaxBetaChange' value in Cerenkov process.
104+
Addressing problem report #2456.
105+
o G4Scintillation: removed unused 'YieldFactor' declarations.
106+
Addressing problem report #2470.
107+
108+
o Processes - Generic:
109+
-------------------
110+
+ cuts
111+
o G4VRangeToEnergyConverter: fixed construction/destruction of static
112+
data.
113+
+ optical
114+
o Removed G4lrint/G4lint to calculate angle bin for Davis/LBNL LUT;
115+
fixes crash when angle = 0.
116+
117+
o Processes - Hadronic:
118+
--------------------
119+
+ cross_sections
120+
o G4ComponentAntiNuclNuclearXS: correct treatment of the cross-sections
121+
of light anti-nuclei on hydrogen target. This relies on the isospin
122+
symmetry assumption, according to which the properties of the reactions
123+
between anti-proton and light nuclei are equivalent to those between
124+
light anti-nuclei and hydrogen.
125+
+ models/coherent_elastic
126+
o G4AntiNuclElastic: correction in SampleInvariantT() method of the
127+
highest momentum transfer (which was causing the cosine of the polar
128+
angle in the center-of-mass system to be larger than 1 in some cases).
129+
Addressing problem report #2204.
130+
+ models/inclxx
131+
o G4INCLXXInterface: fixed treatment of kaon0, anti_kaon0, kaon0L, and
132+
kaon0S. In current reference physics lists, INCLXX is never used for
133+
handling kaons, although it is capable of doing so, but at process-
134+
level or in custom physics lists one could observe crashes when trying
135+
to use INCLXX for neutral kaon projectiles. The change fixes this
136+
misbehavior.
137+
138+
o Run
139+
---
140+
+ Fixed missing 'AnnihToTauTau' entry from default physics list ordering
141+
that would cause a fatal exception if 'EmExtra' is used with
142+
PositronToMuMu=True.
143+
+ Adding verbosity control to some printouts to standard output.
144+
Addressing problem report #2397.
145+
146+
o Tasking
147+
-------
148+
+ Fixing number of seeds to be generated for the case when seeds from
149+
master are seeded only once per task.
150+
+ Adding verbosity control to some printouts to standard output.
151+
Addressing problem report #2397.
152+
153+
o Examples:
154+
--------
155+
+ extended/medical/fanoCavity
156+
+ extended/medical/fanoCavity2
157+
o Make PhysicsLists coherent with main physics_list library.
158+
+ extended/optical/OpNovice
159+
o Fixed incorrect call to G4MaterialPropertiesTable::AddProperty().
160+
Added comments explaining use.
161+
162+
163+
----------------------------------------------------------------------------
164+
165+
Technical Notes
166+
---------------
167+
168+
o This patch should be applied on top of release 11.0.
169+
o Technical notes distributed for release 11.0 are also applicable and
170+
valid for this patch.
171+
172+
The code and rebuilt binary libraries for release 11.0.1 are available
173+
through the Geant4 "Download" Web page.
174+
175+
Please refer to the Geant4 User Documentation for further information about
176+
using Geant4.

cmake/History

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

32+
11 February 2022 - Ben Morgan (cmake-V10-07-54)
33+
- Apply [GitHub PR 37](https://github.com/Geant4/geant4/pull/37) from gondiaz.
34+
- Add G4ptl and G4tasking libraries to link list in geant4-config
35+
- Fixup: place G4tasking in correct location in dependency list
36+
- Fixup: Update order of G4analysis for ALICE patch:
37+
- https://github.com/alisw/geant4/commit/ee32bad38f5ccfac458869d8c546e0df474f5529
38+
3239
09 November 2021 - Ben Morgan (cmake-V10-07-53)
3340
- Only configure public release contribution guide if present
3441

cmake/Templates/geant4-config.in

+10-1
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,16 @@ done
113113

114114
libs="-lG4interfaces \
115115
-lG4persistency \
116-
-lG4analysis \
117116
-lG4error_propagation \
118117
-lG4readout \
119118
-lG4physicslists \
119+
-lG4tasking \
120120
-lG4run \
121121
-lG4event \
122122
-lG4tracking \
123123
-lG4parmodels \
124124
-lG4processes \
125+
-lG4analysis \
125126
-lG4digits_hits \
126127
-lG4track \
127128
-lG4particles \
@@ -175,6 +176,14 @@ if test "x${have_gdml}" = "xyes" ; then
175176
cflags="${cflags} @G4_XERCESC_CFLAGS@"
176177
fi
177178

179+
# - PTL
180+
have_ptl="@G4_BUILTWITH_PTL@"
181+
feature_list="${feature_list} ptl[${have_ptl}]"
182+
183+
if test "x${have_ptl}" = "xyes" ; then
184+
libs="${libs} -lG4ptl"
185+
fi
186+
178187
# - USolids
179188
have_usolids="@G4_BUILTWITH_USOLIDS@"
180189
feature_list="${feature_list} usolids[${have_usolids}]"

0 commit comments

Comments
 (0)