Skip to content

Commit 38a3db8

Browse files
committed
Import Geant4 5.0.1 source tree
1 parent 37fff30 commit 38a3db8

File tree

201 files changed

+5474
-25186
lines changed

Some content is hidden

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

201 files changed

+5474
-25186
lines changed

Configure

+23-10
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.31 2002/12/13 15:46:47 stesting Exp $
21+
# $Id: Configure,v 1.33 2003/02/21 16:04:59 stesting Exp $
2222
#
23-
# Generated on Fri Dec 13 16:43:52 CET 2002 [metaconfig 3.0 PL70]
23+
# Generated on Fri Feb 21 17:04:19 CET 2003 [metaconfig 3.0 PL70]
2424

2525
cat >/tmp/c1$$ <<EOF
2626
WARNING!!!!!
@@ -1348,6 +1348,8 @@ cd ../..
13481348
;;
13491349
cygwin*) osname=win32
13501350
;;
1351+
darwin*) osname=darwin
1352+
;;
13511353
domainos) osname=apollo
13521354
osvers="$3"
13531355
;;
@@ -1602,6 +1604,8 @@ case "$g4osname" in
16021604
;;
16031605
'win32') g4osname=WIN32
16041606
;;
1607+
'darwin') g4osname=Darwin
1608+
;;
16051609
esac
16061610
esac
16071611

@@ -1645,6 +1649,9 @@ case "$g4compiler" in
16451649
'WIN32')
16461650
g4compiler=VC
16471651
;;
1652+
'Darwin')
1653+
g4compiler=g++
1654+
;;
16481655
esac
16491656
esac
16501657

@@ -1693,6 +1700,9 @@ gans=$ans
16931700
'win32')
16941701
g4osnamerec=WIN32
16951702
;;
1703+
'darwin')
1704+
g4osnamerec=Darwin
1705+
;;
16961706
esac
16971707
dflt=$g4osname
16981708
rp="What is your OS'?"
@@ -1740,6 +1750,9 @@ EOM
17401750
'WIN32')
17411751
g4compilerrec=VC
17421752
;;
1753+
'Darwin')
1754+
g4compilerrec=g++
1755+
;;
17431756
esac
17441757
dflt=$g4compiler
17451758
rp="Which C++ compiler?"
@@ -1812,7 +1825,7 @@ fi
18121825
18131826
. $src/.config/bin/$g4system/env.sh
18141827
1815-
CPPFLAGS=`grep 'CPPFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
1828+
CPPFLAGS=`grep 'CPPFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
18161829
18171830
# echo CPPFLAGS=$CPPFLAGS
18181831
echo $CPPFLAGS
@@ -1826,7 +1839,7 @@ fi
18261839
18271840
. $src/.config/bin/$g4system/env.sh
18281841
1829-
CXXFLAGS=`grep 'CXXFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
1842+
CXXFLAGS=`grep 'CXXFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
18301843
18311844
# echo CXXFLAGS=$CXXFLAGS
18321845
echo $CXXFLAGS
@@ -1840,7 +1853,7 @@ fi
18401853
18411854
. $src/.config/bin/$g4system/env.sh
18421855
1843-
INCFLAGS=`grep 'INCFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
1856+
INCFLAGS=`grep 'INCFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
18441857
18451858
# echo INCFLAGS=$INCFLAGS
18461859
echo $INCFLAGS
@@ -1854,7 +1867,7 @@ fi
18541867
18551868
. $src/.config/bin/$g4system/env.sh
18561869
1857-
LDFLAGS=`grep 'LDFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
1870+
LDFLAGS=`grep 'LDFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
18581871
18591872
# echo LDFLAGS=$LDFLAGS
18601873
echo $LDFLAGS
@@ -1889,8 +1902,8 @@ fi
18891902
18901903
# Global libs
18911904
1892-
LDLIBS_1=`grep 'LDLIBS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
1893-
LDLIBS_2=`echo $LDLIBS_1 | awk -F -lMarker '{print $2}'`
1905+
LDLIBS_1=`grep 'LDLIBS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
1906+
LDLIBS_2=`echo $LDLIBS_1 | $sed -e 's/^\(.*\)-lMarker//'`
18941907
18951908
echo "$LDLIBS_2 $c"
18961909
@@ -1909,8 +1922,8 @@ fi
19091922
19101923
LIBLIST_LIST=`$G4LIB/$G4SYSTEM/liblist -m $G4LIB/$G4SYSTEM < $G4LIB/$G4SYSTEM/libname.map`
19111924
1912-
LDLIBS3=`grep 'LDLIBS3 :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
1913-
LDLIBS4=`grep 'LDLIBS4 :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | awk -F := '{print $2}'`
1925+
LDLIBS3=`grep 'LDLIBS3 :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
1926+
LDLIBS4=`grep 'LDLIBS4 :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
19141927
19151928
LDLIBS=$LIBLIST_LIST $LDLIBS3 $LDLIBS4
19161929

