Skip to content

Commit 0c9e661

Browse files
committed
Import Geant4 9.4.2 source tree
1 parent 191b35a commit 0c9e661

File tree

556 files changed

+27217
-25470
lines changed

Some content is hidden

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

556 files changed

+27217
-25470
lines changed

CMakeLists.txt

+40-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# 21st September 2010 Ben Morgan
55
#
66
# $Id: CMakeLists.txt,v 1.6 2010-12-08 16:36:34 bmorgan Exp $
7+
# GEANT4 Tag $Name: geant4-09-04-patch-02 $
78
#
89

910
#------------------------------------------------------------------------------
@@ -38,10 +39,10 @@ project(geant4)
3839
# Define the version of the project - can be used to generate sources,
3940
# but just used for CPack the the moment
4041
#
41-
set(${PROJECT_NAME}_VERSION "9.4.1")
42+
set(${PROJECT_NAME}_VERSION "9.4.2")
4243
set(${PROJECT_NAME}_VERSION_MAJOR "9")
4344
set(${PROJECT_NAME}_VERSION_MINOR "4")
44-
set(${PROJECT_NAME}_VERSION_PATCH "1")
45+
set(${PROJECT_NAME}_VERSION_PATCH "2")
4546

4647
#------------------------------------------------------------------------------
4748
# Set up path to internal set of CMake modules.
@@ -63,6 +64,34 @@ if(NOT WIN32)
6364
include(Geant4BuildModes)
6465
endif(NOT WIN32)
6566

67+
# Optional define flags which are applicable globally
68+
69+
# G4_STORE_TRAJECTORY
70+
# ON by default, switching off can improve performance. Needs to be on
71+
# for visualization to work fully. Mark as advanced because most users
72+
# should not need to worry about it.
73+
# FIXES : Bug #1208
74+
option(GEANT4_STORE_TRAJECTORY "Store trajectories in event processing. Switch off for improved performance but note that visualization of trajectories will not be possible" ON)
75+
mark_as_advanced(GEANT4_STORE_TRAJECTORY)
76+
77+
if(GEANT4_STORE_TRAJECTORY)
78+
add_definitions(-DG4_STORE_TRAJECTORY)
79+
endif()
80+
81+
82+
# G4VERBOSE
83+
# ON by default, switching off can improve performance, but at the cost of
84+
# fewer informational or warning messages. Mark as advanced because most users
85+
# should not need to worry about it.
86+
option(GEANT4_VERBOSE_CODE
87+
"Enable verbose output from Geant4 code. Switch off for better performance at the cost of fewer informational messages or warnings"
88+
ON)
89+
mark_as_advanced(GEANT4_VERBOSE_CODE)
90+
91+
if(GEANT4_VERBOSE_CODE)
92+
add_definitions(-DG4VERBOSE)
93+
endif()
94+
6695

6796
#------------------------------------------------------------------------------
6897
# Includes for common utilities
@@ -207,11 +236,16 @@ include(Geant4ConfigureConfigScript)
207236
#------------------------------------------------------------------------------
208237
# Install any extra files needed such as documentation and legacy Makefiles
209238
#
210-
# User example code
211-
install(DIRECTORY examples
212-
DESTINATION ${GEANT4_DATAROOTDIR}/geant4-${geant4_VERSION}
213-
PATTERN "CVS" EXCLUDE)
239+
# User example code - optional
240+
option(GEANT4_INSTALL_EXAMPLES "Install all Geant4 examples" OFF)
214241

242+
if(GEANT4_INSTALL_EXAMPLES)
243+
install(DIRECTORY examples
244+
DESTINATION ${GEANT4_DATAROOTDIR}/geant4-${geant4_VERSION}
245+
COMPONENT Examples
246+
PATTERN "CVS" EXCLUDE
247+
PATTERN ".svn" EXCLUDE)
248+
endif()
215249

216250
#
217251
# Final output - show what's been enabled so that user knows what's

Configure

+21-12
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# $Id: Head.U,v 1.3 2002-06-23 20:31:44 sadilov Exp $
2222
#
23-
# Generated on Fri Feb 11 12:53:03 GMT 2011 [metaconfig 3.0 PL70]
23+
# Generated on Fri Jun 24 15:51:14 BST 2011 [metaconfig 3.0 PL70]
2424

