Skip to content

Commit 9e54394

Browse files
committed
Import Geant4 9.0.1 source tree
1 parent a8e9364 commit 9e54394

File tree

206 files changed

+8306
-5653
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

+8306
-5653
lines changed

ReleaseNotes/Patch4.8.3-1.txt

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
2+
Geant4 8.3 - patch-01 Release Notes
3+
-----------------------------------
4+
5+
17 August 2007
6+
7+
List of fixes included in this public patch since the public release 8.3:
8+
9+
o Configuration:
10+
-------------
11+
+ liblist.c: fixed problem affecting recent CygWin installations on
12+
Windows in parsing the buffer for the generation of libname.map.
13+
+ binmake.gmk: defined OUT internal variable specifying the proper
14+
compilation/linking option to Unix or Windows compilers: '-o '
15+
and '/Fe' respectively. Cleared <TAB> characters where not necessary.
16+
+ SUN-CC.gmk: forced -xO2 as optimisation level.
17+
18+
o Geometry:
19+
--------
20+
+ magneticfield:
21+
o Relaxed 'FatalException' to 'Warning' in method
22+
G4MagIntegratorDriver::AccurateAdvance() for case of step zero and
23+
return previous value. This fixes problem observed by ATLAS and CMS
24+
in release 8.3 when using very conservative values for field
25+
parameters.
26+
+ solids/specific:
27+
o Fixes in G4Polyhedra::GetPointOnSurface():
28+
Correctly treat 'totalPhi' instead of 'endPhi' for the case of open
29+
shapes and 'twopi' for not open shapes.
30+
Introduced fix for the case when number of sectors (numSide) is equal
31+
to 1. At the origin of problems observed when checking overlaps for
32+
polyhedra solids defined as such.
33+
34+
o Global:
35+
------
36+
+ Changed date for patch-01 to release 8.3.
37+
38+
o Materials:
39+
---------
40+
+ G4NistElementBuilder: added protection (Z>=limitNumElements) inside
41+
method BuildElement().
42+
43+
o Hadronic Processes:
44+
------------------
45+
+ models/chiral_inv_phase_space:
46+
o G4QuasiFreeRatios: fixed DB filling (ID update), responsible for
47+
excessive growth of memory in long runs. Corrected indexing and
48+
computation of cos(theta).
49+
+ util:
50+
o Three bug fixes in G4ReactionDynamics::TwoCluster(): removed a sharp
51+
peak at 180 degrees by fixing a units error and fixed an error in
52+
sampling the momentum transfer. Fixed array bound violation which
53+
caused in some rare occasions an infinite loop.
54+
55+
o Physics Lists:
56+
-------------
57+
+ Correct use of QElasticPhysics in QGSP_QEL list.
58+
59+
----------------------------------------------------------------------------
60+
61+
Technical Notes
62+
---------------
63+
64+
o This patch should be applied on top of release 8.3
65+
o Technical notes distributed for release 8.3 are also applicable and
66+
valid for this patch.
67+
68+
The code and rebuilt binary libraries for release 8.3 are available
69+
through our "Archive of Previous Releases" Web page:
70+
http://cern.ch/geant4/support/source_archive.shtml
71+
72+
Please refer to the Geant4 User Documentation:
73+
http://cern.ch/geant4/support/userdocuments.shtml
74+
for further information about using Geant4.

