Import Geant4 11.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2024-12-06 11:11:40 +01:00
parent e58e650b32
commit 32390e802b
1984 changed files with 98713 additions and 83996 deletions
+11
View File
@@ -296,6 +296,11 @@ The following paragraphs are common to all basic examples
(since they require no external libraries), but the OGL driver requires
that the Geant4 libraries have been built with the OpenGL option.
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
@@ -313,10 +318,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 exampleB4a.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.
*/
+5 -22
View File
@@ -6,22 +6,9 @@ project(B4a)
#----------------------------------------------------------------------------
# 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
@@ -31,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(exampleB4a exampleB4a.cc ${sources} ${headers})
target_link_libraries(exampleB4a ${Geant4_LIBRARIES})
target_include_directories(exampleB4a PRIVATE include)
target_link_libraries(exampleB4a PRIVATE ${Geant4_LIBRARIES})
#----------------------------------------------------------------------------
# Copy all scripts to the build directory, i.e. the directory in which we
@@ -60,8 +48,3 @@ foreach(_script ${EXAMPLEB4A_SCRIPTS})
COPYONLY
)
endforeach()
#----------------------------------------------------------------------------
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
#
install(TARGETS exampleB4a DESTINATION bin)
+25 -46
View File
@@ -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
@@ -33,7 +33,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)
@@ -115,7 +114,7 @@ Some /vis commands (optionally) take a string to specify colour.
ElmMassFraction: 100.00 % ElmAbundance 100.00 %
Material: Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 113427284.261 pc
Material: Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 3240.779 pc
Imean: 19.200 eV temperature: 2.73 K pressure: 0.00 atm
---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
@@ -161,10 +160,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 ========
@@ -335,7 +337,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
@@ -817,7 +819,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
=======================================================================
====== 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
@@ -842,12 +844,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.
-------- WWWW ------- G4Exception-START -------- WWWW -------
@@ -864,26 +864,19 @@ Setting was ignored.
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 279.218 MeV total track length: 20.3807 cm
Gap: total energy: 19.7181 MeV total track length: 9.43835 cm
Absorber: total energy: 260.424 MeV total track length: 18.8985 cm
Gap: total energy: 20.1593 MeV total track length: 10.2646 cm
--> End of event 0
----> print histograms statistic for the entire run
EAbs : mean = 279.218 MeV rms = 0 eV
EGap : mean = 19.7181 MeV rms = 0 eV
LAbs : mean = 20.3807 cm rms = 0 fm
LGap : mean = 9.43835 cm rms = 0 fm
EAbs : mean = 260.424 MeV rms = 0 eV
EGap : mean = 20.1593 MeV rms = 0 eV
LAbs : mean = 18.8985 cm rms = 0 fm
LGap : mean = 10.2646 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
Transportation, GammaGeneralProc, msc, eIoni
eBrem, CoulombScat, msc, eIoni
eBrem, annihil, CoulombScat, msc
@@ -944,51 +937,37 @@ hFritiofCaptureAtRest,hBertiniCaptureAtRest,muMinusCaptureAtRest, dInela
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 253.71 MeV total track length: 18.3379 cm
Gap: total energy: 18.1797 MeV total track length: 8.925 cm
Absorber: total energy: 271.299 MeV total track length: 19.4388 cm
Gap: total energy: 23.6238 MeV total track length: 11.1558 cm
--> End of event 0
----> print histograms statistic for the entire run
EAbs : mean = 253.71 MeV rms = 0 eV
EGap : mean = 18.1797 MeV rms = 0 eV
LAbs : mean = 18.3379 cm rms = 0 fm
LGap : mean = 8.925 cm rms = 0 fm
EAbs : mean = 271.299 MeV rms = 0 eV
EGap : mean = 23.6238 MeV rms = 0 eV
LAbs : mean = 19.4388 cm rms = 0 fm
LGap : mean = 11.1558 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
### Run 2 starts.
... create file : B4.root - done
... open analysis file : B4.root - done
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 437.115 MeV total track length: 31.5725 cm
Gap: total energy: 19.1128 MeV total track length: 8.67887 cm
Absorber: total energy: 446.304 MeV total track length: 32.6572 cm
Gap: total energy: 42.0373 MeV total track length: 21.6011 cm
--> End of event 0
----> print histograms statistic for the entire run
EAbs : mean = 0 eV rms = 0 eV
EGap : mean = 19.1128 MeV rms = 0 eV
LAbs : mean = 31.5725 cm rms = 0 fm
LGap : mean = 8.67887 cm rms = 0 fm
EGap : mean = 0 eV rms = 0 eV
LAbs : mean = 32.6572 cm rms = 0 fm
LGap : mean = 21.6011 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
Graphics systems deleted.
Visualization Manager deleting...
+5 -22
View File
@@ -6,22 +6,9 @@ project(B4b)
#----------------------------------------------------------------------------
# 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
@@ -31,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(exampleB4b exampleB4b.cc ${sources} ${headers})
target_link_libraries(exampleB4b ${Geant4_LIBRARIES})
target_include_directories(exampleB4b PRIVATE include)
target_link_libraries(exampleB4b PRIVATE ${Geant4_LIBRARIES})
#----------------------------------------------------------------------------
# Copy all scripts to the build directory, i.e. the directory in which we
@@ -60,8 +48,3 @@ foreach(_script ${EXAMPLEB4B_SCRIPTS})
COPYONLY
)
endforeach()
#----------------------------------------------------------------------------
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
#
install(TARGETS exampleB4b DESTINATION bin)
+25 -46
View File
@@ -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
@@ -33,7 +33,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)
@@ -115,7 +114,7 @@ Some /vis commands (optionally) take a string to specify colour.
ElmMassFraction: 100.00 % ElmAbundance 100.00 %
Material: Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 113427284.261 pc
Material: Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 3240.779 pc
Imean: 19.200 eV temperature: 2.73 K pressure: 0.00 atm
---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
@@ -161,10 +160,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 ========
@@ -335,7 +337,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
@@ -817,7 +819,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
=======================================================================
====== 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
@@ -842,12 +844,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.
### Run 0 start.
@@ -865,26 +865,19 @@ Setting was ignored.
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 279.218 MeV total track length: 20.3807 cm
Gap: total energy: 19.7181 MeV total track length: 9.43835 cm
Absorber: total energy: 260.424 MeV total track length: 18.8985 cm
Gap: total energy: 20.1593 MeV total track length: 10.2646 cm
--> End of event 0
----> print histograms statistic for the entire run
EAbs : mean = 279.218 MeV rms = 0 eV
EGap : mean = 19.7181 MeV rms = 0 eV
LAbs : mean = 20.3807 cm rms = 0 fm
LGap : mean = 9.43835 cm rms = 0 fm
EAbs : mean = 260.424 MeV rms = 0 eV
EGap : mean = 20.1593 MeV rms = 0 eV
LAbs : mean = 18.8985 cm rms = 0 fm
LGap : mean = 10.2646 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
Transportation, GammaGeneralProc, msc, eIoni
eBrem, CoulombScat, msc, eIoni
eBrem, annihil, CoulombScat, msc
@@ -946,26 +939,19 @@ hFritiofCaptureAtRest,hBertiniCaptureAtRest,muMinusCaptureAtRest, dInela
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 253.71 MeV total track length: 18.3379 cm
Gap: total energy: 18.1797 MeV total track length: 8.925 cm
Absorber: total energy: 271.299 MeV total track length: 19.4388 cm
Gap: total energy: 23.6238 MeV total track length: 11.1558 cm
--> End of event 0
----> print histograms statistic for the entire run
EAbs : mean = 253.71 MeV rms = 0 eV
EGap : mean = 18.1797 MeV rms = 0 eV
LAbs : mean = 18.3379 cm rms = 0 fm
LGap : mean = 8.925 cm rms = 0 fm
EAbs : mean = 271.299 MeV rms = 0 eV
EGap : mean = 23.6238 MeV rms = 0 eV
LAbs : mean = 19.4388 cm rms = 0 fm
LGap : mean = 11.1558 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
### Run 2 starts.
### Run 2 start.
... create file : B4.root - done
@@ -973,25 +959,18 @@ There are histograms that can be viewed with visualization:
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 437.115 MeV total track length: 31.5725 cm
Gap: total energy: 19.1128 MeV total track length: 8.67887 cm
Absorber: total energy: 446.304 MeV total track length: 32.6572 cm
Gap: total energy: 42.0373 MeV total track length: 21.6011 cm
--> End of event 0
----> print histograms statistic for the entire run
EAbs : mean = 0 eV rms = 0 eV
EGap : mean = 19.1128 MeV rms = 0 eV
LAbs : mean = 31.5725 cm rms = 0 fm
LGap : mean = 8.67887 cm rms = 0 fm
EGap : mean = 0 eV rms = 0 eV
LAbs : mean = 32.6572 cm rms = 0 fm
LGap : mean = 21.6011 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
Graphics systems deleted.
Visualization Manager deleting...
+5 -22
View File
@@ -6,22 +6,9 @@ project(B4c)
#----------------------------------------------------------------------------
# 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
@@ -31,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(exampleB4c exampleB4c.cc ${sources} ${headers})
target_link_libraries(exampleB4c ${Geant4_LIBRARIES})
target_include_directories(exampleB4c PRIVATE include)
target_link_libraries(exampleB4c PRIVATE ${Geant4_LIBRARIES})
#----------------------------------------------------------------------------
# Copy all scripts to the build directory, i.e. the directory in which we
@@ -60,8 +48,3 @@ foreach(_script ${EXAMPLEB4C_SCRIPTS})
COPYONLY
)
endforeach()
#----------------------------------------------------------------------------
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
#
install(TARGETS exampleB4c DESTINATION bin)
+25 -46
View File
@@ -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
@@ -33,7 +33,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)
@@ -115,7 +114,7 @@ Some /vis commands (optionally) take a string to specify colour.
ElmMassFraction: 100.00 % ElmAbundance 100.00 %
Material: Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 113427284.261 pc
Material: Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 3240.779 pc
Imean: 19.200 eV temperature: 2.73 K pressure: 0.00 atm
---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
@@ -161,10 +160,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 ========
@@ -335,7 +337,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
@@ -817,7 +819,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
=======================================================================
====== 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
@@ -842,12 +844,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.
-------- WWWW ------- G4Exception-START -------- WWWW -------
@@ -864,26 +864,19 @@ Setting was ignored.
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 279.218 MeV total track length: 20.3807 cm
Gap: total energy: 19.7181 MeV total track length: 9.43835 cm
Absorber: total energy: 260.424 MeV total track length: 18.8985 cm
Gap: total energy: 20.1593 MeV total track length: 10.2646 cm
--> End of event: 0
----> print histograms statistic for the entire run
EAbs : mean = 279.218 MeV rms = 0 eV
EGap : mean = 19.7181 MeV rms = 0 eV
LAbs : mean = 20.3807 cm rms = 0 fm
LGap : mean = 9.43835 cm rms = 0 fm
EAbs : mean = 260.424 MeV rms = 0 eV
EGap : mean = 20.1593 MeV rms = 0 eV
LAbs : mean = 18.8985 cm rms = 0 fm
LGap : mean = 10.2646 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
Transportation, GammaGeneralProc, msc, eIoni
eBrem, CoulombScat, msc, eIoni
eBrem, annihil, CoulombScat, msc
@@ -944,51 +937,37 @@ hFritiofCaptureAtRest,hBertiniCaptureAtRest,muMinusCaptureAtRest, dInela
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 253.71 MeV total track length: 18.3379 cm
Gap: total energy: 18.1797 MeV total track length: 8.925 cm
Absorber: total energy: 271.299 MeV total track length: 19.4388 cm
Gap: total energy: 23.6238 MeV total track length: 11.1558 cm
--> End of event: 0
----> print histograms statistic for the entire run
EAbs : mean = 253.71 MeV rms = 0 eV
EGap : mean = 18.1797 MeV rms = 0 eV
LAbs : mean = 18.3379 cm rms = 0 fm
LGap : mean = 8.925 cm rms = 0 fm
EAbs : mean = 271.299 MeV rms = 0 eV
EGap : mean = 23.6238 MeV rms = 0 eV
LAbs : mean = 19.4388 cm rms = 0 fm
LGap : mean = 11.1558 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
### Run 2 starts.
... create file : B4.root - done
... open analysis file : B4.root - done
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 437.115 MeV total track length: 31.5725 cm
Gap: total energy: 19.1128 MeV total track length: 8.67887 cm
Absorber: total energy: 446.304 MeV total track length: 32.6572 cm
Gap: total energy: 42.0373 MeV total track length: 21.6011 cm
--> End of event: 0
----> print histograms statistic for the entire run
EAbs : mean = 0 eV rms = 0 eV
EGap : mean = 19.1128 MeV rms = 0 eV
LAbs : mean = 31.5725 cm rms = 0 fm
LGap : mean = 8.67887 cm rms = 0 fm
EGap : mean = 0 eV rms = 0 eV
LAbs : mean = 32.6572 cm rms = 0 fm
LGap : mean = 21.6011 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
Graphics systems deleted.
Visualization Manager deleting...
+5 -22
View File
@@ -6,22 +6,9 @@ project(B4d)
#----------------------------------------------------------------------------
# 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
@@ -31,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(exampleB4d exampleB4d.cc ${sources} ${headers})
target_link_libraries(exampleB4d ${Geant4_LIBRARIES})
target_include_directories(exampleB4d PRIVATE include)
target_link_libraries(exampleB4d PRIVATE ${Geant4_LIBRARIES})
#----------------------------------------------------------------------------
# Copy all scripts to the build directory, i.e. the directory in which we
@@ -60,8 +48,3 @@ foreach(_script ${EXAMPLEB4D_SCRIPTS})
COPYONLY
)
endforeach()
#----------------------------------------------------------------------------
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
#
install(TARGETS exampleB4d DESTINATION bin)
+26 -47
View File
@@ -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
@@ -33,7 +33,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)
@@ -115,7 +114,7 @@ Some /vis commands (optionally) take a string to specify colour.
ElmMassFraction: 100.00 % ElmAbundance 100.00 %
Material: Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 113427284.261 pc
Material: Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 3240.779 pc
Imean: 19.200 eV temperature: 2.73 K pressure: 0.00 atm
---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
@@ -165,10 +164,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 ========
@@ -339,7 +341,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
@@ -821,7 +823,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
=======================================================================
====== 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
@@ -846,12 +848,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.
-------- WWWW ------- G4Exception-START -------- WWWW -------
@@ -868,26 +868,19 @@ Setting was ignored.
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 279.218 MeV total track length: 20.3807 cm
Gap: total energy: 19.7181 MeV total track length: 9.43835 cm
Absorber: total energy: 260.424 MeV total track length: 18.8985 cm
Gap: total energy: 20.1593 MeV total track length: 10.2646 cm
--> End of event: 0
----> print histograms statistic for the entire run
EAbs : mean = 279.218 MeV rms = 0 eV
EGap : mean = 19.7181 MeV rms = 0 eV
LAbs : mean = 20.3807 cm rms = 0 fm
LGap : mean = 9.43835 cm rms = 0 fm
EAbs : mean = 260.424 MeV rms = 0 eV
EGap : mean = 20.1593 MeV rms = 0 eV
LAbs : mean = 18.8985 cm rms = 0 fm
LGap : mean = 10.2646 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
Transportation, GammaGeneralProc, msc, eIoni
eBrem, CoulombScat, msc, eIoni
eBrem, annihil, CoulombScat, msc
@@ -948,52 +941,38 @@ hFritiofCaptureAtRest,hBertiniCaptureAtRest,muMinusCaptureAtRest, dInela
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 253.71 MeV total track length: 18.3379 cm
Gap: total energy: 18.1797 MeV total track length: 8.925 cm
Absorber: total energy: 271.299 MeV total track length: 19.4388 cm
Gap: total energy: 23.6238 MeV total track length: 11.1558 cm
--> End of event: 0
----> print histograms statistic for the entire run
EAbs : mean = 253.71 MeV rms = 0 eV
EGap : mean = 18.1797 MeV rms = 0 eV
LAbs : mean = 18.3379 cm rms = 0 fm
LGap : mean = 8.925 cm rms = 0 fm
EAbs : mean = 271.299 MeV rms = 0 eV
EGap : mean = 23.6238 MeV rms = 0 eV
LAbs : mean = 19.4388 cm rms = 0 fm
LGap : mean = 11.1558 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
### Run 2 starts.
... create file : B4.root - done
... open analysis file : B4.root - done
... open analysis file : B4.root - done
Using
--> Event 0 starts.
Absorber: total energy: 437.115 MeV total track length: 31.5725 cm
Gap: total energy: 19.1128 MeV total track length: 8.67887 cm
Absorber: total energy: 446.304 MeV total track length: 32.6572 cm
Gap: total energy: 42.0373 MeV total track length: 21.6011 cm
--> End of event: 0
----> print histograms statistic for the entire run
EAbs : mean = 0 eV rms = 0 eV
EGap : mean = 19.1128 MeV rms = 0 eV
LAbs : mean = 31.5725 cm rms = 0 fm
LGap : mean = 8.67887 cm rms = 0 fm
EGap : mean = 0 eV rms = 0 eV
LAbs : mean = 32.6572 cm rms = 0 fm
LGap : mean = 21.6011 cm rms = 0 fm
... write file : B4.root - done
... close file : B4.root - done
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.
Graphics systems deleted.
Visualization Manager deleting...
### deleting chargedFilter 0xb7fb80
### deleting chargedFilter 0x164e710
+11
View File
@@ -252,6 +252,11 @@
(since they require no external libraries), but the OGL driver requires
that the Geant4 libraries have been built with the OpenGL option.
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,
@@ -265,6 +270,12 @@
The user command interface is set via the G4UIExecutive class
in the main() function in exampleB4a.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.