Skip to content

Commit db49709

Browse files
committed
Import Geant4 10.5.0 source tree
1 parent 6aa23be commit db49709

File tree

11,370 files changed

+178712
-151374
lines changed

Some content is hidden

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

11,370 files changed

+178712
-151374
lines changed

CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#
44
# 21st September 2010 Ben Morgan
55
#
6-
# $Id: CMakeLists.txt 110849 2018-06-20 06:36:08Z gcosmo $
76
#
87

98
#-----------------------------------------------------------------------

ReleaseNotes/Beta4.10.5-1.txt

-4
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
o G4LindhardSorensenIonModel, G4LindhardSorensenData: new relativistic ion
5959
ionisation model.
6060
o Introduced switch in cross-sections to allow transuranic elements.
61-
o Implemented simple algorithm in visualization to allow colouring of
62-
detector elements based on materials density.
6361
o Removed unnecessary checks of process manager for generic ion and muonic
6462
atom in G4SteppingManager.
6563
o Implemented simple algorithm in visualization to allow colouring of
@@ -840,8 +838,6 @@ List of features and fixes included in this Beta release since 10.4.p02:
840838
o Removed obsloete class PhysListEmStandardSSM.
841839
o PhysicsList: make Opt4 default, removed local instantiation of G4Decay.
842840
o Corrected input macros to optimise output.
843-
+ extended/electromagnetic/TestEm5
844-
o Corrected input macros to optimise output.
845841
+ extended/electromagnetic/TestEm7
846842
o SteppingAction: added edep at end of step for photo-electric.
847843
o Fixed compilation warning on gcc-8.1.0.

ReleaseNotes/ReleaseNotes4.10.5.html

+2,812
Large diffs are not rendered by default.

cmake/History

+47-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cvs log $Id: History,v 1.3 2010-12-03 17:58:51 gcosmo Exp $
21
-------------------------------------------------------------------
32

43
=========================================================
@@ -31,6 +30,53 @@ add this in the documentation for the changed file as [BUGFIX #BUGNUMBER].
3130

3231
----------------------------------------------------------
3332

33+
5th November 2018 - Gunter Folger (cmake-V10-04-27)
34+
- Switch to G4PARTICLEXS 1.1
35+
36+
5th November 2018 - Gunter Folger (cmake-V10-04-26)
37+
- Modules/Geant4DatasetDefinitions.cmake:
38+
remove entry for G4NEUTRONXS
39+
40+
2nd November 2018 - Gunter Folger (cmake-V10-04-25)
41+
- Modules/Geant4DatasetDefinitions.cmake:
42+
Add new G4PARTICLEXS data set; this replaces G4NEUTRONXS
43+
- fix dates of two entries below; was wrong, not even a typo
44+
45+
29th October 2018 - Gunter Folger (cmake-V10-04-24)
46+
- Switch to new dataset RadioactiveDecay5.3
47+
48+
29th October 2018 - Gunter Folger (cmake-V10-04-23)
49+
- Switch to new dataset PhotonEvaporation5.3
50+
51+
18th October 2018 - Ben Morgan (cmake-V10-04-22)
52+
- Modules/Geant4InstallData.cmake: Use https for URL
53+
- Templates/geant4-config.in: Add -L flag to curl to follow redirects
54+
when accessing dataset url
55+
56+
28th September 2018 - Gabriele Cosmo (cmake-V10-04-21)
57+
- Modules/Geant4MakeRules_cxx.cmake: added -DGL_SILENCE_DEPRECATION
58+
to CMAKE_CXX_FLAGS_INIT for clang to silence GL deprecation compilation
59+
warnings on MacOS 10.14 Mojave.
60+
61+
19th September 2018 - Gunter Folger (cmake-V10-04-20)
62+
- Switch to G4SAIDDATA2.0
63+
64+
17th September 2018 - Gunter Folger (cmake-V10-04-19)
65+
- Switch to G4EMLOW7.7
66+
67+
22nd August 2018 - Gabriele Cosmo (cmake-V10-04-18)
68+
- Updated FindInventor.cmake to properly setup SoQt if existing.
69+
- Geant4InterfaceOptions.cmake: added check for existance of SoQt package.
70+
71+
9th August 2018 - Gunter Folger (cmake-V10-04-17)
72+
- Switch to G4EMLOW7.6
73+
74+
3rd August 2018 - Gunter Folger (cmake-V10-04-16)
75+
- Add new dataset for INCL, G4INCL1.0
76+
77+
4th July 2018 - Gunter Folger (cmake-V10-04-15)
78+
- Switch to G4EMLOW7.5
79+
3480
19th June 2018 - Gunter Folger (cmake-V10-04-14)
3581
- Templates/geant4_validate_sources.cmake.in, revert addition of .c and .h
3682
Skip checking sources for zlib

cmake/Modules/FindInventor.cmake

+44-20
Original file line numberDiff line numberDiff line change
@@ -213,24 +213,48 @@ if(UNIX)
213213
PATHS ${INVENTOR_LIB_SEARCH_PATH}
214214
)
215215