ReleaseNotes/Patch4.9.0-1.txt

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
2+
Geant4 9.0 - patch-01 Release Notes
3+
-----------------------------------
4+
5+
28 August 2007
6+
7+
List of fixes included in this public patch since the public release 9.0:
8+
9+
o Configuration: (*)
10+
-------------
11+
+ liblist.c: fixed problem affecting recent CygWin installations on
12+
Windows in parsing the buffer for the generation of libname.map.
13+
+ binmake.gmk: defined OUT internal variable specifying the proper
14+
compilation/linking option to Unix or Windows compilers: '-o '
15+
and '/Fe' respectively. Cleared <TAB> characters where not necessary.
16+
+ SUN-CC.gmk: forced -xO2 as optimisation level.
17+
18+
o Geometry:
19+
--------
20+
+ magneticfield:
21+
o Fix to DistChord() method for Helical Steppers: adopt 'special' case
22+
also for Ang<2pi not only for Ang<pi; use cos() in place of tan(), to
23+
improve CPU performance.
24+
o In G4HelixMixedStepper added possibility to call different steppers
25+
for small steps and add some statistics how offen different steppers
26+
are called. Improved AdvanceHelix() to be able to make half step and
27+
full step in one call.
28+
o G4RKG3_Stepper: improved internal algorithm to use pre-computed values;
29+
the stepper now gives comparable CPU performance as ClassicalRK4.
30+
o Changed FatalException to EventMustBeAborted in AccurateAdvance()
31+
if proposed integration step is negative. (*)
32+
+ management:
33+
o Added dummy constructor and destructor to G4VPVParameterisation.
34+
+ solids/BREPS:
35+
o Added missing initialisations of kCarTolerance in alternative
36+
constructors for G4BoundingBox3D, G4Curve, G4CurveRayIntersection,
37+
G4KnotVector. Addressing problem report #959.
38+
+ solids/CSG:
39+
o G4Tubs: fixed bug in DistanceToOut(p,v,..) for negative value under
40+
sqrt() for the case of point p on the surface and v tangent to the
41+
surface. Responsible for rare cases of NaN.
42+
+ solids/specific:
43+
o Fixes in G4Polyhedra::GetPointOnSurface(): (*)
44+
Correctly treat 'totalPhi' instead of 'endPhi' for the case of open
45+
shapes and 'twopi' for not open shapes.
46+
Introduced fix for the case when number of sectors (numSide) is equal
47+
to 1. At the origin of problems observed when checking overlaps for
48+
polyhedra solids defined as such.
49+
o Fixed dummy constructors of G4Polycone and G4PolyPhiFace for
50+
initialisation of 'edges' and 'corners'. Added workaround to
51+
initialisation of 'corners' vector in G4PolyconeSide class, to allow
52+
for object persistency with Root-I/O.
53+
o G4EllipticalCone:
54+
- DistanceToIn(p): corrected answer for p.z()<-zTopCut and for the
55+
point p on the surface.
56+
- DistanceToOut(p,v): now returning positive solution or zero when
57+
crossing the elliptical surface.
58+
- Fix in DistanceToOut(p) which was giving always zero.
59+
- Added some formulas on how to pre-calculate 'SemiAxis' and 'zheight'.
60+
61+
o Global:
62+
------
63+
+ Changed date for patch-01 to release 9.0.
64+
65+
o Graphics Representations:
66+
------------------------
67+
+ Corrected graphical description for G4EllipticalCone in HepPolyhedron
68+
and G4Polyhedron.
69+
+ G4VGraphicsScene: Added default constructor and virtual destructor.
70+
71+
o Intercoms:
72+
---------
73+
+ G4UIbatch:
74+
o Bug fixed for the treatment of the last line.
75+
o Added support for continued line by '\', '_'.
76+
o String after '#' is treated as comment.
77+
o White spaces at the head of a line are allowed.
78+
o Fixed problem on 32bit-Linux.
79+
+ G4UImanager: fixed bug concerning invalid returned object.
80+
+ Introduced "/control/getEnv" and "/control/echo" commands.
81+
82+
o Electromagnetic Processes:
83+
-------------------------
84+
+ Polarisation:
85+
o Removed/renamed obsolete methods and local variables in
86+
classes G4VPolarizedCrossSection, G4eplusPolarizedAnnihilation,
87+
and G4PolarizedAnnihilationModel to clear "shadow" warnings on SUN-CC.
88+
+ Standard:
89+
o G4UniversalFluctuation: added protection such that no sampling of
90+
fluctuations is done if mean energy loss at the step is below minimal
91+
excitation energy of the media. The fix is important for cases of
92+
low-dense gases and very small steps.
93+
o G4UniversalFluctuation: added protection for low-density materials
94+
or very small steps - mean energy loss below minimal excitation
95+
energy - no fluctuation sampling but mean energy loss.
96+
+ Utils:
97+
o G4VEmModel: fixed SelectRandomAtom() method for the selection of
98+
elements in a compound material.
99+
+ Xrays:
100+
o G4VXTRenergyLoss: fixed Valgrind run-time errors for wrong memory
101+
allocation by removing internal initialisation of Sandia table and
102+
using Sandia table from materials.
103+
104+
o Hadronic Processes:
105+
------------------
106+
+ models/chiral_inv_phase_space: (*)
107+
o G4QuasiFreeRatios: fixed DB filling (ID update), responsible for
108+
excessive growth of memory in long runs. Corrected indexing and
109+
computation of cos(theta).
110+
+ models/neutron_hp:
111+
o G4NeutronHPThermalScattering: removed duplicate declaration of
112+
'dirName', already a class member, to clear compilation warning.
113+
+ models/util:
114+
o G4KineticTrack: changed local variable names to clear compilation
115+
warnings on SUN-CC about hiding.
116+
+ stopping:
117+
o Fixed signature of G4MuMinusCaptureCascade::DoCascade() expecting
118+
'const' as arguments for A and Z. Resolves linking problems on SUN-CC.
119+
120+
o Visualization:
121+
-------------
122+
+ Removed redundant method declarations and minor tidies.
123+
124+
o Environments:
125+
------------
126+
+ Minor bug fixes to G4Py module; updated geometry wrappers and TestEm0
127+
example.
128+
129+
o Examples:
130+
--------
131+
+ advanced/medical_linac:
132+
o Fixed problem report #880 in DetectorConstruction class.
133+
o Updated macros; reviewed seed initialisation and modified to use
134+
default multiple-scattering class instead of MultipleScattering52.
135+
+ advanced/microbeam:
136+
o Improved dose calculation in the code in order to take into account
137+
small energy deposits by any particle around the phantom edge voxels,
138+
by suppressing a selection condition on the PostStep. The total result
139+
of the dose calculation does not change significantly.
140+
o Added protection against scattering at large angles in collimators.
141+
o Suppressed field manager in zones with zero field.
142+
o Use 'kUndefined' optimization in cell phantom implementation.
143+
o Changed number of incident alpha particles in microbeam.mac.
144+
+ advanced/underground_physics:
145+
o Added missing header file G4hIonisation.hh to DMXPhysicsLists
146+
translation unit.
147+
o Added G4StepLimiter to physics list as correction of migration
148+
required since Geant4 release 7.0.
149+
+ extended/electromagnetic/TestEm7:
150+
o Updated README for physics-list names.
151+
+ extended/electromagnetic/TestEm8:
152+
o Fixed PAI physics constructors: energy loss processes should be
153+
active post step.
154+
o Create VisManager only for interactive session, improved destructor
155+
of Em8DetectorConstruction class.
156+
+ extended/electromagnetic/TestEm10:
157+
o Create VisManager only for interactive session, improved destructor
158+
of Em10DetectorConstruction class.
159+
+ extended/electromagnetic/TestEm13:
160+
+ extended/electromagnetic/TestEm14:
161+
o SteppingAction : modify logic to take into account low energy packages.
162+
+ extended/medical/fanoCavity:
163+
o Use 'fUseDistanceToBoundary' in physics-list for 'emOptions'. Cleanup.
164+
+ extended/medical/GammaTherapy:
165+
o Provide possibility to change cuts between runs.
166+
+ extended/radioactivedecay/exrdm:
167+
o Removed obsolete hadronic builders and use only QGSP_BIC,
168+
QGSP_BIC_HP, QGSP_BERT, QGSP_BERT_HP instead.
169+
+ novice/N02:
170+
o Fixed implementation of ExN02MagneticField class in way field is set.
171+
172+
173+
(*) Fixes also included in the patched release 8.3.p01.
174+
175+
----------------------------------------------------------------------------
176+
177+
Technical Notes
178+
---------------
179+
180+
o This patch should be applied on top of release 9.0
181+
o Technical notes distributed for release 9.0 are also applicable and
182+
valid for this patch.
183+
184+
The code and rebuilt binary libraries for release 9.0 are available
185+
through our "Download" Web page:
186+
http://cern.ch/geant4/support/download.shtml
187+
188+
Please refer to the Geant4 User Documentation:
189+
http://cern.ch/geant4/support/userdocuments.shtml
190+
for further information about using Geant4.

