Skip to content

Commit 4a26691

Browse files
committed
Import Geant4 7.1.1 source tree
1 parent d93e1e3 commit 4a26691

File tree

160 files changed

+11681
-6755
lines changed

Some content is hidden

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

160 files changed

+11681
-6755
lines changed

Configure

Lines changed: 46 additions & 4 deletions
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.72 2005/06/20 17:34:18 stesting Exp $
21+
# $Id: Configure,v 1.74 2005/10/25 22:28:19 stesting Exp $
2222
#
23-
# Generated on Mon Jun 20 19:30:06 CEST 2005 [metaconfig 3.0 PL70]
23+
# Generated on Wed Oct 26 00:25:52 CEST 2005 [metaconfig 3.0 PL70]
2424

2525
cat >/tmp/c1$$ <<EOF
2626
WARNING!!!!!
@@ -1898,25 +1898,66 @@ fi
18981898
18991899
fi #end of cxxflags
19001900
1901+
1902+
1903+
g4install_lib_AAA=`echo $g4install/lib|sed -e "s/\//AAA/g"`
1904+
g4final_install_lib_AAA=`echo $g4final_install/lib/geant4|sed -e "s/\//AAA/g"`
1905+
1906+
1907+
#############################################################################
19011908
if [ X$g4incflags = Xyes ] ; then
19021909
19031910
. $src/.config/bin/$g4system/env.sh
19041911
1905-
INCFLAGS=`grep 'INCFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
1912+
### Getting G4FIRST_INSTALL
1913+
G4FIRST_INSTALL_AAA=`grep 'G4INSTALL =' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\)= //'|$sed -e 's/\//AAA/g'`
1914+
G4INSTALL_AAA=`echo $G4INSTALL|sed -e "s/\//AAA/g"`
1915+
###
1916+
INCFLAGS_AAA=`grep 'INCFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'|$sed -e 's/\//AAA/g'`
1917+
1918+
# echo INCFLAGS_AAA=$INCFLAGS_AAA
1919+
# echo G4INSTALL_AAA=$G4INSTALL_AAA
1920+
# echo G4FIRST_INSTALL_AAA=$G4FIRST_INSTALL_AAA
1921+
1922+
INCFLAGS_AAA_NEW=`echo $INCFLAGS_AAA| $sed -e "s/$G4FIRST_INSTALL_AAA/$G4INSTALL_AAA/g"`
1923+
1924+
# echo INCFLAGS_AAA_NEW=$INCFLAGS_AAA_NEW
1925+
1926+
INCFLAGS=`echo $INCFLAGS_AAA_NEW| $sed -e "s/AAA/\//g"`
19061927
19071928
# echo INCFLAGS=$INCFLAGS
1929+
1930+
if [ X$G4INCLUDE = X ] ; then
19081931
echo $INCFLAGS
1932+
else
1933+
echo -I$G4INCLUDE
1934+
fi
19091935
19101936
$rm -rf .config/UU
19111937
exit 1
19121938
19131939
fi #end of incflags
1940+
#############################################################################
19141941
1942+
1943+
#############################################################################
19151944
if [ X$g4ldflags = Xyes ] ; then
19161945
19171946
. $src/.config/bin/$g4system/env.sh
19181947
1919-
LDFLAGS=`grep 'LDFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'`
1948+
### Getting G4FIRST_INSTALL
1949+
G4FIRST_LIB_AAA=`grep 'G4LIB =' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\)= //'|$sed -e 's/\//AAA/g'`
1950+
G4LIB_AAA=`echo $G4LIB|sed -e "s/\//AAA/g"`
1951+
###
1952+
# G4FIRST_INSTALL_LIB_AAA=${G4FIRST_INSTALL_AAA}AAAlib
1953+
# G4INSTALL_LIB_AAA=${G4INSTALL_AAA}AAAlibAAAgeant4
1954+
1955+
# echo G4FIRST_INSTALL_LIB_AAA=$G4FIRST_INSTALL_LIB_AAA
1956+
# echo G4INSTALL_LIB_AAA=$G4INSTALL_LIB_AAA
1957+
1958+
LDFLAGS_AAA=`grep 'LDFLAGS_FINAL :=' $G4LIB/$G4SYSTEM/GNUmakefile.db | $sed -e 's/^\(.*\):=//'|$sed -e 's/\//AAA/g'`
1959+
LDFLAGS_AAA_NEW=`echo $LDFLAGS_AAA| $sed -e "s/$G4FIRST_LIB_AAA/$G4LIB_AAA/g"`
1960+
LDFLAGS=`echo $LDFLAGS_AAA_NEW| $sed -e "s/AAA/\//g"`
19201961
19211962
# echo LDFLAGS=$LDFLAGS
19221963
echo $LDFLAGS
@@ -1925,6 +1966,7 @@ fi
19251966
exit 1
19261967
19271968
fi #end of ldflags
1969+
#############################################################################
19281970
19291971
if [ X$g4ldlibs = Xyes ] ; then
19301972