216-
# try to find SoXt debug lib (priority paths)
217-
#FIND_LIBRARY(INVENTOR_SOXT_LIBRARY_DEBUG
218-
# NAMES soxt1d
219-
# PATHS ${SOXT_PREFIX}/lib
220-
# $ENV{COINDIR}/lib
221-
# NO_DEFAULT_PATH
222-
# )
223-
224-
# try to find SoXt debug lib (regular paths)
225-
#FIND_LIBRARY(INVENTOR_SOXT_LIBRARY_DEBUG
226-
# NAMES soxt1d
227-
# PATHS ${INVENTOR_LIB_SEARCH_PATH}
228-
# )
229-
230-
# SoXt debug library defaults to non-debug lib
231-
#IF(NOT INVENTOR_SOXT_LIBRARY_DEBUG)
232-
# IF(INVENTOR_SOXT_LIBRARY)
233-
# SET(INVENTOR_SOXT_LIBRARY_DEBUG INVENTOR_SOXT_LIBRARY)
234-
# ENDIF(INVENTOR_SOXT_LIBRARY)
235-
#ENDIF(NOT INVENTOR_SOXT_LIBRARY_DEBUG)
216+
#
217+
# SoQt
218+
#
219+
# notes:
220+
# - SoQt is detected by soqt-config script (as expected by
221+
# Coin's SoQt on Linux/Unix) and on standard system locations
222+
#
223+
224+
# soqt-config tells much of SoQt installation (if present)
225+
execute_process (COMMAND soqt-config --prefix
226+
OUTPUT_VARIABLE SOQT_PREFIX
227+
OUTPUT_STRIP_TRAILING_WHITESPACE)
228+
229+
# try to find Inventor includes (priority paths from coin-config and COINDIR)
230+
FIND_PATH(INVENTOR_SOQT_INCLUDE_DIR Inventor/Qt/SoQt.h
231+
${SOQT_PREFIX}/include
232+
$ENV{COINDIR}/include
233+
NO_DEFAULT_PATH
234+
)
235+
236+
# try to find Inventor includes (system paths)
237+
FIND_PATH(INVENTOR_SOQT_INCLUDE_DIR Inventor/Qt/SoQt.h
238+
/usr/local/include
239+
/usr/include
240+
/sw/include
241+
/opt/local/include
242+
/opt/csw/include
243+
/opt/include
244+
)
245+
246+
# try to find SoQt lib (priority paths)
247+
FIND_LIBRARY(INVENTOR_SOQT_LIBRARY
248+
NAMES soqt1 SoQt
249+
PATHS ${SOQT_PREFIX}/lib
250+
$ENV{COINDIR}/lib
251+
NO_DEFAULT_PATH
252+
)
253+
254+
# try to find SoQt lib (regular paths)
255+
FIND_LIBRARY(INVENTOR_SOQT_LIBRARY
256+
NAMES soqt1 SoQt
257+
PATHS ${INVENTOR_LIB_SEARCH_PATH}
258+
)
259+
236260
endif()

cmake/Modules/G4BuildSettings.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ endif()
197197
# Smart pointers are a library implementation feature
198198
# Hashed containers are a library implementation feature
199199
# Random numbers are a library implementation feature?
200-
# - Thread local? Yes, though on AppleClang platforms, see this:
201-
#http://stackoverflow.com/questions/28094794/why-does-apple-clang-disallow-c11-thread-local-when-official-clang-supports
202200
# An example of where a workaround is needed
203201
# Rest of concurrency a library implementation feature
204202

cmake/Modules/Geant4DatasetDefinitions.cmake

