Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
+37 -28
View File
@@ -41,6 +41,10 @@
- radioactive decay hadronic processes which path is defined via
the G4RADIOACTIVEDATA envirnoment variable.
See more on installation of the datasets in
<a href="http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch03s03.html">
Geant4 Installation Guide, Chapter 3.3: Note On Geant4 Datasets </a>.
\section B3_s3 PRIMARY GENERATOR
The default particle beam is an ion (F18), at rest, randomly distributed
@@ -66,9 +70,9 @@
\section B3_s5 STACKING ACTION
Beta decay of Fluor generates a neutrino. One wishes do not track this
neutrino. Therefore one kills it immediately, before created particles
will put in a stack.
Beta decay of Fluor generates a neutrino. One wishes not to track this
neutrino; therefore one kills it immediately, before created particles
are put in a stack.
The function B3StackingAction::ClassifyNewTrack() is invoked by G4 kernel
each time a new particle is created.
@@ -82,20 +86,35 @@ The following paragraphs are common to all basic examples
in the main () function in exampleB3.cc.
The initialisation of the drawing is done via a set of /vis/ commands
in the macro vis.mac. This macro is automatically read from
the main () function when the example is used in interactive running mode.
the main function when the example is used in interactive running mode.
By default, vis.mac opens an OpenGL viewer.
The user can switch to other graphics systems by commenting out this line
By default, vis.mac opens an OpenGL viewer (/vis/open OGL).
The user can change the initial viewer by commenting out this line
and instead uncommenting one of the other /vis/open statements, such as
HepRepFile or DAWNFILE (which produce files that can be viewed with the
HepRApp and DAWN viewers, respectively).
HepRApp and DAWN viewers, respectively). Note that one can always
open new viewers at any time from the command line. For example, if
you already have a view in, say, an OpenGL window with a name
"viewer-0", then
\verbatim
/vis/open DAWNFILE
\endverbatim
then to get the same view
\verbatim
/vis/viewer/copyView viewer-0
\endverbatim
or to get the same view *plus* scene-modifications
\verbatim
/vis/viewer/set/all viewer-0
\endverbatim
then to see the result
\verbatim
/vis/viewer/flush
\endverbatim
The DAWNFILE, HepRepFile drivers are always available
(since they require no external libraries), but the OGL driver requires:
-# the visualisation & interfaces categories have been compiled
with the environment variable G4VIS_BUILD_OPENGLX_DRIVER.
-# exampleB3.cc has been compiled with G4VIS_USE_OPENGLX.
(This is best done through Configure or CMake.)
(since they require no external libraries), but the OGL driver requires
that the Geant4 libraries have been built with the OpenGL option.
For more information on visualization, including information on how to
install and run DAWN, OpenGL and HepRApp, see the visualization tutorials,
@@ -110,27 +129,17 @@ The following paragraphs are common to all basic examples
The tracks are automatically drawn at the end of each event, accumulated
for all events and erased at the beginning of the next run.
\section B3_B USER INTERFACES
The user command interface is set via the G4UIExecutive class
in the the main () function in exampleB3.cc
in the main () function in exampleB3.cc
The selection of the user command interface is then done automatically
according to the Geant4 configuration. The default command interface,
called G4UIterminal, is done via a standard G4cin/G4cout.
On Linux and Sun-cc one can use a smarter command interface G4UItcsh.
It is enough to set the environment variable G4UI_USE_TCSH before compiling
exampleB3.cc
according to the Geant4 configuration or it can be done explicitly via
the third argument of the G4UIExecutive constructor (see exampleB4a.cc).
\section B3_C HOW TO RUN
- compile and link to generate an executable
\verbatim
% cd B3
% make
\endverbatim
- execute exampleB3 in the 'interactive mode' with visualization
- Execute exampleB3 in the 'interactive mode' with visualization
\verbatim
% exampleB3
and type in the commands from run1.mac line by line:
@@ -147,8 +156,8 @@ Idle> /control/execute run1.mac
Idle> exit
\endverbatim
- execute exampleB3 in the 'batch' mode from macro files
(without visualization)
- Execute exampleB3 in the 'batch' mode from macro files
(without visualization)
\verbatim
% exampleB3 run2.mac
% exampleB3 exampleB3.in > exampleB3.out
+4 -14
View File
@@ -15,23 +15,13 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
29/11/11 B.Morgan (exbasic-V09-04-05)
- Fixed CMakeLists.txt to setup UI and VIS as needed, and copy all macros
to build directory so executable is runnable directly.
23/11/11 I. Hrivnacova (exbasic-V09-04-04)
- Fixed the example name in the top comment line in init.mac and
init_vis.mac
21/11/11 I. Hrivnacova (exbasic-V09-04-03)
21/11/11 I. Hrivnacova
- Improved vis.mac
- Removed alternative detector construction class
18/11/11 I. Hrivnacova (exbasic-V09-04-02)
- Fixes in macros and README files
14/11/11 I. Hrivnacova (exbasic-V09-04-00)
- The first tagged version of the new B3 example.
14/11/11 I. Hrivnacova
- The first tagged version of the new B3 example
(tagged in basic).
11-11-11 (mma)
- EventAction: printModulo 10000
+27 -24
View File
@@ -43,6 +43,10 @@ $Id$
the G4LEDATA envirnoment variable
- radioactive decay hadronic processes which path is defined via
the G4RADIOACTIVEDATA envirnoment variable.
See more on installation of the datasets in Geant4 Installation Guide,
Chapter 3.3: Note On Geant4 Datasets:
http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch03s03.html
3- PRIMARY GENERATOR
@@ -69,9 +73,9 @@ $Id$
5- STACKING ACTION
Beta decay of Fluor generates a neutrino. One wishes do not track this
neutrino. Therefore one kills it immediately, before created particles
will put in a stack.
Beta decay of Fluor generates a neutrino. One wishes not to track this
neutrino; therefore one kills it immediately, before created particles
are put in a stack.
The function B3StackingAction::ClassifyNewTrack() is invoked by G4 kernel
each time a new particle is created.
@@ -85,18 +89,25 @@ $Id$
in the macro vis.mac. This macro is automatically read from
the main function when the example is used in interactive running mode.
By default, vis.mac opens an OpenGL viewer.
The user can switch to other graphics systems by commenting out this line
By default, vis.mac opens an OpenGL viewer (/vis/open OGL).
The user can change the initial viewer by commenting out this line
and instead uncommenting one of the other /vis/open statements, such as
HepRepFile or DAWNFILE (which produce files that can be viewed with the
HepRApp and DAWN viewers, respectively).
HepRApp and DAWN viewers, respectively). Note that one can always
open new viewers at any time from the command line. For example, if
you already have a view in, say, an OpenGL window with a name
"viewer-0", then
/vis/open DAWNFILE
then to get the same view
/vis/viewer/copyView viewer-0
or to get the same view *plus* scene-modifications
/vis/viewer/set/all viewer-0
then to see the result
/vis/viewer/flush
The DAWNFILE, HepRepFile drivers are always available
(since they require no external libraries), but the OGL driver requires:
1- the visualisation & interfaces categories have been compiled
with the environment variable G4VIS_BUILD_OPENGLX_DRIVER.
2- exampleB3.cc has been compiled with G4VIS_USE_OPENGLX.
(This is best done through Configure or CMake.)
(since they require no external libraries), but the OGL driver requires
that the Geant4 libraries have been built with the OpenGL option.
For more information on visualization, including information on how to
install and run DAWN, OpenGL and HepRApp, see the visualization tutorials,
@@ -110,22 +121,14 @@ $Id$
B- USER INTERFACES
The user command interface is set via the G4UIExecutive class
in the the main() function in exampleB3.cc
in the main() function in exampleB3.cc
The selection of the user command interface is then done automatically
according to the Geant4 configuration. The default command interface,
called G4UIterminal, is done via a standard G4cin/G4cout.
On Linux and Sun-cc one can use a smarter command interface G4UItcsh.
It is enough to set the environment variable G4UI_USE_TCSH before compiling
exampleB3.cc
according to the Geant4 configuration or it can be done explicitly via
the third argument of the G4UIExecutive constructor (see exampleB4a.cc).
C- HOW TO RUN
- compile and link to generate an executable
% cd B3
% make
- execute exampleB3 in the 'interactive mode' with visualization
- Execute exampleB3 in the 'interactive mode' with visualization
% exampleB3
and type in the commands from run1.mac line by line:
Idle> /control/verbose 2
@@ -138,7 +141,7 @@ C- HOW TO RUN
....
Idle> exit
- execute exampleB3 in the 'batch' mode from macro files
- Execute exampleB3 in the 'batch' mode from macro files
(without visualization)
% exampleB3 run2.mac
% exampleB3 exampleB3.in > exampleB3.out
+109 -31
View File
@@ -1,6 +1,10 @@
############################################
!!! WARNING - FPE detection is activated !!!
############################################
*************************************************************
Geant4 version Name: geant4-09-04-ref-10 (4-November-2011)
Geant4 version Name: geant4-09-06-ref-00 (30-November-2012)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
@@ -53,26 +57,96 @@ Checking overlaps for volume Patient ... OK!
***** Table : Nb of materials = 3 *****
Material: Lu2SiO5 density: 7.400 g/cm3 RadL: 1.143 cm Nucl.Int.Length: 20.922 cm Imean: 418.807 eV
---> Element: Lu (Lu) Z = 71.0 N = 175.0 A = 174.97 g/mole ElmMassFraction: 76.40 % ElmAbundance 25.00 %
---> Element: Si (Si) Z = 14.0 N = 28.1 A = 28.09 g/mole ElmMassFraction: 6.13 % ElmAbundance 12.50 %
---> Element: O (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 17.47 % ElmAbundance 62.50 %
---> Element: Lu (Lu) Z = 71.0 N = 175.0 A = 174.97 g/mole
---> Isotope: Lu175 Z = 71 N = 175 A = 174.94 g/mole abundance: 97.41 %
---> Isotope: Lu176 Z = 71 N = 176 A = 175.94 g/mole abundance: 2.59 %
ElmMassFraction: 76.40 % ElmAbundance 25.00 %
---> Element: Si (Si) Z = 14.0 N = 28.1 A = 28.09 g/mole
---> Isotope: Si28 Z = 14 N = 28 A = 27.98 g/mole abundance: 92.23 %
---> Isotope: Si29 Z = 14 N = 29 A = 28.98 g/mole abundance: 4.68 %
---> Isotope: Si30 Z = 14 N = 30 A = 29.97 g/mole abundance: 3.09 %
ElmMassFraction: 6.13 % ElmAbundance 12.50 %
---> Element: O (O) Z = 8.0 N = 16.0 A = 16.00 g/mole
---> Isotope: O16 Z = 8 N = 16 A = 15.99 g/mole abundance: 99.76 %
---> Isotope: O17 Z = 8 N = 17 A = 17.00 g/mole abundance: 0.04 %
---> Isotope: O18 Z = 8 N = 18 A = 18.00 g/mole abundance: 0.20 %
ElmMassFraction: 17.47 % ElmAbundance 62.50 %
Material: G4_AIR density: 1.205 mg/cm3 RadL: 303.921 m Nucl.Int.Length: 710.261 m Imean: 85.700 eV temperature: 273.15 K pressure: 1.00 atm
---> Element: C (C) Z = 6.0 N = 12.0 A = 12.01 g/mole ElmMassFraction: 0.01 % ElmAbundance 0.02 %
---> Element: N (N) Z = 7.0 N = 14.0 A = 14.01 g/mole ElmMassFraction: 75.53 % ElmAbundance 78.44 %
---> Element: O (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 23.18 % ElmAbundance 21.07 %
---> Element: Ar (Ar) Z = 18.0 N = 39.9 A = 39.95 g/mole ElmMassFraction: 1.28 % ElmAbundance 0.47 %
---> Element: C (C) Z = 6.0 N = 12.0 A = 12.01 g/mole
---> Isotope: C12 Z = 6 N = 12 A = 12.00 g/mole abundance: 98.93 %
---> Isotope: C13 Z = 6 N = 13 A = 13.00 g/mole abundance: 1.07 %
ElmMassFraction: 0.01 % ElmAbundance 0.02 %
---> Element: N (N) Z = 7.0 N = 14.0 A = 14.01 g/mole
---> Isotope: N14 Z = 7 N = 14 A = 14.00 g/mole abundance: 99.63 %
---> Isotope: N15 Z = 7 N = 15 A = 15.00 g/mole abundance: 0.37 %
ElmMassFraction: 75.53 % ElmAbundance 78.44 %
---> Element: O (O) Z = 8.0 N = 16.0 A = 16.00 g/mole
---> Isotope: O16 Z = 8 N = 16 A = 15.99 g/mole abundance: 99.76 %
---> Isotope: O17 Z = 8 N = 17 A = 17.00 g/mole abundance: 0.04 %
---> Isotope: O18 Z = 8 N = 18 A = 18.00 g/mole abundance: 0.20 %
ElmMassFraction: 23.18 % ElmAbundance 21.07 %
---> Element: Ar (Ar) Z = 18.0 N = 39.9 A = 39.95 g/mole
---> Isotope: Ar36 Z = 18 N = 36 A = 35.97 g/mole abundance: 0.34 %
---> Isotope: Ar38 Z = 18 N = 38 A = 37.96 g/mole abundance: 0.06 %
---> Isotope: Ar40 Z = 18 N = 40 A = 39.96 g/mole abundance: 99.60 %
ElmMassFraction: 1.28 % ElmAbundance 0.47 %
Material: G4_BRAIN_ICRP density: 1.040 g/cm3 RadL: 35.403 cm Nucl.Int.Length: 72.293 cm Imean: 73.300 eV
---> Element: H (H) Z = 1.0 N = 1.0 A = 1.01 g/mole ElmMassFraction: 10.70 % ElmAbundance 64.44 %
---> Element: C (C) Z = 6.0 N = 12.0 A = 12.01 g/mole ElmMassFraction: 14.50 % ElmAbundance 7.33 %
---> Element: N (N) Z = 7.0 N = 14.0 A = 14.01 g/mole ElmMassFraction: 2.20 % ElmAbundance 0.95 %
---> Element: O (O) Z = 8.0 N = 16.0 A = 16.00 g/mole ElmMassFraction: 71.20 % ElmAbundance 27.01 %
---> Element: Na (Na) Z = 11.0 N = 23.0 A = 22.99 g/mole ElmMassFraction: 0.20 % ElmAbundance 0.05 %
---> Element: P (P) Z = 15.0 N = 31.0 A = 30.97 g/mole ElmMassFraction: 0.40 % ElmAbundance 0.08 %
---> Element: S (S) Z = 16.0 N = 32.1 A = 32.07 g/mole ElmMassFraction: 0.20 % ElmAbundance 0.04 %
---> Element: Cl (Cl) Z = 17.0 N = 35.5 A = 35.45 g/mole ElmMassFraction: 0.30 % ElmAbundance 0.05 %
---> Element: K (K) Z = 19.0 N = 39.1 A = 39.10 g/mole ElmMassFraction: 0.30 % ElmAbundance 0.05 %
---> Element: H (H) Z = 1.0 N = 1.0 A = 1.01 g/mole
---> Isotope: H1 Z = 1 N = 1 A = 1.01 g/mole abundance: 99.99 %
---> Isotope: H2 Z = 1 N = 2 A = 2.01 g/mole abundance: 0.01 %
ElmMassFraction: 10.70 % ElmAbundance 64.44 %
---> Element: C (C) Z = 6.0 N = 12.0 A = 12.01 g/mole
---> Isotope: C12 Z = 6 N = 12 A = 12.00 g/mole abundance: 98.93 %
---> Isotope: C13 Z = 6 N = 13 A = 13.00 g/mole abundance: 1.07 %
ElmMassFraction: 14.50 % ElmAbundance 7.33 %
---> Element: N (N) Z = 7.0 N = 14.0 A = 14.01 g/mole
---> Isotope: N14 Z = 7 N = 14 A = 14.00 g/mole abundance: 99.63 %
---> Isotope: N15 Z = 7 N = 15 A = 15.00 g/mole abundance: 0.37 %
ElmMassFraction: 2.20 % ElmAbundance 0.95 %
---> Element: O (O) Z = 8.0 N = 16.0 A = 16.00 g/mole
---> Isotope: O16 Z = 8 N = 16 A = 15.99 g/mole abundance: 99.76 %
---> Isotope: O17 Z = 8 N = 17 A = 17.00 g/mole abundance: 0.04 %
---> Isotope: O18 Z = 8 N = 18 A = 18.00 g/mole abundance: 0.20 %
ElmMassFraction: 71.20 % ElmAbundance 27.01 %
---> Element: Na (Na) Z = 11.0 N = 23.0 A = 22.99 g/mole
---> Isotope: Na23 Z = 11 N = 23 A = 22.99 g/mole abundance: 100.00 %
ElmMassFraction: 0.20 % ElmAbundance 0.05 %
---> Element: P (P) Z = 15.0 N = 31.0 A = 30.97 g/mole
---> Isotope: P31 Z = 15 N = 31 A = 30.97 g/mole abundance: 100.00 %
ElmMassFraction: 0.40 % ElmAbundance 0.08 %
---> Element: S (S) Z = 16.0 N = 32.1 A = 32.07 g/mole
---> Isotope: S32 Z = 16 N = 32 A = 31.97 g/mole abundance: 94.93 %
---> Isotope: S33 Z = 16 N = 33 A = 32.97 g/mole abundance: 0.76 %
---> Isotope: S34 Z = 16 N = 34 A = 33.97 g/mole abundance: 4.29 %
---> Isotope: S36 Z = 16 N = 36 A = 35.97 g/mole abundance: 0.02 %
ElmMassFraction: 0.20 % ElmAbundance 0.04 %
---> Element: Cl (Cl) Z = 17.0 N = 35.5 A = 35.45 g/mole
---> Isotope: Cl35 Z = 17 N = 35 A = 34.97 g/mole abundance: 75.78 %
---> Isotope: Cl37 Z = 17 N = 37 A = 36.97 g/mole abundance: 24.22 %
ElmMassFraction: 0.30 % ElmAbundance 0.05 %
---> Element: K (K) Z = 19.0 N = 39.1 A = 39.10 g/mole
---> Isotope: K39 Z = 19 N = 39 A = 38.96 g/mole abundance: 93.26 %
---> Isotope: K40 Z = 19 N = 40 A = 39.96 g/mole abundance: 0.01 %
---> Isotope: K41 Z = 19 N = 41 A = 40.96 g/mole abundance: 6.73 %
ElmMassFraction: 0.30 % ElmAbundance 0.05 %
G4SDManager::AddNewCollection : the collection <crystal/edep> is registered at 1
@@ -89,22 +163,17 @@ Current available graphics systems are:
DAWNFILE (DAWNFILE)
G4HepRep (HepRepXML)
G4HepRepFile (HepRepFile)
OpenGLImmediateQt (OGLI, OGLIQt)
OpenGLImmediateX (OGLIX)
OpenGLImmediateXm (OGLIXm, OGLI_FALLBACK, OGLIQt_FALLBACK)
OpenGLStoredQt (OGL, OGLS, OGLSQt)
OpenGLStoredX (OGLSX)
OpenGLStoredXm (OGLSXm, OGL_FALLBACK, OGLS_FALLBACK, OGLSQt_FALLBACK)
RayTracer (RayTracer)
RayTracerX (RayTracerX)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
FukuiRenderer (DAWN)
OpenGLStoredX (OGL)
OpenGLImmediateX (OGLI)
OpenGLStoredX (OGLS)
OpenGLImmediateX (OGLIX)
OpenGLStoredX (OGLSX)
OpenGLImmediateXm (OGLIXm)
OpenGLStoredXm (OGLSXm)
OpenInventorXt (OI)
OpenInventorXt (OIX)
VRML1 (VRML1)
VRML2 (VRML2)
Registering model factories...
@@ -122,6 +191,15 @@ Registered filter factories:
originVolumeFilter
attributeFilter
You have successfully registered the following user vis actions.
Run Duration User Vis Actions: none
End of Event User Vis Actions: none
End of Run User Vis Actions: none
Some /vis commands (optionally) take a string to specify colour.
Available colours:
black, blue, brown, cyan, gray, green, grey, magenta, red, white, yellow
#
/run/beamOn 10000
### Run 0 start.
@@ -129,8 +207,8 @@ Registered filter factories:
---> Begin of event: 0
--------------------End of Run------------------------------
The run was 10000 F18[0.0]; Nb of 'good' e+ annihilations: 1278
Total dose in patient : 288.606 picoGy
The run was 10000 F18[0.0] Nb of 'good' e+ annihilations: 1266
Total dose in patient : 310.47 picoGy
------------------------------------------------------------
Graphics systems deleted.
@@ -43,6 +43,8 @@
#include "G4PSEnergyDeposit.hh"
#include "G4PSDoseDeposit.hh"
#include "G4VisAttributes.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -139,7 +141,7 @@ G4VPhysicalVolume* B3DetectorConstruction::Construct()
//
// define crystal
//
G4double gap = 0.5*mm; //a gap for wrapping
G4double gap = 0.5*mm; //a gap for wrapping
G4double dX = cryst_dX - gap, dY = cryst_dY - gap;
G4Box* solidCryst = new G4Box("crystal", dX/2, dY/2, cryst_dZ/2);
+1
View File
@@ -39,6 +39,7 @@
#include "G4HCofThisEvent.hh"
#include "G4THitsMap.hh"
#include "G4UnitsTable.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -36,6 +36,7 @@
#include "G4ParticleTable.hh"
#include "G4ParticleDefinition.hh"
#include "G4ChargedGeantino.hh"
#include "G4SystemOfUnits.hh"
#include "Randomize.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+1
View File
@@ -34,6 +34,7 @@
#include "G4Run.hh"
#include "G4RunManager.hh"
#include "G4UnitsTable.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......