ReleaseNotes/Patch4.5.0-1.txt

+181
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
2+
Geant4 5.0 - patch-01 Release Notes
3+
-----------------------------------
4+
5+
24th February 2003
6+
7+
List of fixes included in this public patch to release 5.0:
8+
9+
o Config:
10+
------
11+
- Added experimental setup WIN32-VC7.gmk for Windows .NET VC++ compiler.
12+
- Generalised identification of WIN32 specific setups in core scripts.
13+
- Forced silent generation of dependencies.
14+
- Configure script: fixed GNUmakefile access problem for correct execution
15+
of flags/libs command options. Added automatic recognition of 'Darwin' OS.
16+
- source/GNUmakefile: included patch to release 5.0.
17+
18+
o Electromagnetic processes (low-energy):
19+
--------------------------------------
20+
- Minor fix in G4QAOLowEnergyLoss to use G4Poisson distribution.
21+
22+
o Electromagnetic processes (standard):
23+
------------------------------------
24+
+ standard:
25+
- Fix for compound materials in G4eBremsstrahlungModel.
26+
- Minor fix in G4PAIonisation and G4PAIxSection to use G4Poisson
27+
distribution.
28+
+ muons:
29+
- Fix for compound materials in G4MuBremsstrahlungModel and
30+
G4MuPairProductionModel.
31+
+ xrays:
32+
- G4VXTRenergyLoss: removed reduntant headers inclusions and ordered
33+
inclusion for complex numbers to allow porting on Windows .NET VC++.
34+
- Minor fix in G4Cerenkov, G4ForwardXrayTR and G4VXTRenergyLoss to use
35+
G4Poisson distribution.
36+
37+
o General processes:
38+
-----------------
39+
+ optical:
40+
- Fix in calculation of polarization for perpendicular incidence
41+
in G4OpBoundaryProcess. Fixes bug report #442.
42+
43+
o Geometry:
44+
--------
45+
+ magnetic-field:
46+
- Removed some redundant inclusions of headers.
47+
+ management:
48+
- G4VSolid.cc: restored original conditions for extent clipping in
49+
method ClipPolygon().
50+
+ solids/Boolean:
51+
- Added set/get functions Set/GetVolumesNameExtension() for volume-name
52+
extension in G4ReflectionFactory. By default now the factory assigns
53+
"_refl" postfix to name of reflected volumes/solids.
54+
- Assumed less strict condition in the G4ReflectionFactory::CheckScale()
55+
method, to avoid precision problems with imported rotation matrices.
56+
+ solids/CSG:
57+
- G4Cons: enhanced treatment of phi-sections, according to
58+
algorithm used also in G4Tubs.
59+
+ volumes:
60+
- Fix in G4GeometryMessenger to check for geometry closed when commands
61+
are applied. Command /geometry/navigator/reset and test commands apply
62+
only when system is in "Idle" state.
63+
- G4VCurvedTrajectoryFilter: fixed initialisation of data member
64+
in constructor. Fixes crash in visualization under in some setups.
65+
- G4IdentityTrajectoryFilter: added comments for the Software Reference
66+
Manual.
67+
68+
o Global:
69+
------
70+
- Exclude definition of min/max for Windows .NET VC++ compiler
71+
in globals.hh.
72+
- Use SystemOfUnits.h and PhysicalConstants.h from CLHEP instead of
73+
internal local copies.
74+
75+
o Hadronic processes:
76+
------------------
77+
+ cross_sections
78+
o Fixed bug in Newton method for electro-nuclear cross-sections.
79+
+ management:
80+
o Fixed a missing data-member initialization in G4InelasticInteraction.
81+
Fixes bug report #455.
82+
o G4EnergyRangeManager, G4HadronicProcess: adopt exception handling for
83+
'no model found' case.
84+
+ models/chiral_inv_phase_space
85+
o Minor fix for memory leak.
86+
o Fixed calculation of the equivalent photon in electro-nuclear.
87+
+ models/generator/de_excitation
88+
o Improved performance for gamma evaporation (~30%).
89+
o Minor fix in method G4ExcitationHandler::transform() when calling
90+
erase(), to allow porting on Windows .NET VC++ compiler.
91+
+ models/generator/high_energy
92+
o G4TheoFSGenerator: fix for semantics change in track, added Clear()
93+
call to particle-change vector.
94+
+ models/generator/scattering
95+
o Removed some redundant inclusions of headers.
96+
+ models/generator/util
97+
o Critical fix for semi-infinite loop in G4Fancy3DNucleus and
98+
G4FermiMomentum.
99+
+ models/low_energy
100+
o G4LEKaonZeroLInelastic, G4LEKaonZeroSInelastic: fixed virtual
101+
destructor.
102+
+ models/neutron_hp
103+
o Fix in sampling of gammas, in case internal conversion data are
104+
available in breit frame.
105+
o Fixed recoil direction distribution for 14MeV neutrons in Silicon.
106+
o Fixed cases of uninitialised variables responsible for event
107+
irreproducibility.
108+
o Optimized usage of poisson distribution to adopt G4Poisson.
109+
+ models/pre_equilibrium
110+
o Fixed warning.
111+
+ models/radiative_decay
112+
o Fix in G4NuclearDecayChannel and G4RadioactiveDecay: adapted to new
113+
nuclear level manager.
114+
+ util
115+
o Removed some redundant inclusions of headers.
116+
117+
o Intercoms:
118+
---------
119+
- Included G4VVisManager::Draw methods for hits and trajectories.
120+
121+
o Parameterisations:
122+
-----------------
123+
- Updated header files to remove redundant header inclusions
124+
and properly order inclusion for complex numbers, to allow
125+
porting on Windows .NET VC++ compiler.
126+
- Minor fix in G4IrregularXrayTRmodel, G4VXTRdEdx and G4VXrayTRadModel
127+
to use G4Poisson distribution.
128+
129+
o Persistency:
130+
-----------
131+
- Corrected inclusion of headers for constant and units from CLHEP
132+
in G4MCTSimParticle and G4MCTSimVertex.
133+
134+
o Visualization:
135+
-------------
136+
- OpenInventor: removed erroneous additional transformation.
137+
- HepRep: modified G4HepRepFileSceneHandler::AddThis()
138+
to incorporate G4Attributes into the HepRep1 file.
139+
Moved some of HepRepXMLWriter's warning messages to debug blocks.
140+
- VRML: minor fix to VRML2 driver in G4VRML2SceneHandlerFunc to
141+
adopt G4String.
142+
- Included G4VisManager::Draw methods for hits and trajectories.
143+
144+
o G3toG4 tool:
145+
-----------
146+
- G4gstmed: included get functions for the medium table entries:
147+
G4int GetSize() const
148+
G3MedTableEntry* GetMTE(G4int i) const
149+
150+
o Examples:
151+
--------
152+
- novice/N02
153+
o Cosmetics in output for stepping verbose.
154+
o Minor improvements to specific UI commands.
155+
- extended/electromagnetic - TestEm2, TestEm4
156+
o Cosmetics in output for stepping verbose.
157+
o Minor improvements to specific UI commands.
158+
- extended/geometry/olap
159+
o Removed redundant inclusion of headers.
160+
- extended/biasing
161+
o Removed redundant inclusion of headers.
162+
- advanced - composite_calorimeter, xray_telescope
163+
o Removed redundant inclusion of headers.
164+
- Updated reference outputs.
165+
166+
----------------------------------------------------------------------------
167+
168+
Technical Notes
169+
---------------
170+
171+
o This patch should be applied on top of release 5.0.
172+
o Technical notes distributed for release 5.0 are also applicable and
173+
valid for this patch.
174+
175+
The code and rebuilt binary libraries for release 5.0 are available through
176+
our "Source Code" Web page:
177+
- see our <A href="http://cern.ch/geant4">Geant4 Home Page</A>.
178+
179+
Please refer to <A
180+
href="http://cern.ch/geant4/G4UsersDocuments/Overview/html/index.html">Geant4
181+
User Documentation</A> for further information about using Geant4.

