Skip to content

Commit 330b82b

Browse files
committed
Import Geant4 4.1.0 source tree
1 parent 921d3b1 commit 330b82b

File tree

4,524 files changed

+175987
-40873
lines changed

Some content is hidden

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

4,524 files changed

+175987
-40873
lines changed

Configure

Lines changed: 189 additions & 20 deletions
Large diffs are not rendered by default.

ReleaseNotes/Patch4.4.0-1.txt

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
2+
Geant4 4.0 - patch-01 Release Notes
3+
-----------------------------------
4+
5+
31st January 2002
6+
7+
List of fixes included in this public patch to release 4.0:
8+
9+
o Event:
10+
-----
11+
- G4PrimaryTransformer: removed check whether the primary vertex is
12+
inside the world volume. The check has been moved to G4SteppingManager.
13+
14+
o Geometry:
15+
--------
16+
- Magnetic field:
17+
o Activated G4DEBUG_FIELD in GNUmakefile.
18+
o G4MagHelicalStepper.cc: renamed local variables "*Momentum*"
19+
to "*Velocity*".
20+
- Management:
21+
o G4AffineTransform.icc: fixed trivial compilation warning for gcc-2.95.2.
22+
- Volumes:
23+
o G4AuxiliaryNavServices: critical fix, to only consider whether a
24+
'ray' (Point,Direction) is on the surface (it was erroneously also
25+
checking for those inside volumes). This erroneous condition occurred
26+
frequently in the new usage of Locate with Direction to initialise a
27+
step.
28+
o G4Navigator: reset blocked volume when locating 'within volume',
29+
after ensuring that it does not get called when ComputeSafety() is at
30+
a boundary. Fixes cases of longstanding 'Point P is Inside' errors.
31+
o Activated mechanism in GNUmakefile for allowing compilation with
32+
G4DEBUG_FIELD or G4DEBUG_NAVIGATION flags.
33+
- solids/Boolean:
34+
o Moved all verbosity mode warnings to G4BOOLDEBUG.
35+
o Activated G4BOOLDEBUG mechanism in GNUmakefile.
36+
- solids/BREPS:
37+
o G4BREPSolidPCone: bugfix for problem report #320.
38+
Fixed missing use-case in constructor when RMAX and RMIN have been
39+
changed for 2 consecutive equal z-values. Now it creates correctly
40+
2 planar surfaces as expected.
41+
Added private method ComputePlanarSurface() gained
42+
by refactoring of some part of the code in the constructor.
43+
o G4FPlane: fixed first constructor adding new argument for setting
44+
explicitly the sense of a surface if required.
45+
Fixed G4FPlane::Intersect() method which incorrectly ignored a special
46+
case of a hit on surface point with ray direction opposite to surface
47+
normal.
48+
- solids/CSG:
49+
o G4Sphere.cc: fixed a problem with tolerances in the case of large Radius.
50+
o Moved all verbosity mode warnings to G4CSGDEBUG.
51+
o Activated G4CSGDEBUG mechanism in GNUmakefile.
52+
53+
o Global:
54+
------
55+
- G4strstreambuf: plugged memory leak in destructor for buffer deletion.
56+
Temporary fix to G4strstream::overflow(c) for GNU gcc-3.X compilers
57+
(also problem report #342), which require returning of character 'c' in
58+
case of buffer flushing for <CR>.
59+
- Replaced 'NULL' with '0' in G4Allocator.hh, G4strstreambuf.icc
60+
and G4Timer.cc.
61+
- Removed obsolete inline definitions in g4std/wrappers/DEC-cxx/cmath.
62+
63+
o Materials:
64+
---------
65+
- Fixed G4MaterialPropertyVector::AddElement() to consider ordering
66+
of elements.
67+
68+
o Track & Tracking:
69+
----------------
70+
- track:
71+
o G4Track: corrected initialization of fStepLength in constructors.
72+
Fixed bug in assignment operator for fStepLength.
73+
- tracking:
74+
o G4SteppingManager:
75+
- fix safe comparison between floating numbers
76+
- added check for primary track outside of the world
77+
- bug fix for particles below threshold to avoid double steps
78+
79+
o Visualization:
80+
-------------
81+
- Corrected handling for already open file in HepRepXMLWriter.
82+
83+
o Examples:
84+
--------
85+
- Novice: syncronised files with CVS HEAD. No functional changes to code.
86+
87+
----------------------------------------------------------------------------
88+
89+
Technical Notes
90+
---------------
91+
92+
o Technical notes distributed for release 4.0 are also applicable and valid
93+
for this patch.
94+
95+
The code and rebuilt binary libraries for release 4.0 are available through
96+
our "Source Code" Web page:
97+
- see our <A href="http://cern.ch/geant4">Geant4 Home Page</A>.
98+
99+
Please refer to <A
100+
href="http://cern.ch/geant4/G4UsersDocuments/Overview/html/index.html">Geant4
101+
User Documentation</A> for further information about using Geant4.
102+

ReleaseNotes/Patch4.4.0-2.txt

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
2+
Geant4 4.0 - patch-02 Release Notes
3+
-----------------------------------
4+
5+
28th February 2002
6+
7+
List of fixes included in this public patch to release 4.0, to be added on
8+
top of patch-01:
9+
10+
o Config:
11+
------
12+
- liblist.c: added flags __CYGWIN__ and __CYGWIN32__ for triggering proper
13+
parsing algorithm on Windows systems, also on most recent versions of
14+
Cygwin.
15+
- WIN32-VC.gmk: use g77 instead of f77 as default fortran compiler.
16+
- sys/HP-aCC.gmk: removed include path to
17+
global/management/include/std/wrappers, which was unused and not
18+
necessary.
19+
20+
o Decay processes:
21+
---------------
22+
- Removed a physics table from G4Decay.
23+
24+
o Electromagnetic processes:
25+
-------------------------
26+
- Fixed bug in G4Ve(h)EnergyLoss, G4VMuEnergyLoss:
27+
o Adopt MinDeltaCut in-range instead of in-energy !
28+
- G4VEnergyLoss:
29+
o Set subSecFlag to false. NO default subcutoff generation.
30+
o Set finalRange to 1mm as default (the actual value is computed in
31+
G4VeEnergyLoss, G4VhEnergyLoss and G4VMuEnergyLoss).
32+
33+
o Event:
34+
-----
35+
- Optimised implementation of SetNewValue() in G4ParticleGunMessenger and
36+
G4GeneralParticleSourceMessenger to allow porting on WIN32-VC for optimised
37+
compilation.
38+
39+
o Geometry:
40+
--------
41+
- Management:
42+
o G4GeometryManager.cc: fixed handling of ios manipulators and precision
43+
to reset to their original state in G4GeometryManager::ReportVoxelStats().
44+
Fixes problem report #343.
45+
- Volumes:
46+
o G4GeometryMessenger.cc: fixed local variable name not to clash with
47+
class data member.
48+
- solids/Boolean:
49+
o G4ReflectionFactory.cc: fixed bug causing repetition of daughter volumes.
50+
o G4ReflectedSolid[.hh.cc]:
51+
- Defined new methods Set/GetTransform3D() and Set/GetDirectTransform3D()
52+
for defining/accessing the reflected transformation.
53+
o Moved utility methods for G4AffineTransform to protected.
54+
- solids/BREPS:
55+
o Bug fixes to G4BREPSolidPolyhedra:
56+
- Added enhancement allowing to define RMIN and RMAX to be zero with the
57+
exception of forbidden two consecutive zero RMAX values.
58+
- Refactoring in constructor gained two new private methods for creation
59+
of trapezoidal and triangular side planes of G4BREPSolidPolyhedra.
60+
- Rewritten code for delta phi >= 2*PI case with full classification of
61+
possible cases.
62+
- Fixed sense of end planes.
63+
- Fixed delta phi < 2*PI case where some old code remained after bug
64+
fix #266.
65+
- Added new private method for creation of planar surfaces gained
66+
after code refactoring in constructor.
67+
- Fixed bug for problem report #354 by adding the code handling the
68+
cases where user supplies for the same z-section different RMIN or
69+
RMAX values.
70+
- Added more preconditions checks
71+
- Added code forbidding "teeth" in polyhedra.
72+
o G4ConvexHull.hh: moved initialisation of 'next' to constructor's body.
73+
- solids/CSG:
74+
o G4Sphere.cc: bug-fix in Inside() function. Fixes problem report #216.
75+
o G4Para.cc: fixed bug in G4Para::Inside() in calculation of xt,
76+
according to problem report #357.
77+
- solids/STEPinterface:
78+
o G4RepresentationRelationshipCreator.cc: fixed unsafe usage of
79+
'<' operator.
80+
81+
o Hadronic processes:
82+
------------------
83+
o Fixes in pre-equilibrium and de-excitation generator models.
84+
o Fixed bug in doppler broadening in neutron-transport model:
85+
- Fixed sign error in calculation of effective luminosity.
86+
o Stopping: trivial bug-fix in pi-absorption at rest.
87+
o Util:
88+
- Trivial bug-fix, affecting K-absorption at rest.
89+
- G4Nucleus: moved definition of constructors/destructor from header to
90+
source implementation file. Unresolved symbols were detected at link
91+
time on SUN-CC for static constants used to initialise members in
92+
inline constructors.
93+
o CHIPS model: fixed accuracy problem.
94+
o Optimised implementation in G4Fancy3DNucleus.cc to allow porting on
95+
WIN32-VC for optimised compilation.
96+
97+
o Interfaces:
98+
----------
99+
- Fixed for odd behavior of G4UIcsh in Windows systems.
100+
101+
o Materials:
102+
---------
103+
- Optimised implementation of GetIndex() for fIndexTable in G4Material,
104+
G4Element and G4Isotope.
105+
106+
o Particles:
107+
---------
108+
- Fixed bug in the decay table for G4KaonMinus.
109+
110+
o Track & Tracking:
111+
----------------
112+
- track:
113+
o Added G4Track::CopyTrackInfo().
114+
o Optimised G4ParticleChange::AddSecondary() to properly use touchable
115+
handles.
116+
o Fixed a bug of changing parent weight in
117+
G4ParticleChange::UpdateStepForAlongStep().
118+
o Optimised implementation in G4Track::GetVelocity().
119+
- tracking:
120+
o G4SteppingManager2.cc:
121+
- fix for extra steps when the ApplyCuts flag is set
122+
- G4SteppingManager.hh: changed scope for 'SizeOfSelectedDoItVector'
123+
to allow porting on WIN-VC compiler.
124+
o Fix in G4SteppingManager::SetInitialStep() for applyCuts.
125+
126+
o Visualization:
127+
-------------
128+
- HepRep: added check for missing hierarchy layers in HepRepXMLWriter.
129+
- Bug fix in modeling: removed Begin/EndPrimitives from G4HitsModel and
130+
G4TrajectoriesModel. This was causing nested calls to Begin/EndPrimitives
131+
(and thus to glNewList/EndList in OpenGL stored mode), since the
132+
trajectories and hits Draw methods themselves have Begin/EndPrimitives.
133+
134+
o Examples:
135+
--------
136+
- extended/electromagnetic/testem1,3,4,5:
137+
o Improvements in PrimaryGenerator and macros
138+
- novice/N03:
139+
o New macros for tutorials/exercises.
140+
141+
----------------------------------------------------------------------------
142+
143+
Technical Notes
144+
---------------
145+
146+
o This patch should be applied on top of "patch-01" for release 4.0.
147+
o Technical notes distributed for release 4.0 are also applicable and
148+
valid for this patch.
149+
150+
The code and rebuilt binary libraries for release 4.0 are available through
151+
our "Source Code" Web page:
152+
- see our <A href="http://cern.ch/geant4">Geant4 Home Page</A>.
153+
154+
Please refer to <A
155+
href="http://cern.ch/geant4/G4UsersDocuments/Overview/html/index.html">Geant4
156+
User Documentation</A> for further information about using Geant4.
157+

0 commit comments

Comments
 (0)