Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
+16 -6
View File
@@ -31,11 +31,7 @@
loss.
Several hadronic physics options are controlled by environment variables.
To trigger them, an envHadronic.csh has been added in this example.
One must select the options wished, and do
\verbatim
source envHadronic.csh (or sh)
\endverbatim
To select them, see Hadr03.cc
\section Hadr03_s3 AN EVENT : THE PRIMARY GENERATOR
@@ -144,5 +140,19 @@ Idle> type your commands
....
Idle> exit
\endverbatim
Macros provided in this example:
- Au196.mac: neutron (1 MeV) on Au195
- elastic.mac: proton (10 MeV) on Mo100. Elastic collisions alone
- fusion.mac: deuteron (400 keV) on tritium
- gamma.mac: gamma (10 MeV) on Au196
- inelastic.mac: proton (10 MaV) on Mo98. Inelastic interactions alone
- ion.mac: Li7 (140 MeV) on Be9
- nCapture.mac: neutron (1 eV) on Boron. Capture process alone
- nFission.mac: neutron (1 eV) on U235. Fission process alone
- neutron.mac: neutron (1 MeV) on Boron
Macros to be run interactively:
- debug.mac: proton (10 MeV) on Boron
- vis.mac: To activate visualization
*/
@@ -1,6 +1,9 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_minimum_required(VERSION 3.8...3.18)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
project(Hadr03)
#----------------------------------------------------------------------------
@@ -40,7 +43,7 @@ target_link_libraries(Hadr03 ${Geant4_LIBRARIES} )
# relies on these scripts being in the current working directory.
#
set(Hadr03_SCRIPTS
debug.mac envHadronic.csh envHadronic.sh elastic.mac gamma.mac hadr03.in inelastic.mac ion.mac nCapture.mac neutron.mac nFission.mac vis.mac
debug.mac envHadronic.csh envHadronic.sh elastic.mac gamma.mac hadr03.in inelastic.mac ion.mac nCapture.mac neutron.mac nFission.mac fusion.mac vis.mac
)
foreach(_script ${Hadr03_SCRIPTS})
@@ -50,6 +50,8 @@
#include "G4UIExecutive.hh"
#include "G4VisExecutive.hh"
#include "G4ParticleHPManager.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
int main(int argc,char** argv) {
@@ -82,6 +84,22 @@ int main(int argc,char** argv) {
runManager->SetUserInitialization(new ActionInitialization(det));
// Replaced HP environmental variables with C++ calls
G4ParticleHPManager::GetInstance()->SetSkipMissingIsotopes( false );
G4ParticleHPManager::GetInstance()->SetDoNotAdjustFinalState( false );
G4ParticleHPManager::GetInstance()->SetUseOnlyPhotoEvaporation( false );
G4ParticleHPManager::GetInstance()->SetNeglectDoppler( false );
G4ParticleHPManager::GetInstance()->SetProduceFissionFragments( false );
G4ParticleHPManager::GetInstance()->SetUseWendtFissionModel( false );
G4ParticleHPManager::GetInstance()->SetUseNRESP71Model( false );
//G4ParticleHPManager::GetInstance()->SetSkipMissingIsotopes( true );
//G4ParticleHPManager::GetInstance()->SetDoNotAdjustFinalState( true );
//G4ParticleHPManager::GetInstance()->SetUseOnlyPhotoEvaporation( true );
//G4ParticleHPManager::GetInstance()->SetNeglectDoppler( true );
//G4ParticleHPManager::GetInstance()->SetProduceFissionFragments( true );
//G4ParticleHPManager::GetInstance()->SetUseWendtFissionModel( true );
//G4ParticleHPManager::GetInstance()->SetUseNRESP71Model( true );
//initialize visualization
G4VisManager* visManager = nullptr;
+10
View File
@@ -13,6 +13,16 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
22-10-20 mma (exhadr03-V10-06-04)
- add fusion.mac
- README : add macros descrption
05-08-20 A. Ribon (exhadr03-V10-06-03)
- envHadronic.(c)sh , nFission.mac , Hadr03.cc : removed deprecated
HP environmental variables and replaced them with corresponding
C++ calls in the main, and UI commands in the macros.
(The two shell-script files will be removed in G4 11.0.)
04-06-20 mma (exhadr03-V10-06-02)
- HistoManager, SteppingAction : add plot of e-
+16 -3
View File
@@ -33,9 +33,7 @@
loss.
Several hadronic physics options are controlled by environment variables.
To trigger them, an envHadronic.csh has been added in this example.
One must select the options wished, and do
source envHadronic.csh (or sh)
To select them, see Hadr03.cc.
3- AN EVENT : THE PRIMARY GENERATOR
@@ -130,3 +128,18 @@
Idle> type your commands
....
Idle> exit
Macros provided in this example:
- Au196.mac: neutron (1 MeV) on Au195
- elastic.mac: proton (10 MeV) on Mo100. Elastic collisions alone
- fusion.mac: deuteron (400 keV) on tritium
- gamma.mac: gamma (10 MeV) on Au196
- inelastic.mac: proton (10 MaV) on Mo98. Inelastic interactions alone
- ion.mac: Li7 (140 MeV) on Be9
- nCapture.mac: neutron (1 eV) on Boron. Capture process alone
- nFission.mac: neutron (1 eV) on U235. Fission process alone
- neutron.mac: neutron (1 MeV) on Boron
Macros to be run interactively:
- debug.mac: proton (10 MeV) on Boron
- vis.mac: To activate visualization
+1 -9
View File
@@ -1,3 +1,4 @@
# === FILE TO BE REMOVED IN G4 11.0 ===
#
# for neutronHP and particleHP
#
@@ -10,19 +11,10 @@ unsetenv G4NEUTRONHP_PRODUCE_FISSION_FRAGMENTS
unsetenv G4PHP_DO_NOT_ADJUST_FINAL_STATE
unsetenv G4PHP_NELECT_DOPPLER
#### setenv G4NEUTRONHP_SKIP_MISSING_ISOTOPES 1
#### setenv G4NEUTRONHP_DO_NOT_ADJUST_FINAL_STATE 1
#### setenv G4NEUTRONHP_USE_ONLY_PHOTONEVAPORATION 1
#### setenv G4NEUTRONHP_NELECT_DOPPLER 1
#### setenv G4NEUTRONHP_PRODUCE_FISSION_FRAGMENTS 1
#
#### setenv G4PHP_DO_NOT_ADJUST_FINAL_STATE 1
#### setenv G4PHP_NELECT_DOPPLER 1
#
# for Bertini cascade
#
unsetenv G4CASCADE_USE_PRECOMPOUND
#### setenv G4CASCADE_USE_PRECOMPOUND 1
env |grep G4NEUTRONHP
env |grep G4PHP
+1 -23
View File
@@ -1,3 +1,4 @@
# === FILE TO BE REMOVED IN G4 11.0 ===
#
# for neutronHP and particleHP
#
@@ -10,34 +11,11 @@ unset G4NEUTRONHP_PRODUCE_FISSION_FRAGMENTS
unset G4PHP_DO_NOT_ADJUST_FINAL_STATE
unset G4PHP_NELECT_DOPPLER
#### G4NEUTRONHP_SKIP_MISSING_ISOTOPES=1
#### export G4NEUTRONHP_SKIP_MISSING_ISOTOPES
#### G4NEUTRONHP_DO_NOT_ADJUST_FINAL_STATE=1
#### export G4NEUTRONHP_DO_NOT_ADJUST_FINAL_STATE
#### G4NEUTRONHP_USE_ONLY_PHOTONEVAPORATION=1
#### export G4NEUTRONHP_USE_ONLY_PHOTONEVAPORATION
#### G4NEUTRONHP_NELECT_DOPPLER=1
#### export G4NEUTRONHP_NELECT_DOPPLER
#### G4NEUTRONHP_PRODUCE_FISSION_FRAGMENTS=1
#### export G4NEUTRONHP_PRODUCE_FISSION_FRAGMENTS
#### G4PHP_DO_NOT_ADJUST_FINAL_STATE=1
#### export G4PHP_DO_NOT_ADJUST_FINAL_STATE
#### G4PHP_NELECT_DOPPLER=1
#### export G4PHP_NELECT_DOPPLER
#
# for Bertini cascade
#
unset G4CASCADE_USE_PRECOMPOUND
#### G4CASCADE_USE_PRECOMPOUND=1
#### export G4CASCADE_USE_PRECOMPOUND
env |grep G4NEUTRONHP
env |grep G4PHP
env |grep G4CASCADE
@@ -0,0 +1,18 @@
#
# Macro file for "Hadr03.cc"
#
/control/verbose 1
/run/verbose 1
#
/testhadr/det/setIsotopeMat tritium 1 3 0.1 g/cm3
/testhadr/det/setSize 100 m
#
/run/initialize
#
/process/inactivate hadElastic
#
/gun/particle deuteron
/gun/energy 400 keV
#
/run/printProgress 10000
/run/beamOn 100000
+51 -42
View File
@@ -4,7 +4,7 @@
############################################
**************************************************************
Geant4 version Name: geant4-10-06-ref-06 (26-June-2020)
Geant4 version Name: geant4-10-07-ref-00 (4-December-2020)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -40,7 +40,7 @@ NeutronHP: /Inelastic file for Z = 6, A = 12 is not found and NeutronHP will use
### === Deexcitation model UAtomDeexcitation is activated for 1 region:
### === Auger cascade flag: 1
### === Ignore cuts flag: 0
### === Ignore cuts flag: 1
#
/process/list
Transportation, hadElastic, hadElastic, hadElastic
@@ -50,17 +50,16 @@ NeutronHP: /Inelastic file for Z = 6, A = 12 is not found and NeutronHP will use
hadElastic, hadElastic, hadElastic, hadElastic
hadElastic, hadElastic, hadElastic, hadElastic
hadElastic, hadElastic, hadElastic, hadElastic
hadElastic, hadElastic, hadElastic, hadElastic
hadElastic, neutronInelastic, nCapture, nFission
protonInelastic, pi+Inelastic, pi-Inelastic, kaon+Inelastic
kaon-Inelastic, kaon0LInelastic, kaon0SInelastic, lambdaInelastic
anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic, sigma+Inelastic
anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic, xi0Inelastic
anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic,anti_protonInelastic
anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic, anti_He3Inelastic
anti_alphaInelastic, ionElastic, dInelastic, tInelastic
He3Inelastic, alphaInelastic, ionInelastic, photonNuclear
RadioactiveDecayBase
hadElastic, hadElastic, hadElastic, neutronInelastic
nCapture, nFission, protonInelastic, pi+Inelastic
pi-Inelastic, kaon+Inelastic, kaon-Inelastic, kaon0LInelastic
kaon0SInelastic,anti_protonInelastic,anti_neutronInelastic,anti_deuteronInelastic
anti_tritonInelastic, anti_He3Inelastic,anti_alphaInelastic, lambdaInelastic
sigma+Inelastic, sigma-Inelastic, xi0Inelastic, xi-Inelastic
omega-Inelastic,anti_lambdaInelastic,anti_sigma+Inelastic,anti_sigma-Inelastic
anti_xi0Inelastic, anti_xi-Inelastic,anti_omega-Inelastic, ionElastic
dInelastic, tInelastic, He3Inelastic, alphaInelastic
ionInelastic, photonNuclear,RadioactiveDecayBase
#
/gun/particle proton
/gun/energy 10 MeV
@@ -79,13 +78,26 @@ Max 2J for sampling of angular correlations 10
Atomic de-excitation enabled 1
Auger electron emission enabled 1
Auger cascade enabled 1
Check EM cuts disabled for atomic de-excitation 0
Check EM cuts disabled for atomic de-excitation 1
Use Bearden atomic level energies 0
======================================================================
NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /cvmfs/geant4.cern.ch/share/data/G4NDL4.6/Capture/CrossSection/6_nat_Carbon
NeutronHP: /Elastic file for Z = 6, A = 12 is not found and NeutronHP will use /cvmfs/geant4.cern.ch/share/data/G4NDL4.6/Elastic/CrossSection/6_nat_Carbon
NeutronHP: /Inelastic file for Z = 6, A = 12 is not found and NeutronHP will use /cvmfs/geant4.cern.ch/share/data/G4NDL4.6/Inelastic/CrossSection/6_nat_Carbon
NeutronHP: /Elastic file for Z = 6, A = 12 is not found and NeutronHP will use /cvmfs/geant4.cern.ch/share/data/G4NDL4.6/Elastic/CrossSection/6_nat_Carbon
=======================================================
====== ParticleHP Physics Parameters ========
=======================================================
UseOnlyPhotoEvaporation ? 0
SkipMissingIsotopes ? 0
NeglectDoppler ? 0
DoNotAdjustFinalState ? 0
ProduceFissionFragments ? 0
UseWendtFissionModel ? 0
UseNRESP71Model ? 0
=======================================================
@@@ G4ParticleHPInelastic instantiated for particle neutron data directory variable is G4NEUTRONHPDATA pointing to /cvmfs/geant4.cern.ch/share/data/G4NDL4.6/Inelastic
NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /cvmfs/geant4.cern.ch/share/data/G4NDL4.6/Capture/CrossSection/6_nat_Carbon
@@ -139,9 +151,7 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_He3Inelastic
Model: FTFP: 0 eV /n ---> 25 GeV/n
Model: FTFP: 12 GeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
---------------------------------------------------
@@ -153,9 +163,7 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_alphaInelastic
Model: FTFP: 0 eV /n ---> 25 GeV/n
Model: FTFP: 12 GeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
---------------------------------------------------
@@ -167,11 +175,21 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_deuteronInelastic
Model: FTFP: 0 eV /n ---> 25 GeV/n
Model: FTFP: 12 GeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
---------------------------------------------------
Hadronic Processes for anti_lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: anti_lambdaInelastic
Model: QGSP: 12 GeV ---> 100 TeV
Model: FTFP: 0 eV ---> 25 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
Hadronic Processes for anti_neutron
@@ -181,9 +199,7 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_neutronInelastic
Model: FTFP: 0 eV ---> 25 GeV
Model: QGSP: 12 GeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
---------------------------------------------------
@@ -195,9 +211,7 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_protonInelastic
Model: FTFP: 0 eV ---> 25 GeV
Model: QGSP: 12 GeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
---------------------------------------------------
@@ -209,9 +223,7 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_tritonInelastic
Model: FTFP: 0 eV /n ---> 25 GeV/n
Model: FTFP: 12 GeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
---------------------------------------------------
@@ -268,10 +280,9 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: lambdaInelastic
Model: BertiniCascade: 0 eV ---> 6 GeV
Model: FTFP: 3 GeV ---> 25 GeV
Model: QGSP: 12 GeV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Model: FTFP: 3 GeV ---> 25 GeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
@@ -350,10 +361,9 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: sigma-Inelastic
Model: BertiniCascade: 0 eV ---> 6 GeV
Model: FTFP: 3 GeV ---> 25 GeV
Model: QGSP: 12 GeV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Model: FTFP: 3 GeV ---> 25 GeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
@@ -392,7 +402,6 @@ Store e- internal conversion data 1
Electron internal conversion ID 0
Correlated gamma emission flag 0
Max 2J for sampling of angular correlations 10
Upload data before 1st event for Z < 9
=======================================================================
========= Table of registered couples ============================
@@ -400,7 +409,7 @@ Upload data before 1st event for Z < 9
Index : 0 used in the geometry : Yes
Material : Molybdenum98
Range cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm
Energy thresholds : gamma 42.9817 keV e- 1.43711 MeV e+ 1.35304 MeV proton 0 eV
Energy thresholds : gamma 42.9443 keV e- 1.44302 MeV e+ 1.36749 MeV proton 0 eV
Region(s) which use this couple :
DefaultRegionForTheWorld
@@ -425,7 +434,7 @@ Index : 0 used in the geometry : Yes
Run terminated.
Run Summary
Number of events processed : 10000
User=0.280000s Real=0.299211s Sys=0.010000s
User=0.100000s Real=0.117273s Sys=0.000000s
The run is 10000 proton of 10 MeV through 10 m of Molybdenum98 (density: 10.28 g/cm3 )
@@ -447,7 +456,7 @@ Run Summary
proton + Mo98 --> N gamma or e- + Tc99: 1 Q = 6.4945 MeV
proton + Mo98 --> N gamma or e- + Tc99[142.683]: 1 Q = 6.3518 MeV
proton + Mo98 --> N gamma or e- + neutron + Tc98: 1873 Q = -2.4771 MeV
proton + Mo98 --> N gamma or e- + proton + Mo98: 13 Q = -9.3784e-06 eV
proton + Mo98 --> N gamma or e- + proton + Mo98: 13 Q = -8.6404e-06 eV
proton + Mo98 --> proton + Mo98: 8112 Q = -5.6975e-06 eV
number of gamma or e- (ic): N = 1 --> 10
@@ -1,7 +1,5 @@
#
# Macro file for "Hadr03.cc"
# (can be run in batch, without graphic)
#
#
/control/verbose 2
/run/verbose 2
@@ -19,5 +17,4 @@
/gun/energy 140 MeV
#
/run/printProgress 10000
#
/run/beamOn 100000
@@ -1,8 +1,13 @@
#
# Macro file for "Hadr03.cc"
#
# NB. for neutronHP, do not forget to activate
# G4NEUTRONHP_PRODUCE_FISSION_FRAGMENTS
# NB. for neutronHP, do not forget to activate the fission fragment model
# via one, and only one, of the following two UI commands:
# - To use the default fission model:
#/process/had/particle_hp/produce_fission_fragment true
#
# - To use the alternative Wendt fission model:
#/process/had/particle_hp/use_Wendt_fission_model true
#
/control/verbose 2
/run/verbose 2