config/History

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Id: History,v 1.295 2007/06/28 17:01:13 gcosmo Exp $
1+
$Id: History,v 1.300.2.1 2007/08/20 09:41:20 gcosmo Exp $
22
-------------------------------------------------------------------
33

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

19+
16th August 2007 Gabriele Cosmo (config-V09-00-04a)
20+
- Corrected definition of OUT internal variable to allow for proper
21+
linking also of unit tests.
22+
23+
13th August 2007 Gabriele Cosmo (config-V09-00-02)
24+
- SUN-CC.gmk: forced -xO2 as optimisation level.
25+
26+
18th July 2007 Gabriele Cosmo (config-V09-00-01)
27+
- liblist.c: fixed problem affecting recent CygWin installations on
28+
Windows in parsing the buffer for the generation of libname.map.
29+
- binmake.gmk: defined OUT internal variable specifying the proper
30+
compilation/linking option to Unix or Windows compilers: '-o '
31+
and '/Fe' respectively.
32+
1933
28th June 2007 Gabriele Cosmo (config-V08-03-04)
2034
- Updated Configure scripts to fix installation issue when installation
2135
path is different from source path and headers are not installed.

config/binmake.gmk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: binmake.gmk,v 1.123 2007/06/28 14:16:55 gcosmo Exp $
1+
# $Id: binmake.gmk,v 1.129.2.1 2007/08/20 09:41:21 gcosmo Exp $
22
# ----------------------------------------------------------
33
# Script defining rules and paths for making binaries.
44
# First implementation: Gabriele Cosmo, 25/06/1998.
@@ -282,6 +282,7 @@ LDLIBS_PREFINAL += $(LDLIBS4)
282282
LDLIBS_KERNEL += $(LDLIBS4)
283283

