Import Geant4 11.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2025-12-05 08:54:02 +01:00
parent a499fb82e9
commit b4a16de652
6484 changed files with 232674 additions and 221097 deletions
@@ -1,91 +0,0 @@
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
=========================================================
examples/extended/visualization/movies
--------------------------------------
This example illustrates how to create a movie.
See https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Visualization/makingamovie.html#.
A) USING /vis/viewer/save AND /vis/viewer/interpolate
=====================================================
1) a) To see a pre-prepared example, start this example in interactive mode
(i.e., without any command line arguments). Just type
/vis/viewer/interpolate viewfiles/movie-1
If you want to see an electromagnetic shower
/run/beamOn
/vis/viewer/interpolate viewfiles/movie-1
b) To make your own movie, save a sequence of views with
"/vis/viewer/save". Then "fly through" with "/vis/viewer/interpolate".
The procedure is: choose a view, save, choose another view, save, and
so on until you have, say, 10 saved views. Then you may
/vis/viewer/interpolate
Note: This saves views to your current working directory. It is
always good to remove any pre-existing saved files:
rm *.g4view
or save them, e.g.
mkdir views
mv *.g4view views
which can subsequently be interpolated with
/vis/viewer/interpolate views
c) Then you have a choice of how to export the movie - see 3 below.
2) You can use time-slicing to see particles progress through time
a) To see a pre-prepared example
/vis/modeling/trajectories/drawByCharge-0/default/setTimeSliceInterval 0.01 ns
/run/beamOn
/vis/viewer/interpolate viewfiles/movie-2
b) To make your own movie
/vis/scene/add/trajectories rich
/vis/modeling/trajectories/drawByCharge-0/default/setTimeSliceInterval 0.01 ns
# Optionally add features (see guidance on /vis/viewer/set/timeWindow/)
/vis/viewer/set/timeWindow/displayLightFront true 0 0 -20 cm -0.01 ns
/vis/viewer/set/timeWindow/displayHeadTime true
/vis/viewer/set/timeWindow/fadeFactor 1
/run/beamOn
# Then set a time window and save
/vis/viewer/set/timeWindow/startTime 0 ns .1 ns
/vis/viewer/save
# Then zoom, pan etc to a view of interest
# Then set the next time window and save
/vis/viewer/set/timeWindow/startTime .5 ns .1 ns
/vis/viewer/save
# Then zoom, pan etc to a view of interest
# Then set the next time window and save
/vis/viewer/set/timeWindow/startTime 1 ns .1 ns
/vis/viewer/save
# Then another view, the next time window, and a save...
# ...repeat a few more times
# Then try
/vis/viewer/interpolate
3) How to export images using /vis/viewer/interpolate (OpenGL only)
/vis/viewer/interpolate ! ! ! ! export
This produces lots of files.
You can change export format with (for example)
/vis/ogl/set/exportFormat jpg
Then import them into your favourite movie maker - see
https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Visualization/makingamovie.html#
B) THE OLD WAY
==============
These files are inherited from the old "novice" example N03. They draw (and
optionally, save) views using a macro loop. They have not been tested
recently. Best to run in batch mode in the build directory. E.g.
./movies -m visTutor/exN03Vis12.mac
./movies -m visTutor/exN03Vis13.mac
John Allison
15th February 2021
@@ -1,7 +1,4 @@
///\file "visualization/movies/.README.txt"
///\brief Example movies README page
/*! \page Examplemovies Example movies
\page Examplemovies Example movies
examples/extended/visualization/movies
@@ -108,5 +105,4 @@ recently. Best to run in batch mode in the build directory. E.g.
John Allison
15th February 2021
*/
15th February 2021
@@ -25,7 +25,6 @@
//
/// \file MoviesActionInitialization.hh
/// \brief Definition of the MoviesActionInitialization class
//
#ifndef MoviesActionInitialization_h
#define MoviesActionInitialization_h 1
@@ -25,7 +25,6 @@
//
/// \file MoviesDetectorConstruction.hh
/// \brief Definition of the MoviesDetectorConstruction class
//
#ifndef MoviesDetectorConstruction_h
#define MoviesDetectorConstruction_h 1
@@ -25,7 +25,6 @@
//
/// \file MoviesPrimaryGeneratorAction.hh
/// \brief Definition of the MoviesPrimaryGeneratorAction class
//
#ifndef MoviesPrimaryGeneratorAction_h
#define MoviesPrimaryGeneratorAction_h 1
@@ -23,9 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file movies.cc
/// \brief Main program of the Movies example
/// \brief Main program of the visualization/movies example
#include "FTFP_BERT.hh"
#include "MoviesActionInitialization.hh"
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -29,7 +29,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -42,13 +41,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -177,7 +175,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -314,7 +312,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -372,7 +370,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -404,7 +402,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -436,7 +434,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -468,7 +466,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -500,7 +498,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -532,7 +530,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -564,7 +562,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -819,8 +817,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
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
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -834,9 +832,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -25,7 +25,6 @@
//
/// \file MoviesActionInitialization.cc
/// \brief Implementation of the MoviesActionInitialization class
//
#include "MoviesActionInitialization.hh"
@@ -25,7 +25,6 @@
//
/// \file MoviesDetectorConstruction.cc
/// \brief Implementation of the MoviesDetectorConstruction class
//
#include "MoviesDetectorConstruction.hh"
@@ -25,7 +25,6 @@
//
/// \file MoviesPrimaryGeneratorAction.cc
/// \brief Implementation of the MoviesPrimaryGeneratorAction class
//
#include "MoviesPrimaryGeneratorAction.hh"