2525
cat >/tmp/c1$$ <<EOF
2626
WARNING!!!!!
@@ -186,6 +186,7 @@ g4clhep_base_dir=''
186186
g4clhep_include_dir=''
187187
g4clhep_lib=''
188188
g4clhep_lib_dir=''
189+
g4lib_build_dll=''
189190
g4lib_build_shared=''
190191
g4lib_build_static=''
191192
g4lib_use_dll=''
@@ -292,6 +293,7 @@ g4lib_use_shared='y'
292293
g4lib_build_static='n'
293294
g4lib_use_static='n'
294295
g4lib_build_dll='n'
296+
g4lib_use_dll='n'
295297
g4lib_build_dyn='n'
296298
#INITIALIZE GLOBAL/GRANULAR LIBRARY OPTIONS
297299
g4global='y'
@@ -2237,9 +2239,9 @@ $startsh
22372239
with_qt_dir="\$qt_search_dir"
22382240
22392241
#
2240-
# Only run if we haven't succesfully found Qt already
2242+
# Only run if we haven't succesfully found Qt4 already
22412243
#
2242-
if test "x\$g4_qt_is_configured" = "x" ; then
2244+
if test "x\$g4_qt_is_configured" = "x" || test "x\$g4_is_qt4" = "xno" ; then
22432245
#
22442246
# Flag specifying if we've configured Qt o.k.
22452247
#
@@ -2726,9 +2728,13 @@ EOM\`
27262728
g4_havegoodqt="no"
27272729
fi #END TEST for Darwin Framework
27282730
2731+
# Hack in a final, well, hack to flag qt4
2732+
if test "x\$g4_qt_version" = "x4" || "x\$g4_qt_major_version" = "x4" ; then
2733+
g4_is_qt4="yes"
2734+
fi
27292735
else
27302736
#Probably also want flags here to reset variables if requested
2731-
echo "configure: Qt already configured, no recheck neccessary"
2737+
echo "configure: Qt already configured, no recheck necessary"
27322738
fi #END TEST "x\$g4_qt_is_configured" = "x"
27332739
27342740
EOSC
@@ -3135,12 +3141,14 @@ if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then
31353141
case $gans in
31363142
n*|N*)
31373143
g4lib_build_dll=n
3144+
g4lib_use_dll=n
31383145
g4lib_build_shared=n
31393146
g4lib_build_static=y
31403147
break
31413148
;;
31423149
y*|Y*)
31433150
g4lib_build_dll=y
3151+
g4lib_use_dll=y
31443152
g4lib_build_shared=n
31453153
g4lib_build_static=n
31463154
break
@@ -4509,15 +4517,15 @@ if test "x$g4ui_none" = "xn" ; then
45094517
45104518
# If we didn't find Qt automatically, then ask user if they know
45114519
# where it's installed...
4512-
if test "x$g4_havegoodqt" = "xno" ; then
4520+
if test "x$g4_havegoodqt" = "xno" || test "x$g4_is_qt4" = "xno" ; then
45134521
promptend="no"
45144522
user_qthome="the standard locations"
45154523
45164524
while test "x$promptend" = "xno" ; do
45174525
g4message=`cat << EOM
45184526
4519-
Autodetection failed to locate Qt3 or Qt4 in $qthomeloc on your system.
4520-
Please enter the path to your Qt3 OR Qt4 install (i.e. if Qt4 is installed
4527+
Autodetection failed to locate Qt4 in $qthomeloc on your system.
4528+
Please enter the path to your Qt4 install (i.e. if Qt4 is installed
45214529
in PATH/include/QT, PATH/include or PATH/include/qt4, enter PATH),
45224530
or type '-' to CANCEL the build of the Qt UI module.
45234531
Qt path:
@@ -4540,7 +4548,7 @@ EOM`
45404548
qt_search_dir=$user_qthome
45414549
. ./qt
45424550
4543-
if test "x$g4_havegoodqt" = "xyes" ; then
4551+
if test "x$g4_havegoodqt" = "xyes" && test "x$g4_is_qt4" = "xyes" ; then
45444552
promptend=yes
45454553
fi
45464554
fi #END TEST user_qthome = -
@@ -5609,15 +5617,15 @@ if test "x$g4ui_build_qt_session" = "xy" ; then
56095617
56105618
# If we didn't find Qt automatically, then ask user if they know
56115619
# where it's installed...
5612-
if test "x$g4_havegoodqt" = "xno" ; then
5620+
if test "x$g4_havegoodqt" = "xno" || test "x$g4_is_qt4" = "xno" ; then
56135621
promptend="no"
56145622
user_qthome="the standard locations"
56155623
56165624
while test "x$promptend" = "xno" ; do
56175625
g4message=`cat << EOM
56185626
5619-
Autodetection failed to locate Qt3 or Qt4 in $qthomeloc on your system.
5620-
Please enter the path to your Qt3 OR Qt4 install (i.e. if Qt4 is installed
5627+
Autodetection failed to locate Qt4 in $qthomeloc on your system.
5628+
Please enter the path to your Qt4 install (i.e. if Qt4 is installed
56215629
in PATH/include/QT, PATH/include or PATH/include/qt4, enter PATH),
56225630
or type '-' to CANCEL the build of the Qt UI module.
56235631
Qt path:
@@ -5640,7 +5648,7 @@ EOM`
56405648
qt_search_dir=$user_qthome
56415649
. ./qt
56425650
5643-
if test "x$g4_havegoodqt" = "xyes" ; then
5651+
if test "x$g4_havegoodqt" = "xyes" && test "x$g4_is_qt4" = "xyes" ; then
56445652
promptend=yes
56455653
fi
56465654
fi #END TEST user_qthome = -
@@ -5973,6 +5981,7 @@ g4install='$g4install'
59735981
g4ledata='$g4ledata'
59745982
g4levelgammadata='$g4levelgammadata'
59755983
g4lib='$g4lib'
5984+
g4lib_build_dll='$g4lib_build_dll'
59765985
g4lib_build_gdml='$g4lib_build_gdml'
59775986
g4lib_build_shared='$g4lib_build_shared'
59785987
g4lib_build_static='$g4lib_build_static'

0 commit comments

Comments
 (0)