config/History

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$Id: History,v 1.209 2002/12/10 14:05:59 gcosmo Exp $
2-
$Name: geant4-05-00 $
1+
$Id: History,v 1.210 2003/01/22 18:02:21 gcosmo Exp $
2+
$Name: geant4-05-00-patch-01 $
33
-------------------------------------------------------------------
44

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

20+
22nd January 2003 Gabriele Cosmo (config-V05-00-00)
21+
- Added experimental setup WIN32-VC7.gmk for Windows .NET VC++ compiler.
22+
- Generalised identification of WIN32 specific setups in core scripts.
23+
- Forced silent generation of dependencies (added -w option to calls to g++).
24+
2025
4th December 2002 Gabriele Cosmo (config-V04-01-08)
2126
- Removed obsolete setup for ObjectSpace-STL (G4USE_OSPACE and related
2227
variables). Removed obsolete variable G4USE_STL.

config/architecture.gmk

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: architecture.gmk,v 1.84 2002/12/04 14:44:23 gcosmo Exp $
1+
# $Id: architecture.gmk,v 1.85 2003/01/22 18:02:02 gcosmo Exp $
22
# ------------------------------------------------------------------------
33
# GEANT 4 - Architecture configuration script for GNU Make
44
#
@@ -124,7 +124,7 @@ ifndef CLHEP_LIB_DIR
124124
CLHEP_LIB_DIR := $(CLHEP_BASE_DIR)/lib
125125
endif
126126
ifndef CLHEP_LIB
127-
ifeq ($(G4SYSTEM),WIN32-VC)
127+
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
128128
CLHEP_LIB := CLHEP.lib
129129
else
130130
CLHEP_LIB := CLHEP
@@ -145,7 +145,7 @@ endif
145145