+25-14
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,41 @@ geant4_add_dataset(
1818
# - Low energy electromagnetics
1919
geant4_add_dataset(
2020
NAME G4EMLOW
21-
VERSION 7.4
21+
VERSION 7.7
2222
FILENAME G4EMLOW
2323
EXTENSION tar.gz
2424
ENVVAR G4LEDATA
25-
MD5SUM a4443411b1a8782640b6eec691e7c25f
25+
MD5SUM 0f650ea65c028e862a05293c10ec1089
2626
)
2727

2828
# - Photon evaporation
2929
geant4_add_dataset(
3030
NAME PhotonEvaporation
31-
VERSION 5.2
31+
VERSION 5.3
3232
FILENAME G4PhotonEvaporation
3333
EXTENSION tar.gz
3434
ENVVAR G4LEVELGAMMADATA
35-
MD5SUM 37c5dea9614a07885050350d071a6973
35+
MD5SUM 8991682af997e71bdd87f72ee3b3e9ee
3636
)
3737

3838
# - Radioisotopes
3939
geant4_add_dataset(
4040
NAME RadioactiveDecay
41-
VERSION 5.2
41+
VERSION 5.3
4242
FILENAME G4RadioactiveDecay
4343
EXTENSION tar.gz
4444
ENVVAR G4RADIOACTIVEDATA
45-
MD5SUM e035ed77e12be3a69c2d32806d1b5cde
45+
MD5SUM ce1fe5e4d82d1a2ce89380e5e7e16cc8
4646
)
4747

48-
# - Neutron XS
48+
# - Particle XS - replaces Neutron XS
4949
geant4_add_dataset(
50-
NAME G4NEUTRONXS
51-
VERSION 2.0
52-
FILENAME G4NEUTRONXS
50+
NAME G4PARTICLEXS
51+
VERSION 1.1
52+
FILENAME G4PARTICLEXS
5353
EXTENSION tar.gz
54-
ENVVAR G4NEUTRONXSDATA
55-
MD5SUM c3af588c26522f289ec60dcb7c847ade
54+
ENVVAR G4PARTICLEXSDATA
55+
MD5SUM 17dc6c6f11db7ca81dea1c2c2b3707d2
5656
)
5757

5858
# - PII
@@ -78,11 +78,11 @@ geant4_add_dataset(
7878
# - SAID
7979
geant4_add_dataset(
8080
NAME G4SAIDDATA
81-
VERSION 1.1
81+
VERSION 2.0
8282
FILENAME G4SAIDDATA
8383
EXTENSION tar.gz
8484
ENVVAR G4SAIDXSDATA
85-
MD5SUM d88a31218fdf28455e5c5a3609f7216f
85+
MD5SUM d5d4e9541120c274aeed038c621d39da
8686
)
8787

8888
# - ABLA
@@ -95,6 +95,17 @@ geant4_add_dataset(
9595
MD5SUM 180f1f5d937733b207f8d5677f76296e
9696
)
9797

98+
99+
# - INCL
100+
geant4_add_dataset(
101+
NAME G4INCL
102+
VERSION 1.0
103+
FILENAME G4INCL
104+
EXTENSION tar.gz
105+
ENVVAR G4INCLDATA
106+
MD5SUM 85fe937b6df46d41814f07175d3f5b51
107+
)
108+
98109
# - ENSDFSTATE
99110
geant4_add_dataset(
100111
NAME G4ENSDFSTATE

cmake/Modules/Geant4InstallData.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
# retrieving them globally
100100
#-----------------------------------------------------------------------
101101
# Geant4 Data Repository
102-
set(GEANT4_DATASETS_URL "http://cern.ch/geant4-data/datasets")
102+
set(GEANT4_DATASETS_URL "https://cern.ch/geant4-data/datasets")
103103

104104
# Where to install data in the build tree
105105
set(GEANT4_BUILD_FULL_DATADIR ${PROJECT_BINARY_DIR}/data)

cmake/Modules/Geant4InterfaceOptions.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ if(GEANT4_USE_INVENTOR)
5252
if(NOT INVENTOR_SOXT_LIBRARY OR NOT INVENTOR_SOXT_INCLUDE_DIR)
5353
message(FATAL_ERROR "Could not find SoXt library and/or headers")
5454
endif()
55+
if (GEANT4_USE_INVENTOR_QT)
56+
if (NOT INVENTOR_SOQT_LIBRARY OR NOT INVENTOR_SOQT_INCLUDE_DIR)
57+
message(FATAL_ERROR "Could not find SoQt library and/or headers")
58+
endif()
59+
endif()
5560
set(INVENTOR_INCLUDE_DIR "${INVENTOR_INCLUDE_DIR}" "${INVENTOR_SOXT_INCLUDE_DIR}")
5661
find_package(Motif REQUIRED)
5762
find_package(X11 REQUIRED)

cmake/Modules/Geant4MakeRules_cxx.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
4141
set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
4242
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
4343

44-
# Remove superfluous "unused argument" "warnings" from Clang
44+
# Remove superfluous "unused argument" and "GL deprecation" "warnings" from Clang
4545
if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
46-
set(CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} -Qunused-arguments")
46+
set(CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} -Qunused-arguments -DGL_SILENCE_DEPRECATION")
4747
endif()
4848

4949
# Though it should be the default, always use libc++ with AppleClang

0 commit comments

Comments
 (0)