Skip to content

Commit a6e43df

Browse files
committed
Import Geant4 6.0.1 source tree
1 parent 96686e0 commit a6e43df

File tree

206 files changed

+14537
-17314
lines changed

Some content is hidden

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

206 files changed

+14537
-17314
lines changed

Configure

+7-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
# you may fetch it yourself from your nearest archive site.)
1919
#
2020

21-
# $Id: Configure,v 1.48 2003/12/12 15:02:51 stesting Exp $
21+
# $Id: Configure,v 1.49 2004/02/09 14:58:45 stesting Exp $
2222
#
23-
# Generated on Fri Dec 12 15:49:38 CET 2003 [metaconfig 3.0 PL70]
23+
# Generated on Mon Feb 9 15:57:09 CET 2004 [metaconfig 3.0 PL70]
2424

2525
cat >/tmp/c1$$ <<EOF
2626
WARNING!!!!!
@@ -3101,6 +3101,8 @@ gans=$ans
31013101
case $gans in
31023102
31033103
n*|N*)
3104+
g4lib_build_shared=n
3105+
g4lib_build_static=y
31043106
break
31053107
;;
31063108
y*|Y*)
@@ -3134,14 +3136,16 @@ You selected to build 'shared' (.so) libraries.
31343136
Do you want to build 'static' (.a) libraries too?
31353137
EOM`
31363138
3137-
dflt=$g4lib_build_static
3139+
#dflt=$g4lib_build_static
3140+
dflt=n
31383141
rp=$g4message
31393142
. ./myread
31403143
gans=$ans
31413144
31423145
case $gans in
31433146
31443147
n*|N*)
3148+
g4lib_build_static=n
31453149
break
31463150
;;
31473151
y*|Y*)

ReleaseNotes/Patch4.6.0-1.txt

+153
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
2+
Geant4 6.0 - patch-01 Release Notes
3+
-----------------------------------
4+
5+
11 February 2004
6+
7+
List of fixes included in this public patch since release 6.0:
8+
9+
o Configuration:
10+
-------------
11+
+ Configure:
12+
o Corrected defaults for shared-libs build.
13+
+ architecture.gmk:
14+
o Protect OGLFLAGS against containing include path to /usr/include.
15+
This may cause wrong includes to be picked up.
16+
+ Darwin-g++.gmk:
17+
o Adopt "g++" as the default as compiler.
18+
o Corrected procedure for building .dylib shared libs.
19+
Previous default Linux commands do not work on MacOSX.
20+
21+
o Geometry:
22+
--------
23+
+ magneticfield:
24+
o G4UniformMagField: added missing implementation for
25+
GetConstantFieldValue(). Fixes bug report #575.
26+
+ navigation:
27+
o Modified G4PropagatorInField::ReEstimateEndpoint() to cope with
28+
a failure of AccurateAdvance(), by calling it iteratively up maximum
29+
20 times.
30+
o Fix in G4PropagatorInField::SetVerboseLevel(): now forwarding the
31+
verbosity to integration driver.
32+
+ solids/CSG:
33+
o Converted strong exceptions in warning notifications for rare
34+
anomalous conditions in DistanceToOut(p,v,..).
35+
o G4Cons: bug fix in DistanceToIn(p,v) to resolve situations of calls
36+
to DistanceToOut() for points outside.
37+
+ solids/specific:
38+
o G4PolyhedraSide: fixed bug in which particles could "leak" out the
39+
center of a face if inner radius = 0. Fixes problem report #547.
40+
+ volumes:
41+
o G4AssemblyVolume: fixed initial value for 'numberOfDaughters' of
42+
imprinted volumes copy-numbers. Fixes problem report #566.
43+
44+
o Global:
45+
------
46+
+ G4UnitsTable: corrected signatures to consider 'const G4String&'
47+
wherever applicable.
48+
49+
o Materials:
50+
---------
51+
+ G4Material: proper STL handling of 'theElementVector'.
52+
+ Fixed problem in destructor of G4SandiaTable.
53+
54+
o Particles:
55+
---------
56+
+ Fixed initialization problems in G4NuclearPropertiesTable:
57+
o Added initialization of 'indexArray'.
58+
o Removed internal static member 'theInstance'.
59+
60+
o Electromagnetic low-energy processes:
61+
------------------------------------
62+
+ Fixed memory leaks in G4PenelopeInterpolator and G4PenelopeIonisation.
63+
64+
o Electromagnetic standard processes:
65+
----------------------------------
66+
+ standard:
67+
o Minor fixes in G4PAIonisation and G4PAIModel.
68+
+ utils:
69+
o Activated precise range calculation.
70+
o Added Set methods to G4LossTablemanager to define: binning,
71+
'maxEnergy' for muon tables, 'maxEnergy' for precise range.
72+
o Fixed problem in destruction of PAI model.
73+
o Fixed bug responsible for problems in cross section of
74+
delta-electron production from muons.
75+
76+
o Hadronic Processes:
77+
------------------
78+
+ management:
79+
o Fix for suspended particles. Solves a problem seen in neutron_hp
80+
elastic scattering.
81+
+ chiral_inv_phase_space:
82+
o Porting of experimental interface classes.
83+
o Provided implementation of missing cases which was cause of
84+
crashes in ATLAS production.
85+
+ neutron_hp:
86+
o Fixed conflict with system variable name.
87+
+ parton_string:
88+
o Lower bound added to transverse mass distribution, to enable
89+
diffractive scattering for gammas. Was cause of a crash in ATLAS
90+
productions.
91+
92+
o Optical processes:
93+
-----------------
94+
+ Fix in the initialization of the G4OpBoundaryProcessStatus at the
95+
beginning of its DoIt(), now set to "Undefined". This should allow
96+
a user to correctly get the process flag from the UserSteppingAction()
97+
through the public function G4OpBoundaryProcess::GetStatus()
98+
even when the (forced) DoIt() was called when the optical photon
99+
track was not at a boundary, or when medium1 == medium2.
100+
101+
o Parameterised processes:
102+
-----------------------
103+
+ G4FastSimulationVector: use std_pvector:: scope for calls to
104+
base class. Fixes compilation problem on Intel-icc compiler.
105+
106+
o Transportation processes:
107+
------------------------
108+
+ Fixed a bug in G4UserSpecialCuts related to 'charged-geantino'.
109+
110+
o Run:
111+
---
112+
+ Updated date to run-manager.
113+
114+
o Track:
115+
-----
116+
+ G4VParticleChange: removed unnecessary 'const' qualifier to return
117+
value in GetAccuracyForWarning() and GetAccuracyForException()
118+
causing noisy compilation warnings on Intel-icc compiler.
119+
120+
o Visualization:
121+
-------------
122+
+ management:
123+
o Fixed compilation problems on Intel-icc compiler. Added missing
124+
forward declaration of G4VisStateDependent to G4VisManager.
125+
+ HepRep:
126+
o Fixed handling of symbols zcalloc and zcfree of the zlib library
127+
being called as C++ mangled names.
128+
o Renamed zutil.h, zlib.h and zconf.h into HepRep-zutil.h, ... to
129+
avoid conflicts with those files on Unix systems if /usr/include
130+
or /usr/local/include is on the include search path.
131+
o Fixed compilation problems on Intel-icc compiler.
132+
133+
o Examples:
134+
--------
135+
+ Updated reference outputs.
136+
+ extended/analysis/A01
137+
o Fixed physics lists for EM processes.
138+
139+
----------------------------------------------------------------------------
140+
141+
Technical Notes
142+
---------------
143+
144+
o This patch should be applied on top of release 6.0.
145+
o Technical notes distributed for release 6.0 are also applicable and
146+
valid for this patch.
147+
148+
The code and rebuilt binary libraries for release 6.0 are available through
149+
our "Source Code" Web page: http://cern.ch/geant4
150+
151+
Please refer to the Geant4 User Documentation:
152+
http://cern.ch/geant4/G4UsersDocuments/Overview/html
153+
for further information about using Geant4.

ReleaseNotes/ReleaseNotes4.6.0.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ <H3><I>Geometry</I></H3>
201201
its mother physical volume during the navigation, it is now required to
202202
adopt <I>touchables</I> through the pre/post-step point.<BR>
203203
Examples on how to do this are provided in the
204-
<A TARGET="ext" HREF="http://cern.ch/geant4/support/faq.html#a-geom-3">FAQ page</A></LI>
204+
<A TARGET="ext" HREF="http://geant4.web.cern.ch/geant4/support/faq.html#a-geom-3">FAQ page</A></LI>
205205
<LI>Inherited user-defined physical volumes will have to adapt to the
206206
new interface by removing the method <TT>Setup()</TT>, now no longer
207207
required.</LI>
208208
<LI>A revision of methods in <TT>G4Navigator</TT> has taken place, some
209209
obsolete methods not used and available in the public interface have been
210210
removed, others originally meant for internal use have been moved
211-
to <TT>protected</TT> (see <A HREF=#geo-notes">notes</A> for details).<BR>
211+
to <TT>protected</TT> (see <A HREF="#geo-notes">notes</A> for details).<BR>
212212
<TT>LocateGlobalPointAndSetup(p,v,history)</TT> has been renamed to
213213
<TT>ResetHistoryAndLocate(p,v,history)</TT>.</LI>
214214
<LI>A revision of the inclusion of header files has been done in all
@@ -219,7 +219,7 @@ <H3><I>Geometry</I></H3>
219219
<LI>Internal modules in the geometry have been reorganised. External
220220
frameworks taking into account the internal structure of the Geant4
221221
modules will have to be adapted to the new configuration (see
222-
<A HREF=#geo-notes">notes</A> for the details).</LI>
222+
<A HREF="#geo-notes">notes</A> for the details).</LI>
223223
</UL>
224224

225225
<P> </P>

config/History

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$Id: History,v 1.231 2003/11/18 09:08:10 gcosmo Exp $
2-
$Name: geant4-06-00 $
1+
$Id: History,v 1.235 2004/02/09 15:22:48 gunter Exp $
2+
$Name: geant4-06-00-patch-01 $
33
-------------------------------------------------------------------
44

55
=========================================================
@@ -17,6 +17,24 @@ committal in the CVS repository !
1717
* Reverse chronological order (last date on top), please *
1818
----------------------------------------------------------
1919

20+
9th February 2004 Gunter Folger
21+
- protect OGLFLAGS against containing -I/usr/include; this may cause
22+
wrong includes to be picked up.
23+
24+
30th January 2004 Guy Barrand
25+
- WIN32-VC7.gmk: material to build shared libs for Windows (DLLs).
26+
- config/win32def.c : program to help building DLLs.
27+
- source/GNUmakefile : target to build win32def.exe
28+
- source/materials/GNUmakefile : example of macro GLOBLIBS
29+
used by the DLL builder in order to have global lib dependencies.
30+
31+
26th January 2004 Guy Barrand (config-V06-00-00)
32+
- Darwin-g++.gmk:
33+
o Use "g++" as a default compiler (in order to take the MacOSX
34+
default compiler).
35+
o Corrected procedure for building .dylib shared libs.
36+
Previous default Linux commands do not work on MacOSX.
37+
2038
18th November 2003 Gabriele Cosmo (config-V05-02-05)
2139
- Updated binmake.gmk to include new hadronics modules.
2240
Coworks with "ghad-V05-02-00" and HEAD of processes/GNUmakefile.

config/architecture.gmk

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: architecture.gmk,v 1.90 2003/10/17 10:17:11 gbarrand Exp $
1+
# $Id: architecture.gmk,v 1.91 2004/02/09 15:22:49 gunter Exp $
22
# ------------------------------------------------------------------------
33
# GEANT 4 - Architecture configuration script for GNU Make
44
#
@@ -260,6 +260,15 @@ GREP := grep
260260
#
261261
include $(G4INSTALL)/config/sys/$(G4SYSTEM).gmk
262262

263+
# make certain that OGLFLAGS does NOT contain -I/usr/include
264+
# caused by OGLHOME being /usr, as e.g. on Linux
265+
#
266+
ifdef OGLFLAGS
267+
OGLFLAGS:= $(filter-out -I/usr/include,$(OGLFLAGS))
268+
OGLFLAGS:= $(filter-out -I/usr//include,$(OGLFLAGS))
269+
endif
270+
271+
263272
# If there is no cbrt() function...
264273
#
265274
ifdef G4_NO_CBRT

config/sys/Darwin-g++.gmk

+15-12
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
#
44
# MacOS 10.1 GNU-gcc 2.92.2
55
# MacOS 10.2 there is g++2 and g++3, choose consistently one,
6-
# like g++2 which is 2.95.2
7-
# use echo -n (there is not the echo -e option of Linux)
6+
# like g++2 which is 2.95.2, g++3 for 3.X.
7+
# MacOS 10.3 use default MacOS-X compiler (g++) as the default.
8+
# Have commands to build the .dylib (MacOS-X shared libs)
89
#
9-
# Helmut Burkhardt - CERN
10+
# Use echo -n (there is not the 'echo -e' option of Linux)
11+
#
12+
# Author: Helmut Burkhardt - CERN
1013
#
1114
ifeq ($(G4SYSTEM),Darwin-g++)
12-
# choice of GNU compilers:
13-
CXX := g++2
14-
# CXX := g++3
15+
# choice of compiler (take, as default, the MacOS default) :
16+
# CXX := g++2
17+
# CXX := g++3
18+
CXX := g++
1519
CXXFLAGS := -Wall -ansi -pedantic -pipe
1620
# optionally add verbose flag
1721
# CXXFLAGS += -v
@@ -36,12 +40,12 @@ ifeq ($(G4SYSTEM),Darwin-g++)
3640
FCFLAGS += -fPIC
3741
CCFLAGS += -fPIC
3842
endif
39-
G4RUNPATHOPTION := -Wl,-rpath
43+
# G4RUNPATHOPTION := -Wl,-rpath
4044
FC := g77
4145
FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore
4246
FCLIBS := -lg2c -lnsl
4347
ECHO := /bin/echo -n
44-
SHEXT := so
48+
SHEXT := dylib
4549
X11FLAGS := -I/usr/include/X11/extensions -I/usr/include/X11
4650
X11LIBS := -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lSM -lICE
4751
XMFLAGS := -I/usr/X11R6/include
@@ -60,13 +64,12 @@ ifeq ($(G4SYSTEM),Darwin-g++)
6064
define build-granular-shared-lib
6165
@libdir=`(cd $(@D);/bin/pwd)`; \
6266
cd $(G4TMPDIR); \
63-
$(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) *.o
67+
g++ -dynamiclib -flat_namespace -undefined suppress -o $$libdir/$(@F) $(INTYLIBS) *.o
6468
endef
6569
define build-global-shared-lib
66-
@libdir=`(cd $(@D);/bin/pwd)`; \
70+
libdir=`(cd $(@D);/bin/pwd)`; \
6771
cd $(G4TMP)/$(G4SYSTEM); \
68-
$(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) \
69-
$(foreach dir,$(SUBLIBS),$(dir)/*.o);
72+
g++ -dynamiclib -flat_namespace -undefined suppress -o $$libdir/$(@F) $(INTYLIBS) $(foreach dir,$(SUBLIBS),$(dir)/*.o);
7073
endef
7174

7275
endif

config/sys/Linux-icc.gmk

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#
2+
# ------ GNU/LINUX ------ !!! not supported !!!
3+
# Intel icc 8.0
4+
ifeq ($(G4SYSTEM),Linux-icc)
5+
CXX := icc
6+
CXXFLAGS := -ansi -no-gcc -w1
7+
ifdef G4OPTIMISE
8+
CXXFLAGS += -O
9+
FCFLAGS := -O
10+
CCFLAGS := -O
11+
else
12+
ifdef G4DEBUG
13+
CXXFLAGS += -g
14+
FCFLAGS := -g
15+
CCFLAGS := -g
16+
endif
17+
endif
18+
ifdef G4PROFILE
19+
CXXFLAGS += -qp
20+
FCFLAGS += -qp
21+
CCFLAGS += -pg
22+
endif
23+
ifdef G4LIB_BUILD_SHARED
24+
CXXFLAGS += -fPIC
25+
FCFLAGS += -fPIC
26+
CCFLAGS += -fPIC
27+
endif
28+
G4RUNPATHOPTION := -Xlinker
29+
CC := gcc
30+
FC := g77
31+
FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore
32+
FCLIBS := -lg2c -lnsl
33+
AR := xiar r
34+
ECHO := /bin/echo -e
35+
SHEXT := so
36+
X11FLAGS := -I/usr/include/X11/extensions -I/usr/include/X11
37+
X11LIBS := -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lSM -lICE
38+
XMFLAGS := -I/usr/X11R6/include
39+
XMLIBS := -lXm -lXpm
40+
DLDLIBS := -ldl
41+
ifndef OGLFLAGS
42+
OGLFLAGS := -I$(OGLHOME)/include
43+
endif
44+
ifndef OGLLIBS
45+
OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
46+
endif
47+
OIVFLAGS += -I$(OIHOME)/include
48+
define build-granular-shared-lib
49+
@libdir=`(cd $(@D);/bin/pwd)`; \
50+
cd $(G4TMPDIR); \
51+
$(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) *.o
52+
endef
53+
define build-global-shared-lib
54+
@libdir=`(cd $(@D);/bin/pwd)`; \
55+
cd $(G4TMP)/$(G4SYSTEM); \
56+
$(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) \
57+
$(foreach dir,$(SUBLIBS),$(dir)/*.o);
58+
endef
59+
60+
endif

0 commit comments

Comments
 (0)