Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -144,6 +144,11 @@ The following paragraphs are common to all basic examples
|
||||
ls or browse the available UI commands in the Application
|
||||
Developers Guide, Section 7.1.
|
||||
|
||||
Since 11.1, the TSG visualization driver can also produce the "offscrean"
|
||||
file output in png, jpeg, gl2ps formats without drawing on the screen.
|
||||
It can be controlled via UI commands provided in '/vis/tsg' which are
|
||||
demonstrated in the tsg_offscreen.mac macro in example B5.
|
||||
|
||||
For more information on visualization, including information on how to
|
||||
install and run DAWN, OpenGL and HepRApp, see the visualization tutorials,
|
||||
for example,\n
|
||||
@@ -162,10 +167,16 @@ The following paragraphs are common to all basic examples
|
||||
|
||||
The user command interface is set via the G4UIExecutive class
|
||||
in the main() function in exampleB1.cc
|
||||
|
||||
The selection of the user command interface is then done automatically
|
||||
according to the Geant4 configuration or it can be done explicitly via
|
||||
the third argument of the G4UIExecutive constructor (see exampleB4a.cc).
|
||||
|
||||
The gui.mac macros are provided in examples B2, B4 and B5. This macro
|
||||
is automatically executed if Geant4 is built with any GUI session.
|
||||
It is also possible to customise the icons menu bar which is
|
||||
demonstrated in the icons.mac macro in example B5.
|
||||
|
||||
\section B1_C HOW TO RUN
|
||||
|
||||
- Execute exampleB1 in the 'interactive mode' with visualization
|
||||
|
||||
@@ -1,26 +1,14 @@
|
||||
#----------------------------------------------------------------------------
|
||||
# Setup the project
|
||||
#
|
||||
cmake_minimum_required(VERSION 3.16...3.27)
|
||||
project(B1)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Find Geant4 package, activating all available UI and Vis drivers by default
|
||||
# You can set WITH_GEANT4_UIVIS to OFF via the command line or ccmake/cmake-gui
|
||||
# to build a batch mode only executable
|
||||
# See the documentation for a guide on how to enable/disable specific components
|
||||
#
|
||||
option(WITH_GEANT4_UIVIS "Build example with Geant4 UI and Vis drivers" ON)
|
||||
if(WITH_GEANT4_UIVIS)
|
||||
find_package(Geant4 REQUIRED ui_all vis_all)
|
||||
else()
|
||||
find_package(Geant4 REQUIRED)
|
||||
endif()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Setup Geant4 include directories and compile definitions
|
||||
# Setup include directory for this project
|
||||
#
|
||||
include(${Geant4_USE_FILE})
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
find_package(Geant4 REQUIRED ui_all vis_all)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Locate sources and headers for this project
|
||||
@@ -30,10 +18,11 @@ file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc)
|
||||
file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the executable, and link it to the Geant4 libraries
|
||||
# Add the executable, use our local headers, and link it to the Geant4 libraries
|
||||
#
|
||||
add_executable(exampleB1 exampleB1.cc ${sources} ${headers})
|
||||
target_link_libraries(exampleB1 ${Geant4_LIBRARIES})
|
||||
target_include_directories(exampleB1 PRIVATE include)
|
||||
target_link_libraries(exampleB1 PRIVATE ${Geant4_LIBRARIES})
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Copy all scripts to the build directory, i.e. the directory in which we
|
||||
@@ -56,14 +45,3 @@ foreach(_script ${EXAMPLEB1_SCRIPTS})
|
||||
COPYONLY
|
||||
)
|
||||
endforeach()
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# For internal Geant4 use - but has no effect if you build this
|
||||
# example standalone
|
||||
#
|
||||
add_custom_target(B1 DEPENDS exampleB1)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
|
||||
#
|
||||
install(TARGETS exampleB1 DESTINATION bin)
|
||||
|
||||
@@ -5,6 +5,10 @@ which **must** added in reverse chronological order (newest at the top). It must
|
||||
be used as a substitute for writing good git commit messages!
|
||||
|
||||
|
||||
## 2024-08-12 I. Hrivnacova (exampleB1-V11-02-00)
|
||||
- Updated for changes in accumulables:
|
||||
use new "Register" method with shorter name
|
||||
|
||||
## 2023-11-14 I. Hrivnacova (exampleB1-V11-01-03)
|
||||
- Fixes for Doxygen:
|
||||
Move class description comments after namespace
|
||||
|
||||
@@ -132,6 +132,11 @@
|
||||
ls or browse the available UI commands in the Application
|
||||
Developers Guide, Section 7.1.
|
||||
|
||||
Since 11.1, the TSG visualization driver can also produce the "offscrean"
|
||||
file output in png, jpeg, gl2ps formats without drawing on the screen.
|
||||
It can be controlled via UI commands provided in '/vis/tsg' which are
|
||||
demonstrated in the tsg_offscreen.mac macro in example B5.
|
||||
|
||||
For more information on visualization, including information on how to
|
||||
install and run DAWN, OpenGL and HepRApp, see the visualization tutorials,
|
||||
for example,
|
||||
@@ -145,10 +150,16 @@
|
||||
|
||||
The user command interface is set via the G4UIExecutive class
|
||||
in the main() function in exampleB1.cc
|
||||
|
||||
The selection of the user command interface is then done automatically
|
||||
according to the Geant4 configuration or it can be done explicitly via
|
||||
the third argument of the G4UIExecutive constructor (see exampleB4a.cc).
|
||||
|
||||
The gui.mac macros are provided in examples B2, B4 and B5. This macro
|
||||
is automatically executed if Geant4 is built with any GUI session.
|
||||
It is also possible to customise the icons menu bar which is
|
||||
demonstrated in the icons.mac macro in example B5.
|
||||
|
||||
C- HOW TO RUN
|
||||
|
||||
- Execute exampleB1 in the 'interactive mode' with visualization:
|
||||
|
||||
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
|
||||
|
||||
|
||||
**************************************************************
|
||||
Geant4 version Name: geant4-11-02-ref-06 (28-June-2024)
|
||||
Geant4 version Name: geant4-11-03-ref-00 (6-December-2024)
|
||||
Copyright : Geant4 Collaboration
|
||||
References : NIM A 506 (2003), 250-303
|
||||
: IEEE-TNS 53 (2006), 270-278
|
||||
@@ -20,6 +20,8 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
|
||||
**************************************************************
|
||||
|
||||
<<< Reference Physics List QBBC
|
||||
Accumulable registered as "accumulable_0"
|
||||
Accumulable registered as "accumulable_1"
|
||||
Visualization Manager instantiating with verbosity "warnings (3)"...
|
||||
Visualization Manager initialising...
|
||||
Registering graphics systems...
|
||||
@@ -32,7 +34,6 @@ Registered graphics systems are:
|
||||
RayTracer (RayTracer)
|
||||
VRML2FILE (VRML2FILE)
|
||||
gMocrenFile (gMocrenFile)
|
||||
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN)
|
||||
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN, TSG_FILE)
|
||||
OpenGLImmediateQt (OGLIQt, OGLI)
|
||||
OpenGLStoredQt (OGLSQt, OGL, OGLS)
|
||||
@@ -118,10 +119,13 @@ Bremsstrahlung energy threshold above which
|
||||
primary e+- is added to the list of secondary 100 TeV
|
||||
Bremsstrahlung energy threshold above which primary
|
||||
muon/hadron is added to the list of secondary 100 TeV
|
||||
Positron annihilation at rest model SimplePositronium
|
||||
Enable 3 gamma annihilation on fly 0
|
||||
Lowest triplet kinetic energy 1 MeV
|
||||
Enable sampling of gamma linear polarisation 0
|
||||
5D gamma conversion model type 0
|
||||
5D gamma conversion model on isolated ion 0
|
||||
Use Ricardo-Gerardo pair production model 0
|
||||
Livermore data directory epics_2017
|
||||
=======================================================================
|
||||
====== Ionisation Parameters ========
|
||||
@@ -292,7 +296,7 @@ ionIoni: for GenericIon XStype:3 SubType=2
|
||||
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
|
||||
StepFunction=(0.2, 0.1 mm), integ: 3, fluct: 1, linLossLim= 0.02
|
||||
===== EM models for the G4Region DefaultRegionForTheWorld ======
|
||||
BraggIon : Emin= 0 eV Emax= 2 MeV
|
||||
Bragg : Emin= 0 eV Emax= 2 MeV
|
||||
BetheBloch : Emin= 2 MeV Emax= 100 TeV
|
||||
|
||||
msc: for alpha SubType= 10
|
||||
@@ -567,7 +571,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
|
||||
Process: He3Inelastic
|
||||
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
|
||||
Model: FTFP: 3 GeV/n ---> 100 TeV/n
|
||||
Cr_sctns: G4ParticleInelasticXS: 0 eV ---> 25.6 PeV
|
||||
Cr_sctns: He3ParticleXS: 0 eV ---> 25.6 PeV
|
||||
-----------------------------------------------------------------------
|
||||
Hadronic Processes for alpha
|
||||
Process: hadElastic
|
||||
@@ -576,7 +580,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
|
||||
Process: alphaInelastic
|
||||
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
|
||||
Model: FTFP: 3 GeV/n ---> 100 TeV/n
|
||||
Cr_sctns: G4ParticleInelasticXS: 0 eV ---> 25.6 PeV
|
||||
Cr_sctns: alphaParticleXS: 0 eV ---> 25.6 PeV
|
||||
-----------------------------------------------------------------------
|
||||
Hadronic Processes for anti_He3
|
||||
Process: hadElastic
|
||||
@@ -657,7 +661,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
|
||||
Process: dInelastic
|
||||
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
|
||||
Model: FTFP: 3 GeV/n ---> 100 TeV/n
|
||||
Cr_sctns: G4ParticleInelasticXS: 0 eV ---> 100 TeV
|
||||
Cr_sctns: deuteronParticleXS: 0 eV ---> 100 TeV
|
||||
-----------------------------------------------------------------------
|
||||
Hadronic Processes for e+
|
||||
Process: positronNuclear
|
||||
@@ -757,7 +761,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
|
||||
Model: FTFP: 3 GeV ---> 100 TeV
|
||||
Model: BertiniCascade: 1 GeV ---> 6 GeV
|
||||
Model: Binary Cascade: 0 eV ---> 1.5 GeV
|
||||
Cr_sctns: G4ParticleInelasticXS: 0 eV ---> 100 TeV
|
||||
Cr_sctns: protonParticleXS: 0 eV ---> 100 TeV
|
||||
-----------------------------------------------------------------------
|
||||
Hadronic Processes for sigma-
|
||||
Process: hadElastic
|
||||
@@ -776,11 +780,11 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
|
||||
Process: tInelastic
|
||||
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
|
||||
Model: FTFP: 3 GeV/n ---> 100 TeV/n
|
||||
Cr_sctns: G4ParticleInelasticXS: 0 eV ---> 25.6 PeV
|
||||
Cr_sctns: tritonParticleXS: 0 eV ---> 25.6 PeV
|
||||
=======================================================================
|
||||
====== Geant4 Native Pre-compound Model Parameters ========
|
||||
=======================================================================
|
||||
Type of pre-compound inverse x-section 3
|
||||
Type of pre-compound inverse x-section 1
|
||||
Pre-compound model active 1
|
||||
Pre-compound excitation low energy 100 keV
|
||||
Pre-compound excitation high energy 30 MeV
|
||||
@@ -805,12 +809,10 @@ Use discrete excitation energy of the residual 0
|
||||
Time limit for long lived isomeres 1 ns
|
||||
Isomer production flag 1
|
||||
Internal e- conversion flag 1
|
||||
Store e- internal conversion data 0
|
||||
Store e- internal conversion data 1
|
||||
Correlated gamma emission flag 0
|
||||
Max 2J for sampling of angular correlations 10
|
||||
=======================================================================
|
||||
G4VisManager: Using G4TrajectoryDrawByCharge as fallback trajectory model.
|
||||
See commands in /vis/modeling/trajectories/ for other options.
|
||||
### Run 0 starts.
|
||||
--> Event 0 starts.
|
||||
--> Event 100 starts.
|
||||
@@ -842,7 +844,7 @@ See commands in /vis/modeling/trajectories/ for other options.
|
||||
|
||||
--------------------End of Global Run-----------------------
|
||||
The run consists of 1000 proton of 210 MeV
|
||||
Cumulated dose per run, in scoring volume : 4.70767 nanoGy rms = 144.639 picoGy
|
||||
Cumulated dose per run, in scoring volume : 5.02923 nanoGy rms = 146.046 picoGy
|
||||
------------------------------------------------------------
|
||||
|
||||
Graphics systems deleted.
|
||||
|
||||
@@ -62,8 +62,8 @@ RunAction::RunAction()
|
||||
|
||||
// Register accumulable to the accumulable manager
|
||||
G4AccumulableManager* accumulableManager = G4AccumulableManager::Instance();
|
||||
accumulableManager->RegisterAccumulable(fEdep);
|
||||
accumulableManager->RegisterAccumulable(fEdep2);
|
||||
accumulableManager->Register(fEdep);
|
||||
accumulableManager->Register(fEdep2);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user