Skip to content

Commit 284546d

Browse files
committed
Import Geant4 4.0.2 source tree
1 parent 9458991 commit 284546d

File tree

345 files changed

+30187
-19096
lines changed

Some content is hidden

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

345 files changed

+30187
-19096
lines changed

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+

config/History

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$Id: History,v 1.177 2001/12/14 08:37:39 gcosmo Exp $
2-
$Name: geant4-04-00 $
1+
$Id: History,v 1.180 2002/02/07 10:18:32 gcosmo Exp $
2+
$Name: geant4-04-00-patch-02 $
33

44
-------------------------------------------------------------------
55

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

21+
07th February 2002 Gabriele Cosmo (config-V04-00-01)
22+
- liblist.c: added flags __CYGWIN__ and __CYGWIN32__ for triggering proper
23+
parsing algorithm on Windows systems, also on most recent versions of Cygwin.
24+
- WIN32-VC.gmk: use g77 instead of f77 as default fortran compiler.
25+
26+
25th January 2002 Gabriele Cosmo (config-V04-00-00)
27+
- sys/HP-aCC.gmk: removed include path to global/management/include/std/wrappers,
28+
which was unused and not neccessary.
29+
2130
10th December 2001 Gabriele Cosmo (config-V03-02-15)
2231
- architecture.gmk:
2332
o updated list of supported compilers

config/liblist.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: liblist.c,v 1.9 1999/11/19 18:01:40 morita Exp $ */
1+
/* $Id: liblist.c,v 1.11 2002/02/06 18:44:36 radoone Exp $ */
22