146146
# Toggle variables (positional qualifiers) between WIN32-VC and UNIX...
147147
#
148-
ifeq ($(G4SYSTEM),WIN32-VC)
148+
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
149149
OUT_OBJ := -TP '-Fo'
150150
FOR_OBJ := '-Fo'
151151
OUT_LIB := '-out:'
@@ -180,7 +180,7 @@ CPPFLAGS += -I$(CLHEP_INCLUDE_DIR)
180180

181181
# Positional qualifiers in action...
182182
#
183-
ifeq ($(G4SYSTEM),WIN32-VC)
183+
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
184184
LDFLAGS := -link $(LIB_PATH)$(CLHEP_LIB_DIR)
185185
LOADLIBS := $(CLHEP_LIB)
186186
else

config/binmake.gmk

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: binmake.gmk,v 1.85 2002/12/04 14:44:23 gcosmo Exp $
1+
# $Id: binmake.gmk,v 1.86 2003/01/22 18:02:03 gcosmo Exp $
22
# ----------------------------------------------------------
33
# Script defining rules and paths for making binaries.
44
# First implementation: Gabriele Cosmo, 25/06/1998.
@@ -224,7 +224,7 @@ else
224224
endif
225225
LDLIBS_PREFINAL += $(LDLIBS4)
226226

227-
ifeq ($(G4SYSTEM),WIN32-VC)
227+
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
228228
WIN32TMP := $(patsubst -L%,$(LIB_PATH)%,$(LDFLAGS))
229229
LDFLAGS = $(patsubst /,$(PATH_DEL),$(WIN32TMP))
230230
LDLIBS = $(patsubst -l%,lib%.a,$(LDLIBS_PREFINAL))
@@ -327,7 +327,7 @@ $(G4TMPDIR)/exe/$(G4TARGET).d: $(G4TARGET).cc
327327
@if [ ! -d $(G4TMPDIR)/exe ] ; then mkdir $(G4TMPDIR)/exe ;fi
328328
@echo Making dependency for file $<...
329329
@set -e;\
330-
g++ $(GPPFLAGS) $(CPPFLAGS) $< |\
330+
g++ $(GPPFLAGS) $(CPPFLAGS) -w $< |\
331331
sed 's!$(G4TARGET)\.o!$(G4TMPDIR)/exe/& $@!' >$@;\
332332
[ -s $@ ] || rm -f $@
333333
ifneq ($(dependencies),)

config/common.gmk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: common.gmk,v 1.34 2002/12/04 08:36:14 gcosmo Exp $
1+
# $Id: common.gmk,v 1.35 2003/01/22 18:02:03 gcosmo Exp $
22
# ----------------------------------------------------------------
33
# Common part of GNUmakefile for libraries. John Allison, 5/7/95.
44
# ----------------------------------------------------------------
@@ -100,7 +100,7 @@ $(G4TMPDIR)/%.d: src/%.cc
100100
@echo Making dependency for file $< ...
101101
@if [ ! -d $(G4TMPDIR) ] ; then mkdir -p $(G4TMPDIR) ;fi
102102
@set -e;\
103-
g++ $(GPPFLAGS) $(CPPFLAGS) $< |\
103+
g++ $(GPPFLAGS) $(CPPFLAGS) -w $< |\
104104
sed 's!$*\.o!$(G4TMPDIR)/& $@!' >$@;\
105105
[ -s $@ ] || rm -f $@
106106
ifneq ($(dependencies),)

0 commit comments

Comments
 (0)