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 -8
View File
@@ -23,15 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/ExUCN.cc
/// \file ExUCN.cc
/// \brief Main program of the exoticphysics/ucn example
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef WIN32
# include <unistd.h>
@@ -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
@@ -53,7 +53,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)
@@ -66,13 +65,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:
@@ -1510,7 +1508,7 @@ Terminate current event processing.
Run terminated.
Run Summary
Number of events processed : 1
User=0.010000s Real=0.018133s Sys=0.000000s
User=0.020000s Real=0.015762s Sys=0.000000s
Sum NoMT: 0
Sum NoMRT: 0
Sum NoMRCondition: 0
-106
View File
@@ -1,106 +0,0 @@
-------------------------------------------------------------------
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
=========================================================
ExUCN
-----
Peter Gumplinger
TRIUMF, Vancouver, Canada
This example exhibits the functionality of UCN physics
1- GEOMETRY DEFINITION
The geometry consists of a single hollow pipe (cylinder)
placed in a world.
Default World Size: G4Box - 1m x 1m x 100m
The pipe wall is made of G4_Ni while the world and, hence,
the inside of the pipe is made from G4_Galactic
The G4UCNMaterialPropertiesTable properties are:
"REFLECTIVITY" = 1
"DIFFUSION" = 0.1
"FERMIPOT" = 252.0 neV
"SPINFLIP"= 0.
"LOSS" = 12.5e-5
"LOSSCS" = 0.
"ABSCS"= 4.49 // 1/v loss cross-section at room temp.
"SCATCS" = 18.5 // (incoherent) "elastic" scattering cross-section
The MicroRoughnessParameters are:
Roughness correlation length w = 30nm
Surface roughness b = 1nm
# of angles theta_i in the look-up tables: 180
# of energie bins in the look-up tables: 1000
min. and max. values of theta_i: 0*degree and 90*degree
min. and max values of Energy: 1neV and 1000neV
# of angles theta_o in the look-up table calculation: 15
# of angels phi_o in the look-up table calculation: 15
angular cut: 0.01*degree
The default step limits in the vacuum is 1mm and maxTime is 100s
The simulation is in a G4UniformGravityField
2- PHYSICS LIST
The ExUCNPhysicsList defines only G4Neutron, G4Proton, G4Electron,
G4AntiNeutrinoE, G4MuonPlus, G4MuonMinus and G4GenericIon
Through ExUCNExtraPhysics the following processes are instantiated:
G4StepLimiter
G4UserSpecialCuts
and in ConstructUCN()
G4UCNLoss
G4UCNAbsorption
G4UCNMultiScattering
3- AN EVENT : THE PRIMARY GENERATOR
The primary kinematic consists of a single ultra-cold neutron,
uniform between 1neV and 100neV, from the origin and uniform
into 4pi solid angle.
A RUN is a set of events.
4- VISUALIZATION
The Visualization Manager is set in the main() for interactive session.
The initialisation of the drawing is done via the command
/control/execute vis.mac
5- HOW TO START ?
This example handles the program arguments in a new way.
It can be run with the following optional arguments:
% ExUCN [-m macro ] [-u UIsession] [-t nThreads]
The -t option is available only in multi-threading mode
and it allows the user to override the Geant4 default number of
threads. The number of threads can be also set via G4FORCENUMBEROFTHREADS
environment variable which has the top priority.
- execute ExUCN in 'batch' mode from macro files e.g.
% ExUCN -m ExUCN.in > ExUCN.out &
- execute ExUCN in 'interactive' mode with visualization e.g.
% ExUCN
....
Idle> type your commands, for example:
Idle> run/beamOn 1
....
6- HISTOGRAMS
- no histograms for now
@@ -1,8 +1,4 @@
///\file "exoticphysics/ucn/.README.txt"
///\brief Example ucn README page
/*! \page Exampleucn Example ucn
\page Exampleucn Example ucn
\author Peter Gumplinger - TRIUMF, Vancouver, Canada \n
gum@triumf.ca
@@ -10,12 +6,12 @@
This example demonstrates how ultra-cold neutrons (UCN) propagate
in a guide pipe and how this can be simulated in Geant4.
\section ucn_s1 INTRODUCTION
## INTRODUCTION
This example exhibits the functionality of UCN physics
\section ucn_s2 GEOMETRY
## GEOMETRY
The geometry consists of a single hollow pipe (cylinder)
placed in a world.
@@ -26,7 +22,7 @@ This example exhibits the functionality of UCN physics
the inside of the pipe is made from G4_Galactic
The G4UCNMaterialPropertiesTable properties are:
\verbatim
```
"REFLECTIVITY" = 1
"DIFFUSION" = 0.1
"FERMIPOT" = 252.0 neV
@@ -35,10 +31,10 @@ This example exhibits the functionality of UCN physics
"LOSSCS" = 0.
"ABSCS"= 4.49 // 1/v loss cross-section at room temp.
"SCATCS" = 18.5 // (incoherent) "elastic" scattering cross-section
\endverbatim
```
The MicroRoughnessParameters are:
\verbatim
```
Roughness correlation length w = 30nm
Surface roughness b = 1nm
# of angles theta_i in the look-up tables: 180
@@ -48,13 +44,13 @@ This example exhibits the functionality of UCN physics
# of angles theta_o in the look-up table calculation: 15
# of angels phi_o in the look-up table calculation: 15
angular cut: 0.01*degree
\endverbatim
```
The default step limits in the vacuum is 1mm and maxTime is 100s
The simulation is in a G4UniformGravityField
\section ucn_s3 PHYSICS LIST
## PHYSICS LIST
The ExUCNPhysicsList defines only
- G4Neutron, G4Proton, G4Electron, G4AntiNeutrinoE, G4MuonPlus, G4MuonMinus and
@@ -69,7 +65,7 @@ This example exhibits the functionality of UCN physics
- G4UCNAbsorption
- G4UCNMultiScattering
\section ucn_s4 THE PRIMARY GENERATOR
## THE PRIMARY GENERATOR
The primary kinematic consists of a single ultra-colde neutron
(uniform between 1neV and 100neV from the origin uniform into 4pi
@@ -77,24 +73,23 @@ This example exhibits the functionality of UCN physics
A RUN is a set of events.
\section ucn_s5 VISUALIZATION
## VISUALIZATION
The Visualization Manager is set in the main () (see ExUCN.cc)
for interactive session.
The Visualization Manager is set in the main() for interactive session.
The initialisation of the drawing is done via the command
\verbatim
```
/control/execute vis.mac
\endverbatim
```
\section ucn_s6 TESTING
## TESTING
This example handles the program arguments in a new way.
It can be run with the following optional arguments:
\verbatim
% ExUCN [-m macro ] [-u UIsession] [-t nThreads]
\endverbatim
```
% ./ExUCN [-m macro ] [-u UIsession] [-t nThreads]
```
The -t option is available only in multi-threading mode
and it allows the user to override the Geant4 default number of
@@ -103,20 +98,15 @@ This example exhibits the functionality of UCN physics
Execute ExUCN in 'batch' mode from macro files e.g.
\verbatim
% ExUCN -m ExUCN.in > ExUCN.out &
\endverbatim
```
% ./ExUCN -m ExUCN.in > ExUCN.out &
```
Execute ExUCN in 'interactive' mode with visualization e.g.
\verbatim
% ExUCN
```
% ./ExUCN
Idle> type your commands, for example:
Idle> run/beamOn 1
...
\endverbatim
\section ucn_s7 HISTOGRAMS
- no histograms for now
*/
```
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExUCNActionInitialization.hh
/// \brief Definition of the ExUCNActionInitialization class
@@ -23,13 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/include/ExUCNDetectorConstruction.hh
/// \file ExUCNDetectorConstruction.hh
/// \brief Definition of the ExUCNDetectorConstruction class
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef ExUCNDetectorConstruction_h
#define ExUCNDetectorConstruction_h 1
@@ -23,13 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/include/ExUCNExtraPhysics.hh
/// \file ExUCNExtraPhysics.hh
/// \brief Definition of the ExUCNExtraPhysics class
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#ifndef ExUCNExtraPhysics_h
#define ExUCNExtraPhysics_h 1
@@ -23,13 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/include/ExUCNPhysicsList.hh
/// \file ExUCNPhysicsList.hh
/// \brief Definition of the ExUCNPhysicsList class
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#ifndef ExUCNPhysicsList_h
#define ExUCNPhysicsList_h 1
@@ -23,13 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/include/ExUCNPrimaryGeneratorAction.hh
/// \file ExUCNPrimaryGeneratorAction.hh
/// \brief Definition of the ExUCNPrimaryGeneratorAction class
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef ExUCNPrimaryGeneratorAction_h
#define ExUCNPrimaryGeneratorAction_h 1
@@ -23,14 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file exoticphysics/ucn/include/ExUCNRunAction.hh
/// \file ExUCNRunAction.hh
/// \brief Definition of the ExUCNRunAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef ExUCNRunAction_h
#define ExUCNRunAction_h 1
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ExUCNActionInitialization.cc
/// \brief Implementation of the ExUCNActionInitialization class
@@ -23,13 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/src/ExUCNDetectorConstruction.cc
/// \file ExUCNDetectorConstruction.cc
/// \brief Implementation of the ExUCNDetectorConstruction class
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "ExUCNDetectorConstruction.hh"
@@ -23,11 +23,9 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/src/ExUCNExtraPhysics.cc
/// \file ExUCNExtraPhysics.cc
/// \brief Implementation of the ExUCNExtraPhysics class
//
//
#include "ExUCNExtraPhysics.hh"
#include "G4Decay.hh"
@@ -23,11 +23,9 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/src/ExUCNPhysicsList.cc
/// \file ExUCNPhysicsList.cc
/// \brief Implementation of the ExUCNPhysicsList class
//
//
#include "ExUCNPhysicsList.hh"
#include "ExUCNExtraPhysics.hh"
@@ -23,13 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exoticphysics/ucn/src/ExUCNPrimaryGeneratorAction.cc
/// \file ExUCNPrimaryGeneratorAction.cc
/// \brief Implementation of the ExUCNPrimaryGeneratorAction class
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "ExUCNPrimaryGeneratorAction.hh"
@@ -23,14 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file exoticphysics/ucn/src/ExUCNRunAction.cc
/// \file ExUCNRunAction.cc
/// \brief Implementation of the ExUCNRunAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "ExUCNRunAction.hh"