33
/*
44
Given a "libname.map" file on standard input and a list or directory
@@ -121,7 +121,7 @@ int main (int argc, char** argv) {
121121
int i,optl=0,swapping,c,rargc;
122122
FILE *fp;
123123

124-
#ifdef _WIN32
124+
#if defined ( _WIN32 ) || defined ( __CYGWIN__ ) || defined ( __CYGWIN32__ )
125125
char *ntg4tmp=0,*ntg4tmp1=0;
126126
int nti;
127127
#endif
@@ -263,7 +263,7 @@ int main (int argc, char** argv) {
263263

264264
if(optl)fprintf(stderr," Reading dependency files...\n");
265265

266-
#ifdef _WIN32
266+
#if defined ( _WIN32 ) || defined ( __CYGWIN__ ) || defined ( __CYGWIN32__ )
267267
ntg4tmp=getenv("G4TMP");
268268
if ( ! ntg4tmp )
269269
{
@@ -278,7 +278,7 @@ int main (int argc, char** argv) {
278278
fp=fopen(rargv[i],"r");
279279
fgets(buffer,BUFSIZE,fp);
280280

281-
#ifdef _WIN32
281+
#if defined ( _WIN32 ) || defined ( __CYGWIN__ ) || defined ( __CYGWIN32__ )
282282
ptr=strchr(ntg4tmp1,':');
283283
if ( ptr ) *(ptr+1)='\0';
284284

@@ -362,7 +362,7 @@ int main (int argc, char** argv) {
362362
fgets(buffer,BUFSIZE,fp);
363363
bufferPtr=buffer;
364364

365-
#ifdef _WIN32
365+
#if defined ( _WIN32 ) || defined ( __CYGWIN__ ) || defined ( __CYGWIN32__ )
366366
while ( ptr=strchr(buffer,'\\') ) *ptr='/';
367367

368368
while (ntg4tmp1 && (ptr=strstr(buffer,ntg4tmp1)) )
@@ -376,7 +376,7 @@ int main (int argc, char** argv) {
376376
}
377377
}
378378

379-
#ifdef _WIN32
379+
#if defined ( _WIN32 ) || defined ( __CYGWIN__ ) || defined ( __CYGWIN32__ )
380380
free(ntg4tmp1);
381381
#endif
382382

config/sys/HP-aCC.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ ifeq ($(G4SYSTEM),HP-aCC)
3939
OGLLIBS += -L/opt/graphics/common/lib -lXwindow -lhpgfx -lXhp11 -ldld
4040
endif
4141
CPPFLAGS += -DG4NOT_ISO_DELETES
42-
CPPFLAGS += -I$(G4BASE)/global/management/include/g4std/wrappers/$(G4SYSTEM)
4342
ifdef G4USE_OSPACE
4443
CPPFLAGS += -DOS_HPUX_10_20 -DOS_NEW_CHECK -DOS_STL_ASSERT
4544
CPPFLAGS += -DOS_NO_WSTRING -DOS_NO_ALLOCATORS -D__HPACC_NOEH

config/sys/WIN32-VC.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ifeq ($(G4SYSTEM),WIN32-VC)
4040

4141
AR := LIB
4242
ECHO := echo -e
43-
FC := f77
43+
FC := g77
4444
# FCLIBS := -lf2c
4545
ifndef OGLFLAGS
4646
OGLFLAGS :=

examples/extended/electromagnetic/TestEm1/History

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Id: History,v 1.15 2001/11/29 11:28:06 maire Exp $
1+
$Id: History,v 1.17 2002/02/06 14:06:05 maire Exp $
22
-------------------------------------------------------------------
33

44
=========================================================
@@ -14,6 +14,14 @@ track of all tags.
1414
----------------------------------------------------------
1515
* Reverse chronological order (last date on top), please *
1616
----------------------------------------------------------
17+
06-02-02 mma (testem1-V04-00-00)
18+
19+
06-12-01 mma
20+
- In PrimaryGeneratorAction, possibility to fix the vertex at front face,
21+
and to randomize the beam spot.
22+
- command /gun/rndm in PrimaryGeneratorMessenger
23+
- similar functionality in geant3: gukine.F
24+
- change output precision in RunAction (+uglast.F)
1725

1826
29-11-01 mma (testem1-V03-02-02)
1927
- EventAction: DrawTrack "none"

examples/extended/electromagnetic/TestEm1/README

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Id: README,v 1.4 2001/10/26 12:51:21 maire Exp $
1+
$Id: README,v 1.5 2001/12/07 11:49:08 maire Exp $
22
-------------------------------------------------------------------
33

44
=========================================================
@@ -42,7 +42,11 @@ $Id: README,v 1.4 2001/10/26 12:51:21 maire Exp $
4242
in the PrimaryGeneratorAction class, and can be changed via the G4
4343
build-in commands of ParticleGun class (see the macros provided with
4444
this example).
45-
45+
46+
In addition one can choose randomly the impact point of the incident
47+
particle. The corresponding interactive command is built in
48+
PrimaryGeneratorMessenger class.
49+
4650
A RUN is a set of events.
4751

4852

examples/extended/electromagnetic/TestEm1/TestEm1.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
// ********************************************************************
2222
//
2323
//
24-
// $Id: TestEm1.cc,v 1.7 2001/11/29 11:28:06 maire Exp $
25-
// GEANT4 tag $Name: geant4-04-00 $
24+
// $Id: TestEm1.cc,v 1.8 2001/12/07 11:49:08 maire Exp $
25+
// GEANT4 tag $Name: geant4-04-00-patch-02 $
2626
//
2727
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
2828
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -68,7 +68,7 @@ int main(int argc,char** argv) {
6868
Em1DetectorConstruction* det;
6969
runManager->SetUserInitialization(det = new Em1DetectorConstruction);
7070
runManager->SetUserInitialization(new Em1PhysicsList(det));
71-
runManager->SetUserAction(new Em1PrimaryGeneratorAction);
71+
runManager->SetUserAction(new Em1PrimaryGeneratorAction(det));
7272

7373
#ifdef Em1NoOptimize
7474
#ifdef G4VIS_USE

examples/extended/electromagnetic/TestEm1/TestEm1.out

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**********************************************
2-
Geant4 version $Name: geant4-04-00-patch-01 $
3-
(31-Jan-2002)
2+
Geant4 version $Name: geant4-04-00-patch-02 $
3+
(28-Feb-2002)
44
Copyright : Geant4 Collaboration
55
**********************************************
66
Visualization Manager instantiating...
@@ -22,7 +22,7 @@ Current available graphics systems are:
2222
#
2323
/run/initialize
2424

25-
***** Table : Nb of materials = 9 *****
25+
***** Table : Nb of materials = 10 *****
2626

2727
Material: Air density: 1.290 mg/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 285.161 m
2828
---> Element: Nitrogen N Z = 7.0 N = 14.0 A = 14.01 g/mole fractionMass: 70.00 % Abundance 72.71 %
@@ -44,6 +44,9 @@ Current available graphics systems are:
4444
Material: Silicon density: 2.330 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 9.368 cm
4545
---> Element: Silicon Z = 14.0 N = 28.1 A = 28.09 g/mole fractionMass: 100.00 % Abundance 100.00 %
4646

47+
Material: Germanium density: 5.323 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 2.301 cm
48+
---> Element: Germanium Z = 32.0 N = 72.6 A = 72.61 g/mole fractionMass: 100.00 % Abundance 100.00 %
49+
4750
Material: Iron density: 7.870 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 1.759 cm
4851
---> Element: Iron Z = 26.0 N = 55.9 A = 55.85 g/mole fractionMass: 100.00 % Abundance 100.00 %
4952

@@ -125,6 +128,7 @@ Cut in range
125128
liquidArgon 2.2 mm 6.05 mum
126129
Aluminium 2.2 mm 6.05 mum
127130
Silicon 2.2 mm 6.05 mum
131+
Germanium 2.2 mm 6.05 mum
128132
Iron 2.2 mm 6.05 mum
129133
Lead 2.2 mm 6.05 mum
130134
Uranium 2.2 mm 6.05 mum
@@ -135,6 +139,7 @@ Cut in energy
135139
liquidArgon 9.08 keV 3.98 keV
136140
Aluminium 9.99 keV 9.97 keV
137141
Silicon 10 keV 8.45 keV
142+
Germanium 31.6 keV 32.7 keV
138143
Iron 31.1 keV 43.3 keV
139144
Lead 124 keV 42.8 keV
140145
Uranium 143 keV 53.4 keV
@@ -164,14 +169,14 @@ Start Run processing.
164169
Run terminated.
165170
Run Summary
166171
Number of events processed : 100
167-
User=32s Real=62s Sys=2.3s
172+
User=34s Real=37s Sys=2.3s
168173

169-
nb tracks/event neutral: 27.29 charged: 692.97
170-
nb steps/event neutral: 145.49 charged: 1331.63
174+
nb tracks/event neutral: 27.2900 charged: 692.9700
175+
nb steps/event neutral: 145.4900 charged: 1331.6300
171176

172177
nb of process calls per event:
173-
eIoni eBrem compt phot conv annihil
174-
1305.51 24.92 118.20 26.09 1.20 1.20
178+
eIoni eBrem compt phot conv annihil
179+
1305.5100 24.9200 118.2000 26.0900 1.2000 1.2000
175180

176181
--------- Ranecu engine status ---------
177182
Initial seed (index) = 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
LIST
2+
C
3+
C Photo electric; gamma 1 MeV
4+
C
5+
CALOR 10 (Germanium) 1. (size) 0. (field)
6+
TRIG 100000
7+
KINE 1 (gamma) 0.001 (Ekine) 1. (xBeam) 0.8 (rBeam)
8+
DEBUG 10 5 1000
9+
SWIT 0 (draw) 0 (save)
10+
CUTS 10.e-6 (cutgam) 10.e-6 (cutele) 3*10.e-3 (cutneu/had/muo)
11+
2*10.e+3 (bcute/m) 2*10.e+3 (dcute/m) 10.e-3 (ppcutm)
12+
ABAN 0
13+
PHOT 1
14+
COMP 0
15+
PAIR 0
16+
BREM 0
17+
MULS 1
18+
LOSS 1
19+
TIME 2=1.

0 commit comments

Comments
 (0)