Skip to content

Commit 8980a1a

Browse files
committed
Import Geant4 9.1.3 source tree
1 parent 3b06acb commit 8980a1a

File tree

328 files changed

+3995
-2582
lines changed

Some content is hidden

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

328 files changed

+3995
-2582
lines changed

ReleaseNotes/Patch4.9.1-3.txt

+203
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
2+
Geant4 9.1 - patch-03 Release Notes
3+
-----------------------------------
4+
5+
12 September 2008
6+
7+
List of fixes included in this public patch since the public release 9.1.p02:
8+
9+
o Configuration:
10+
-------------
11+
+ architecture.gmk: removed obsoled DOM library from GDMLIBS; resolving
12+
run-time problems on Windows systems.
13+
+ liblist.c: removed C++ style comments; resolving compilation problems
14+
on legacy SUN-CC compiler.
15+
16+
o Digits_Hits:
17+
-----------
18+
+ Fixed a bug in G4ScoringBox for the use of G4PVDivision
19+
and G4VScoreWriter for indexing scheme in GetIndex() method.
20+
21+
o Event:
22+
-----
23+
+ Provided accessors to G4SPSAngDistribution.
24+
Addressing problem report #1013.
25+
+ Cleared gcc-4.3.0 compilation warnings in G4SPSEneDistribution.
26+
27+
o G3toG4:
28+
------
29+
+ GNUmakefile: workaround for renewing Fortran objects in 'lib' target
30+
before re-build of libraries.
31+
32+
o Geometry:
33+
--------
34+
+ divisions:
35+
o Corrected initialisation for 'fnReplicas' and 'fwidth' data members
36+
in CheckAndSetParameters(), to make use of precomputed values retrieved
37+
from concrete parameterisations; simplified method signature.
38+
o Corrected error print-out in CheckNDivAndWidth() method in
39+
G4VDivisionParameterisation class.
40+
+ management:
41+
o G4LogicalVolume, G4LogicalVolumeStore: corrected logic for the deletion
42+
of the root-region volumes, adding locking mechanism and automatically
43+
de-registering the world default root-region.
44+
Simplified Clean() method in the store, by removing unused and
45+
unnecessary default flag for logical-volumes notification.
46+
o Reinstated update of materials in G4Region::RemoveRootLogicalVolume()
47+
to correct handling individual removal of root-region volumes and
48+
restore proper setup state.
49+
o G4Region: changed condition inside ScanVolumeTree() to check for the
50+
existence of a valid material-scanner pointer to apply the material
51+
scan instead of using the flag for nested structures.
52+
o G4GeometryManager: do not apply optimisation on the current volume if
53+
it has been defined as a regular structure.
54+
Addresses problem report #990.
55+
o G4VSolid: promote copy-constructor and assignment operator to public
56+
to cope with specific use-case in ATLAS (see problem report #1023).
57+
+ navigation:
58+
o G4PropagatorInField: correction to LocateIntersectionPoint() algorithm
59+
to ensure that endpoints are not further apart in space than on the
60+
curve due to different errors in the integration.
61+
Resolves rare error conditions in ATLAS production.
62+
+ solids/CSG:
63+
o G4Sphere: fixed bug in DistanceToOut(p, v, ...) for normal 'fSTheta'
64+
greater than 90*deg, and use of tangent giving negative value.
65+
Fixed calculation of roots in DistanceToOut(p,v,...) for theta-conical
66+
surface interserctions and for sTheta<=90 degree intersection.
67+
Addresses issue reported when running PET application with optical
68+
photons about mis-computation of distance on half-sphere constructs,
69+
and later also reported in problem report #1022.
70+
o G4Tubs: fix in DistanceToIn(p,v, ...) in case of point on surface with
71+
very small tangent direction; now returning kInfinity and no longer
72+
zero. It fixes rare observed cases of zero value returned by both
73+
DistanceToIn() and DistanceToOut(), causing stuck tracks with zero
74+
step length.
75+
+ solids/specific:
76+
o G4ExtrudedSolid: fix in polygon decomposition; systematically use
77+
half kCarTolerance instead of kCarTolerance; added solid name in the
78+
error messages coming from fatal exceptions.
79+
Added missing 'std' namespace to standard mathematical function calls.
80+
o G4Paraboloid: revised DistanceToOut(p,v,...) in answer to problem
81+
report #1015. Fixed precision problem when solving quadratic equation;
82+
apply comparison with kCarTolerance and not with zero; fixed logic
83+
problem in algorithm for points on surface and direction inside,
84+
relative to directions along Z, (0,0,Vz).
85+
o G4VFacet: corrected increment of indeces in operator==().
86+
Addressing problem report #1024.
87+
88+
o Global:
89+
------
90+
+ Corrected signature of G4SwapPtr() to use reference of pointers as
91+
arguments.
92+
+ Changed date for patch-03 to release 9.1.
93+
94+
o Interfaces:
95+
----------
96+
+ Replaced calls to exit() with G4Exception wherever applicable.
97+
98+
o Materials:
99+
---------
100+
+ G4Element: extended printout of errors and warnings; added more safe
101+
check of consistency between Z and A in construction.
102+
+ G4Material: improved errors printout.
103+
104+
o Hadronic Processes:
105+
------------------
106+
+ models/coherent_elastic:
107+
o G4HadronElastic: added protection inside LElastic algorithm against
108+
cases of t>tmax (outside kinematically allowed 4-momentum transfer).
109+
+ models/lll_fission:
110+
o Replaced usage of exit() with G4Exception in G4fissionerr.
111+
+ models/high_energy:
112+
o In G4HEInelastic: fixed bug in HighEnergyCascading() and
113+
MediumEnergyCascading() for momentum sampling, responsible for
114+
oscillatory behavior in spectrum.
115+
In TuningOfHighEnergyCascade(), removed abnormally high pt secondaries
116+
due to incident strange particles by prohibiting the assignment of
117+
leading particle to anything that goes backward in the CM frame.
118+
Replaced usage of exit() with G4Exception in Factorial() method.
119+
In NBodyPhaseSpace(), removed error message "total mass > total energy"
120+
and replaced with message only when verbosity is > 1.
121+
+ models/parton_string/diffraction:
122+
o Fixed compilation warnings for unused variables in G4FTFModel.
123+
+ models/pre_equilibrium:
124+
o Fixed cases of floating point overflow when using pre-compound in
125+
combination with binary-cascade; reviewed algorithm in method
126+
G4PreCompoundEmission::rho().
127+
+ util:
128+
o G4ReactionDynamics::GenerateXandPt(): fixed bug in momentum bin
129+
responsible for causing oscillatory behavior in spectrum.
130+
Replaced usage of exit() with G4Exception.
131+
132+
o Generic Processes:
133+
-----------------
134+
+ Management:
135+
o Fixed un-necessary double deletion/creation of vector in operator=()
136+
in G4ProcessVector.
137+
o Fixed compilation warning on messenger.
138+
139+
o Run:
140+
---
141+
+ G4RunManagerKernel: avoid deletion of default root-region which is now
142+
taken care by the geometry stores. It resolves the ambiguity of explicitly
143+
avoiding the de-registration and deletion of the default root-region by
144+
the stores and eliminates the limitation of forcing the world logical
145+
volume being the first registered in the logical-volumes store.
146+
+ Invoke G4Particle::DeleteAllParticles() in the destructor of
147+
G4VUserPhysicsList to clear memory leak at application closure.
148+
149+
o Tracking:
150+
--------
151+
+ Fix in G4SteppingManager to properly update 'fTouchableHandle' data
152+
member. Addresses problem report #1009.
153+
154+
o Examples:
155+
--------
156+
+ advanced/air_shower:
157+
o Adjusted range of optical properties tables in DetectorConstruction;
158+
Added check of optical photon energy in PrimaryGeneratorAction;
159+
Cerenkov process attached to all applicable particles;
160+
Modified Visualisation.mac and UltraMacro.mac macros.
161+
o Corrected a parameter in the DetectorConstruction to fix a
162+
segmentation due to a non correct definition of the refraction index
163+
of the Quartz.
164+
o Implemented access to private data members of DetectorConstruction
165+
through accessors.
166+
o Fixed a compilation warning in AnalysisManager.
167+
+ advanced/brachytherapy:
168+
o Fixed compilation warning in AnalysisManager. Fixed bad type assignment.
169+
o Activated generation of histogram files for output.
170+
+ advanced/gammaray_telescope:
171+
o Fixed problems in compilation.
172+
+ advanced/lAr_calorimeter:
173+
o Fixed compilation warning in AnalysisManager.
174+
+ advanced/Rich:
175+
o Fixed compilation errors and removed warnings.
176+
+ advanced/Tiara:
177+
o Fixed compilation errors.
178+
+ extended/exoticphysics/monopole:
179+
o Fixed compilation warnings.
180+
+ extended/medical/DICOM:
181+
o Bug fix in DicomNestedPhantomParameterisation in calculating the cell
182+
copy-number; now fixing the material assignments.
183+
o Set default cut to 1 mm to reduce physics content and enhance tracking
184+
performance.
185+
o Corrected direction and position of primary particles to better
186+
traverse the DICOM voxels.
187+
188+
----------------------------------------------------------------------------
189+
190+
Technical Notes
191+
---------------
192+
193+
o This patch should be applied on top of release 9.1
194+
o Technical notes distributed for release 9.1 are also applicable and
195+
valid for this patch.
196+
197+
The code and rebuilt binary libraries for release 9.1 are available
198+
through our "Download" Web page:
199+
http://cern.ch/geant4/support/download.shtml
200+
201+
Please refer to the Geant4 User Documentation:
202+
http://cern.ch/geant4/support/userdocuments.shtml
203+
for further information about using Geant4.

config/History

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Id: History,v 1.311.2.1 2008/04/23 08:30:27 gcosmo Exp $
1+
$Id: History,v 1.311.2.2 2008/09/02 09:44:39 gcosmo 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+
11th July 2008 Gabriele Cosmo (config-V09-00-14)
20+
- architecture.gmk: removed obsoled DOM library from GDMLIBS.
21+
- Tag for release 9.1.p03.
22+
23+
20th May 2008 Gunter Folger
24+
- liblist.c: removed C++ style comments.
25+
1926
23rd April 2008 Gabriele Cosmo (config-V09-00-13)
2027
- Tag for release 9.1.p02.
2128

config/architecture.gmk

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: architecture.gmk,v 1.114 2007/12/11 13:20:29 gcosmo Exp $
1+
# $Id: architecture.gmk,v 1.114.2.1 2008/09/02 09:44:39 gcosmo Exp $
22
# ------------------------------------------------------------------------
33
# GEANT 4 - Architecture configuration script for GNU Make
44
#
@@ -269,9 +269,9 @@ ifneq ($(G4LIB_BUILD_GDML),)
269269
endif
270270
ifndef GDMLLIBS
271271
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
272-
GDMLLIBS := $(LIB_PATH)$(XERCESCROOT)/lib xerces-depdom_2.lib xerces-c_2.lib
272+
GDMLLIBS := $(LIB_PATH)$(XERCESCROOT)/lib xerces-c_2.lib
273273
else
274-
GDMLLIBS := -L$(XERCESCROOT)/lib -lxerces-depdom -lxerces-c
274+
GDMLLIBS := -L$(XERCESCROOT)/lib -lxerces-c
275275
endif
276276
endif
277277
CPPFLAGS += $(GDMLFLAGS)

config/liblist.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: liblist.c,v 1.19.6.1 2008/04/23 08:30:28 gcosmo Exp $ */
1+
/* $Id: liblist.c,v 1.19.6.2 2008/09/02 09:44:39 gcosmo Exp $ */
22

33
/*
44
Given a "libname.map" file on standard input and a list or directory
@@ -207,8 +207,9 @@ int main (int argc, char** argv) {
207207
" Internal ERROR: BUFSIZE too small to read library name map file\n");
208208
exit(1);
209209
}
210+
/* discarded trailing \n, as gets() was doing */
210211
if ( buffer[strlen(buffer)-1] == '\n')
211-
{ buffer[strlen(buffer)-1]='\0'; } // when gets() was used, this discarded trailing \n
212+
{ buffer[strlen(buffer)-1]='\0'; }
212213

213214
ptr=strtok(buffer,":\n");
214215

@@ -267,8 +268,9 @@ int main (int argc, char** argv) {
267268
" Internal ERROR: BUFSIZE too small to read directory name\n");
268269
exit(1);
269270
}
271+
/* discarded trailing \n, as gets() was doing */
270272
if ( buffer[strlen(buffer)-1] == '\n')
271-
{ buffer[strlen(buffer)-1]='\0'; } // when gets() was used, this discarded trailing \n
273+
{ buffer[strlen(buffer)-1]='\0'; }
272274