ReleaseNotes/Patch4.7.1-1.txt

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
2+
Geant4 7.1 - patch-01 Release Notes
3+
-----------------------------------
4+
5+
25 October 2005
6+
7+
List of fixes included in this public patch since the public release 7.1:
8+
9+
o Configuration:
10+
-------------
11+
+ Excluded usage of unnecessary 'ranlib' at creation of the libraries
12+
for WIN32-VC system. Fixes an observed problem of debug-symbols
13+
corruption.
14+
+ Synchronized CXXFLAGS warning options of WIN32-g++ with Linux-g++.
15+
+ Fixed Configure script for --incflags and --ldflags options.
16+
17+
o Event:
18+
-----
19+
+ Corrected typo in printout in G4GeneralParticleMessenger.
20+
Addresses problem report #786.
21+
22+
o Geometry:
23+
--------
24+
+ navigation
25+
o G4DrawVoxels: removed unnecessary 'panic' message in
26+
ComputeVoxelPolyhedra() and some code cleanup.
27+
+ solids/BREPS
28+
o Fixed problem of double-deletion in G4BREPSolidPolyhedra and
29+
G4BREPSolidPCone destructors.
30+
+ solids/CSG
31+
o Fixed bug in G4Sphere::DistanceToOut(p,v): added check for
32+
intersection with double cone.
33+
o Fixed bug in G4Para::DistanceToOut(p,v) for the case v.x()<0.
34+
Following problem report from user posted on Hypernews (#452).
35+
o Improved implementation for DistanceToIn/Out() in G4Torus to make use
36+
of G4JTPolynomialSolver for precise calculation of the intersections.
37+
+ solids/specific:
38+
o Fixed compilation warning on WIN32-VC for G4VSurface.cc.
39+
40+
o Global:
41+
------
42+
+ G4Allocator: initialise esplicitely data in copy-ctor.
43+
+ G4AllocatorPool: added default dummy argument to ctor to allow for
44+
default-ctor
45+
46+
o Parameterisations:
47+
-----------------
48+
+ Added overflow protection in method GenerateRadius() for
49+
GFlashHomoShowerParamterisation in the 'gflash' module.
50+
51+
o Particles:
52+
---------
53+
+ Fix to prohibit creation of ions in 'PreInit' state to make sure
54+
that proper processes will be attached to the ions.
55+
56+
o Electromagnetic processes:
57+
-------------------------
58+
+ high-energy:
59+
o Fix a misprint in G4BetheBlochNoDeltaModel and minor cleanup.
60+
+ muons:
61+
o In all energy loss models return protection against the case
62+
tmin>tmax (fixes bug report).
63+
o Fix angular distributions of secondaries and 4-momentum balance
64+
in G4MuBremsstrahlungModel and G4MuPairProductionModel.
65+
o Added protection in G4MuPairProductionModel needed for sampling
66+
of pair energy in the case of low cuts.
67+
+ standard:
68+
o In all energy loss models return protection against the case
69+
tmin>tmax (fixes bug report).
70+
o Fix for initialisation of G4eBremsstrahlungModel.
71+
o Fix a bug in calculation of chemical correction in G4BraggIonModel
72+
and fix in G4BraggModel for problem observed when increasing
73+
precision using standard model and chemical effect.
74+
+ utils:
75+
o G4VEnergyLossProcess: return number protections against numerical
76+
imprecision, which were used in version 7.0 and removed in 7.1
77+
(fixes bug report)
78+
o Set default lambdaFactor to 0.8 for integral mode (improvement in
79+
CPU performance for low cuts).
80+
o G4VEmProcess: use integral mode only for charged particles.
81+
o G4EmModelManager: fix a cut calculation for the e+e- pair
82+
production physics process.
83+
o G4VMultipleScattering: fixed error in a protection in
84+
GetContinuousStepLimit().
85+
+ xrays:
86+
o Changed variable name 'MeanNumPhotons' to 'MeanNumberOfPhotons' in
87+
G4Scintillation and G4Cerenkov to conform with the documentation in
88+
the Application Developers Guide.
89+
o Added G4ProcessType identifier to all processes constructors.
90+
91+
o Hadronic Processes:
92+
------------------
93+
+ management:
94+
o Correctly set the type of a hadronic process.
95+
Fixes problem report #744.
96+
+ models/chiral_inv_phase_space/body:
97+
o Memory leak fix for nuclear mass management in G4QPDGCode to use
98+
G4 masses of nuclear fragments.
99+
+ models/low_energy:
100+
o Fix in elastic scattering for the case of target hydrogen: use
101+
relativistic kinematic for the generation of the final state.
102+
Fix tested in HARP.
103+
+ stopping:
104+
o Fixed bug in time of e- produced in bound decay of mu-.
105+
106+
o Management of processes:
107+
-----------------------
108+
+ Added forward declaration of G4UImessenger in G4ProcessTable header.
109+
Fixes problem report #768.
110+
111+
o Optical Processes:
112+
-----------------
113+
+ Added G4ProcessType identifier to all processes constructors.
114+
115+
o Run:
116+
---
117+
+ Removed unnecessary usage of G4Allocator for allocation of a run.
118+
119+
o Tracking:
120+
--------
121+
+ Fix in G4SteppingManager::InvokeAlongStepDoItProcs() for problem
122+
report #761.
123+
+ Fix in G4SteppingManager::DefinePhysicalStepLength() for the order
124+
of execution of 'ExclusivelyForced' processes like Fast-Simulation.
125+
Problem reported and fixed in CMS and ATLAS.
126+
127+
o Physics lists:
128+
-------------
129+
+ hadronic: corrected text for the installation in README.
130+
131+
o Examples:
132+
--------
133+
+ Updated reference outputs.
134+
+ extended/electromagnetic/TestEm9
135+
o Fixed problem for changing cuts between runs.
136+
+ extendedeventgenerator/exgps
137+
o Fixed GNUMakefile for linking with AIDA on WIN32-VC.
138+
Fixes problem report #767.
139+
+ extended/medical/GammaTherapy
140+
o Added vis.mac and histogram type (aida, root, hbook).
141+
o Use standard angular distribution for low-energy PhotoElectric.
142+
+ extended/persistency
143+
o Added missing EXTRALIBS to link list for specialised setup.
144+
+ extended/radioactivedecay/exrdm
145+
o Fixed GNUMakefile for linking with AIDA on WIN32-VC.
146+
Fixes problem report #767.
147+
+ novice/N03
148+
o RunAction: compute and print statistic at the end of the run.
149+
150+
----------------------------------------------------------------------------
151+
152+
Technical Notes
153+
---------------
154+
155+
o This patch should be applied on top of release 7.1.
156+
o Technical notes distributed for release 7.1 are also applicable and
157+
valid for this patch.
158+
159+
The code and rebuilt binary libraries for release 7.1 are available through
160+
our "Source Code" Web page: http://cern.ch/geant4
161+
162+
Please refer to the Geant4 User Documentation:
163+
http://cern.ch/geant4/G4UsersDocuments/Overview/html
164+
for further information about using Geant4.

config/History

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Id: History,v 1.267 2005/06/17 06:59:37 gcosmo Exp $
1+
$Id: History,v 1.269 2005/07/29 17:10:04 duns Exp $
22
-------------------------------------------------------------------
33

44
=========================================================
@@ -16,6 +16,13 @@ committal in the CVS repository !
1616
* Reverse chronological order (last date on top), please *
1717
----------------------------------------------------------
1818

19+
29th of July Mark Donszelmann (config-V07-01-01)
20+
- Synchronized CXXFLAGS warning options of WIN32-g++ with Linux-g++.
21+
22+
18th July 2005 Gabriele Cosmo (config-V07-01-00)
23+
- Excluded usage of unnecessary 'ranlib' at creation of the libraries for
24+
WIN32-VC system. Fixes an observed problem of debug-symbols corruption.
25+
1926
16th June 2005 Sergey Sadilov (config-V07-00-05)
2027
- Updated Configure script and support files:
2128
o Added new data sets for low-energy-EM and elastic data.

config/common.gmk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: common.gmk,v 1.39 2005/06/15 13:59:59 gunter Exp $
1+
# $Id: common.gmk,v 1.40 2005/07/18 15:09:14 gcosmo Exp $
22
# ----------------------------------------------------------------
33
# Common part of GNUmakefile for libraries. John Allison, 5/7/95.
44
# ----------------------------------------------------------------
@@ -50,7 +50,9 @@ $(G4LIBDIR)/lib$(name).a: $(G4TMPDIR)/obj.last
5050
@echo Creating/replacing object files in $(G4LIBDIR)/lib$(name).a ...
5151
@rm -f $(G4LIBDIR)/lib$(name).a
5252
@$(AR) $(OUT_LIB)$(G4LIBDIR)/lib$(name).a $(G4TMPDIR)/*.o
53-
@if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib $(G4LIBDIR)/lib$(name).a ;fi
53+
@if [ X$(G4SYSTEM) != XWIN32-VC ] ; then \
54+
if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then \
55+
ranlib $(G4LIBDIR)/lib$(name).a ; fi ; fi
5456
endif
5557

5658
###############################################################################

config/globlib.gmk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: globlib.gmk,v 1.26 2005/06/15 13:59:59 gunter Exp $
1+
# $Id: globlib.gmk,v 1.27 2005/07/18 15:09:14 gcosmo Exp $
22
# --------------------------------------------------------------
33
# Script for compound libraries. Gabriele Cosmo, 25/6/98.
44
# --------------------------------------------------------------
@@ -68,8 +68,9 @@ $(G4LIBDIR)/lib$(name).a: \
6868
#
6969
#
7070
#
71-
@if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then \
72-
ranlib $(G4LIBDIR)/lib$(name).a ; fi
71+
@if [ X$(G4SYSTEM) != XWIN32-VC ] ; then \
72+
if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then \
73+
ranlib $(G4LIBDIR)/lib$(name).a ; fi ; fi
7374
endif
7475

7576

config/sys/WIN32-g++.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
#
88
ifeq ($(G4SYSTEM),WIN32-g++)
99
CXX := g++
10-
CXXFLAGS := -Wall -ansi -pedantic -pipe
10+
CXXFLAGS := -W -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long
11+
CXXFLAGS += -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe
1112
ifdef G4OPTIMISE
1213
CXXFLAGS += -O
1314
FCFLAGS := -O

examples/extended/biasing/B01/exampleB01.out

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
*************************************************************
3-
Geant4 version Name: run-V07-00-05 (30-June-2005)
3+
Geant4 version Name: geant4-07-01-patch-01-ref (25-October-2005)
44
Copyright : Geant4 Collaboration
55
Reference : NIM A 506 (2003), 250-303
66
WWW : http://cern.ch/geant4
@@ -199,26 +199,26 @@ msc: Model variant of multiple scattering for pi-
199199
Lambda tables from 100 eV to 100 TeV in 120 bins.
200200
Boundary algorithm is active with facrange= 0.199
201201
Volume name | Importance| Tr.Entering| Population| Collisions| Coll*WGT| NumWGTedE| FluxWGTedE| Av.Tr.WGT|
202-
cell_01_rep:0............ | 1 | 109 | 128 | 116 | 116 | 9.0844649 | 9.5448707 | 1 |
203-
cell_02_rep:0............ | 2 | 69 | 152 | 142 | 71 | 8.514088 | 9.1338343 | 1 |
204-
cell_03_rep:0............ | 4 | 87 | 175 | 195 | 48.75 | 7.0706267 | 8.4721018 | 1 |
205-
cell_04_rep:0............ | 8 | 106 | 205 | 197 | 24.625 | 6.4781545 | 8.009855 | 1 |
206-
cell_05_rep:0............ | 16 | 125 | 265 | 325 | 20.3125 | 6.5346594 | 7.8737813 | 1 |
207-
cell_06_rep:0............ | 32 | 147 | 300 | 382 | 11.9375 | 4.8149962 | 7.5593459 | 1 |
208-
cell_07_rep:0............ | 64 | 151 | 322 | 410 | 6.40625 | 3.4013848 | 7.2868181 | 1 |
209-
cell_08_rep:0............ | 128 | 174 | 376 | 499 | 3.8984375 | 4.0138152 | 7.1811682 | 1 |
210-
cell_09_rep:0............ | 256 | 184 | 375 | 537 | 2.0976562 | 4.7452287 | 6.7490821 | 1 |
211-
cell_10_rep:0............ | 512 | 199 | 413 | 598 | 1.1679688 | 0.12715559 | 6.6545894 | 1 |
212-
cell_11_rep:0............ | 1024 | 209 | 427 | 670 | 0.65429688 | 3.8229542 | 5.9721558 | 1 |
213-
cell_12_rep:0............ | 2048 | 217 | 437 | 713 | 0.34814453 | 3.6997829 | 6.0543108 | 1 |
214-
cell_13_rep:0............ | 4096 | 232 | 475 | 720 | 0.17578125 | 3.8285283 | 5.9110234 | 1 |
215-
cell_14_rep:0............ | 8192 | 269 | 540 | 990 | 0.12084961 | 3.4219729 | 5.4792145 | 1 |
216-
cell_15_rep:0............ | 16384 | 291 | 584 | 1041 | 0.063537598 | 3.1097494 | 5.191823 | 1 |
217-
cell_16_rep:0............ | 32768 | 322 | 638 | 1155 | 0.035247803 | 3.2779116 | 5.0155103 | 1 |
218-
cell_17_rep:0............ | 65536 | 313 | 624 | 1178 | 0.017974854 | 2.8946874 | 4.807036 | 1 |
219-
cell_18_rep:0............ | 131072 | 279 | 646 | 1252 | 0.009552002 | 0.041089375 | 4.9343901 | 1 |
220-
rest_rep:0............... | 131072 | 301 | 301 | 0 | 0 | 0 | 0 | 0 |
221-
shieldWorld_rep:0........ | 1 | 12 | 111 | 0 | 0 | 10 | 10 | 1 |
202+
cell_01_rep:0............ | 1 | 114 | 140 | 132 | 132 | 8.8854311 | 9.2675604 | 1 |
203+
cell_02_rep:0............ | 2 | 66 | 146 | 156 | 78 | 8.2877741 | 9.0681291 | 1 |
204+
cell_03_rep:0............ | 4 | 77 | 168 | 203 | 50.75 | 7.6395128 | 8.7505951 | 1 |
205+
cell_04_rep:0............ | 8 | 89 | 191 | 193 | 24.125 | 6.1047087 | 8.6873125 | 1 |
206+
cell_05_rep:0............ | 16 | 107 | 226 | 265 | 16.5625 | 6.0088575 | 8.1979473 | 1 |
207+
cell_06_rep:0............ | 32 | 120 | 258 | 314 | 9.8125 | 6.0200136 | 7.8726478 | 1 |
208+
cell_07_rep:0............ | 64 | 149 | 315 | 371 | 5.796875 | 5.3842282 | 7.598337 | 1 |
209+
cell_08_rep:0............ | 128 | 172 | 372 | 514 | 4.015625 | 5.2973025 | 7.0026244 | 1 |
210+
cell_09_rep:0............ | 256 | 191 | 401 | 531 | 2.0742188 | 4.7982539 | 6.9856922 | 1 |
211+
cell_10_rep:0............ | 512 | 212 | 450 | 576 | 1.125 | 4.8964842 | 6.765078 | 1 |
212+
cell_11_rep:0............ | 1024 | 242 | 500 | 680 | 0.6640625 | 4.3184131 | 6.4371545 | 1 |
213+
cell_12_rep:0............ | 2048 | 284 | 572 | 802 | 0.39160156 | 4.5859085 | 6.1400305 | 1 |
214+
cell_13_rep:0............ | 4096 | 299 | 625 | 868 | 0.21191406 | 4.2297623 | 5.8416046 | 1 |
215+
cell_14_rep:0............ | 8192 | 323 | 657 | 1024 | 0.125 | 3.7694033 | 5.470453 | 1 |
216+
cell_15_rep:0............ | 16384 | 352 | 710 | 1160 | 0.070800781 | 3.4268494 | 5.1934861 | 1 |
217+
cell_16_rep:0............ | 32768 | 399 | 808 | 1327 | 0.040496826 | 3.4305033 | 5.1482827 | 1 |
218+
cell_17_rep:0............ | 65536 | 437 | 907 | 1670 | 0.025482178 | 2.9318757 | 4.6892257 | 1 |
219+
cell_18_rep:0............ | 131072 | 421 | 954 | 1850 | 0.01411438 | 2.6658695 | 4.4020777 | 1 |
220+
rest_rep:0............... | 131072 | 471 | 471 | 0 | 0 | 0 | 0 | 0 |
221+
shieldWorld_rep:0........ | 1 | 11 | 111 | 0 | 0 | 10 | 10 | 1 |
222222
=== G4ProcessPlacer::RemoveProcess: for: neutron
223223
ProcessName: MassImportanceProcess, will be removed!
224224
The initial Vectors:

0 commit comments

Comments
 (0)