284284
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
285+
# Windows
285286
WIN32TMP := $(patsubst -L%,$(LIB_PATH)%,$(LDFLAGS))
286287
LDFLAGS = $(patsubst /,$(PATH_DEL),$(WIN32TMP))
287288
WIN32TMP2 := $(patsubst -L%,$(LIB_PATH)%,$(LDLIBS_PREFINAL))
@@ -296,8 +297,11 @@ ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
296297
else
297298
LDLIBS = $(TARGETLIB) $(patsubst -l%,lib%.a,$(WIN32TMP2))
298299
endif
300+
OUT := /Fe
299301
else
302+
# Unix
300303
LDLIBS = $(TARGETLIB) $(LDLIBS_PREFINAL)
304+
OUT := -o
301305
endif
302306

303307
ifdef transform-RPath
@@ -339,12 +343,12 @@ endif
339343
@if [ ! -d $(G4BINDIR) ] ; then mkdir $(G4BINDIR) ;fi
340344
ifdef CPPVERBOSE
341345
$(CXX) $(CXXFLAGS) $(CPPFLAGS) \
342-
-o $(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
346+
$(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
343347
$(LDLIBS)
344348
else
345349
@echo Linking $(G4TARGET) ...
346350
@$(CXX) $(CXXFLAGS) $(CPPFLAGS) \
347-
-o $(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
351+
$(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
348352
$(LDLIBS)
349353
@if [ \( -f $(G4BINDIR)/$(G4TARGET) \) ]; then \
350354
echo "... Done!"; fi

config/liblist.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: liblist.c,v 1.18 2006/10/05 14:22:06 gcosmo Exp $ */
1+
/* $Id: liblist.c,v 1.19 2007/07/18 14:21:15 gcosmo Exp $ */
22

33
/*
44
Given a "libname.map" file on standard input and a list or directory
@@ -303,7 +303,6 @@ int main (int argc, char** argv) {
303303

304304
#if defined ( _WIN32 ) || defined ( __CYGWIN__ ) || defined ( __CYGWIN32__ )
305305
ptr=strchr(ntg4tmp1,':');
306-
if ( ptr ) *(ptr+1)='\0';
307306

308307
while ( ptr=strchr(buffer,'\\') ) *ptr='/';
309308

config/sys/SUN-CC.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ifeq ($(G4SYSTEM),SUN-CC)
55
CXX := CC
66
ifdef G4OPTIMISE
7-
CXXFLAGS := -O
7+
CXXFLAGS := -xO2
88
else
99
ifdef G4DEBUG
1010
CXXFLAGS := -g

environments/History

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Id: History,v 1.29 2007/06/07 09:12:11 kmura Exp $
1+
$Id: History,v 1.30 2007/07/13 05:13:22 kmura Exp $
22
-------------------------------------------------------------------
33

44
=========================================================
@@ -18,6 +18,12 @@ committal in the CVS repository !
1818
* Reverse chronological order (last date on top), please *
1919
----------------------------------------------------------
2020

21+
envs-V09-00-00 14 July Koichi Murakami
22+
[g4py]
23+
- bug fix
24+
- update/add geometry staffs
25+
- new example of TestEm0
26+
2127
envs-V08-03-01 7 June Koichi Murakami
2228
[g4py]
2329
- modified for 9.0 (checked for cand-05)

0 commit comments

Comments
 (0)