273275
ptr=strtok(buffer,"/");
274276
if(!ptr)

environments/g4py/site-modules/EZsim/EZgeom/ezgeom/G4EzWorld.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: G4EzWorld.cc,v 1.4.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// G4EzWorld.cc
3030
//

environments/g4py/source/GNUmakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# $Id: GNUmakefile,v 1.6.2.1 2008/04/23 09:26:58 gcosmo Exp $
2-
# $Name: geant4-09-01-patch-02 $
2+
# $Name: geant4-09-01-patch-03 $
33
# ===========================================================
44
# Makefile for building Geant4Py modules
55
# ===========================================================

environments/g4py/source/g4gdml/pyG4GDMLParser.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4GDMLParser.cc,v 1.1.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4GDMLParser.cc
3030
//

environments/g4py/source/geometry/pyG4FieldManager.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4FieldManager.cc,v 1.4.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4FieldManager.cc
3030
//

environments/g4py/source/geometry/pyG4LogicalVolume.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4LogicalVolume.cc,v 1.4.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4LogicalVolume.cc
3030
//

environments/g4py/source/geometry/pyG4PVPlacement.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4PVPlacement.cc,v 1.5.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4PVPlacement.cc
3030
//

environments/g4py/source/geometry/pyG4Region.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4Region.cc,v 1.4.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4Region.cc
3030
//

environments/g4py/source/geometry/pyG4VPhysicalVolume.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4VPhysicalVolume.cc,v 1.6.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4VPhysicalVolume.cc
3030
//

environments/g4py/source/geometry/pyG4VSolid.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4VSolid.cc,v 1.5.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4VSolid.cc
3030
//

environments/g4py/source/global/pyG4TwoVector.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4TwoVector.cc,v 1.1.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4TwoVector.cc
3030
//

environments/g4py/source/global/pyG4Version.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4Version.cc,v 1.1.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4Version.cc
3030
//

environments/g4py/source/global/pyglobals.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyglobals.cc,v 1.5.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyglobals.cc
3030
//

environments/g4py/source/interface/pyG4UIterminal.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4UIterminal.cc,v 1.7.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4UIterminal.cc
3030
//

environments/g4py/source/materials/pyG4Element.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ********************************************************************
2525
//
2626
// $Id: pyG4Element.cc,v 1.5.2.1 2008/04/23 09:26:58 gcosmo Exp $
27-
// $Name: geant4-09-01-patch-02 $
27+
// $Name: geant4-09-01-patch-03 $
2828
// ====================================================================
2929
// pyG4Element.cc
3030
//

0 commit comments

Comments
 (0)