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
@@ -52,11 +52,7 @@
to be accurate (see param->SetStepFunction(1., 1*mm)).
Several hadronic physics options are controlled by environment variables.
To trigger them, the envHadronic.csh script 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 Activation.cc
\section Activation_s3 AN EVENT : THE PRIMARY GENERATOR
@@ -179,5 +175,12 @@ Idle> type your commands
....
Idle> exit
\endverbatim
Macros provided in this example:
- Bi209.mac: neutron (25 meV) on 10 cm of Bi209
- Co60.mac: neutron (25 meV) on 1 cm of Cobalt.
Macros to be run interactively:
- debug.mac: neutron (25 meV) on Cobalt
- vis.mac: To activate visualization
*/
@@ -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,7 +10,6 @@
###/testhadr/det/setSizeYZ 1 cm
#
/run/initialize
/process/list
#
/gun/particle neutron
/gun/energy 25 meV
@@ -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
@@ -31,7 +31,7 @@
ElmMassFraction: 100.00 % ElmAbundance 100.00 %
FTFP_BERT_HP : new threshold between BERT and FTFP is over the interval
hInelastic FTFP_BERT_HP : threshold between BERT and FTFP is over the interval
for pions : 3 to 6 GeV
for kaons : 3 to 6 GeV
for proton : 3 to 6 GeV
@@ -43,56 +43,6 @@
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
/process/list
Transportation, hadElastic, hadElastic, hadElastic
hadElastic, hadElastic, hadElastic, hadElastic
hadElastic, hadElastic, hadElastic, hadElastic
hadElastic, hadElastic, hadElastic, hadElastic
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,hFritiofCaptureAtRest
hBertiniCaptureAtRest,muMinusCaptureAtRest, photonNuclear, msc
hIoni, msc, hIoni, msc
hIoni, msc, hIoni, msc
hIoni, msc, hIoni, msc
hIoni, msc, hIoni, msc
ionIoni, nuclearStopping, msc, ionIoni
nuclearStopping, msc, ionIoni, nuclearStopping
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, eIoni, eBrem, annihil
msc, eIoni, eBrem, phot
compt, conv, msc, hIoni
msc, hIoni, msc, hIoni
msc, muIoni, muBrems, muPairProd
msc, muIoni, muBrems, muPairProd
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, msc, hIoni
msc, hIoni, Decay,RadioactiveDecayBase
#
/gun/particle neutron
/gun/energy 25 meV
@@ -111,19 +61,54 @@ 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
====================================================================
HADRONIC PROCESSES SUMMARY (verbose level 1)
---------------------------------------------------
Hadronic Processes for B-
Process: hadElastic
Model: hElasticLHEP: 0 meV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
Process: B-Inelastic
Model: FTFP: 0 meV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
---------------------------------------------------
Hadronic Processes for D-
Process: hadElastic
Model: hElasticLHEP: 0 meV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
Process: D-Inelastic
Model: FTFP: 0 meV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
---------------------------------------------------
Hadronic Processes for GenericIon
@@ -204,6 +189,19 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Process: hFritiofCaptureAtRest
---------------------------------------------------
Hadronic Processes for anti_lambda
Process: hadElastic
Model: hElasticLHEP: 0 meV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
Process: anti_lambdaInelastic
Model: FTFP: 0 meV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
Hadronic Processes for anti_neutron
@@ -300,8 +298,8 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
Process: lambdaInelastic
Model: BertiniCascade: 0 meV ---> 6 GeV
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 meV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
---------------------------------------------------
@@ -383,8 +381,8 @@ NeutronHP: /Capture file for Z = 6, A = 12 is not found and NeutronHP will use /
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
Process: sigma-Inelastic
Model: BertiniCascade: 0 meV ---> 6 GeV
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 meV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 meV ---> 100 TeV
Process: hBertiniCaptureAtRest
@@ -425,7 +423,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 ============================
@@ -465,36 +462,36 @@ Index : 1 used in the geometry : Yes
Run terminated.
Run Summary
Number of events processed : 1000
User=6.020000s Real=6.065860s Sys=0.000000s
User=0.210000s Real=0.223482s Sys=0.000000s
The run is 1000 neutron of 25 meV through 1 cm of G4_Co (density: 8.9 g/cm3 )
Process calls frequency :
RadioactiveDecayBase= 3931 Transportation= 11106 annihil= 25
compt= 1291 conv= 29 eIoni= 2570
hadElastic= 142 ionIoni= 2038 msc= 581
nCapture= 948 phot= 313
RadioactiveDecayBase= 3955 Transportation= 11124 annihil= 19
compt= 1246 conv= 26 eIoni= 4507
hadElastic= 150 ionIoni= 2054 msc= 695
nCapture= 952 phot= 438
List of generated particles:
Co59: 142 Emean = 38.818 meV ( 0.25571 meV --> 199.86 meV) stable
Co60: 948 Emean = 258.87 eV ( 213.41 meV --> 516.37 eV ) mean life = 7.6098 y
Ni60: 948 Emean = 15.907 eV ( 15.907 eV --> 15.907 eV ) stable
Ni60[1332.514]: 948 Emean = 12.369 eV ( 12.331 eV --> 31.093 eV ) mean life = 0 ps
Ni60[2505.753]: 945 Emean = 1.5001 eV ( 24.411 meV --> 3.5949 eV ) mean life = 0 ps
anti_nu_e: 948 Emean = 221.28 keV ( 37.028 keV --> 844.87 keV) stable
e+: 29 Emean = 2.7013 MeV ( 286.87 keV --> 6.0593 MeV) stable
e-: 2581 Emean = 308.29 keV ( 40.664 eV --> 7.2245 MeV) stable
gamma: 4354 Emean = 1.7542 MeV ( 1.0951 keV --> 7.4919 MeV) stable
Co59: 150 Emean = 40.858 meV ( 0.25571 meV --> 199.86 meV) stable
Co60: 952 Emean = 255.39 eV ( 74.628 meV --> 520.2 eV ) mean life = 7.6098 y
Ni60: 952 Emean = 15.907 eV ( 15.907 eV --> 15.907 eV ) stable
Ni60[1332.514]: 952 Emean = 12.368 eV ( 12.331 eV --> 24.808 eV ) mean life = 0 ps
Ni60[2505.753]: 949 Emean = 1.458 eV ( 18.554 meV --> 3.6944 eV ) mean life = 0 ps
anti_nu_e: 952 Emean = 224.29 keV ( 21.578 keV --> 1.4516 MeV) stable
e+: 26 Emean = 2.7006 MeV ( 277.83 keV --> 6.4147 MeV) stable
e-: 4539 Emean = 186.45 keV ( 1.6672 eV --> 7.2245 MeV) stable
gamma: 4462 Emean = 1.7004 MeV ( 682.6 eV --> 7.4919 MeV) stable
Mean energy deposit per event = 794.13 keV rms = 1.2575 MeV
Mean energy flow per event = 7.1109 MeV rms = 2.9259 MeV
Mean energy deposit per event = 789.1 keV rms = 1.2313 MeV
Mean energy flow per event = 7.0722 MeV rms = 2.8578 MeV
List of particles emerging from the target :
anti_nu_e: 948 Emean = 221.28 keV ( 37.028 keV --> 844.87 keV) Eflow/event = 209.78 keV
e+: 4 Emean = 2.8252 MeV ( 2.3239 MeV --> 3.6016 MeV) Eflow/event = 11.301 keV
e-: 33 Emean = 1.9291 MeV ( 202.55 keV --> 6.878 MeV) Eflow/event = 63.661 keV
gamma: 4012 Emean = 1.7014 MeV ( 46.436 keV --> 7.4919 MeV) Eflow/event = 6.8262 MeV
neutron: 52 Emean = 26.21 meV ( 9.1504 meV --> 46.671 meV) Eflow/event = 1.3629 meV
anti_nu_e: 952 Emean = 224.29 keV ( 21.578 keV --> 1.4516 MeV) Eflow/event = 213.52 keV
e+: 7 Emean = 3.2555 MeV ( 976.04 keV --> 6.0613 MeV) Eflow/event = 22.789 keV
e-: 49 Emean = 2.0359 MeV ( 69.641 keV --> 6.6919 MeV) Eflow/event = 99.76 keV
gamma: 3998 Emean = 1.6849 MeV ( 58.019 keV --> 7.4919 MeV) Eflow/event = 6.7362 MeV
neutron: 48 Emean = 24.729 meV ( 9.1396 meV --> 38.264 meV) Eflow/event = 1.187 meV
histo Id for populations :
Co59 id = 26
@@ -504,11 +501,11 @@ Run Summary
--------- Ranecu engine status ---------
Initial seed (index) = 0
Current couple of seeds = 1360211405, 961669395
Current couple of seeds = 1145399635, 1983120842
----------------------------------------
G4 kernel has come to Quit state.
================== Deleting memory pools ===================
Number of memory pools allocated: 11 of which, static: 0
Dynamic pools deleted: 11 / Total memory freed: 0.024 MB
Dynamic pools deleted: 11 / Total memory freed: 0.027 MB
============================================================
RunManagerKernel is deleted. Good bye :)
@@ -2,7 +2,7 @@
# Macro file for "Activation.cc"
#
/control/verbose 2
/run/verbose 2
/run/verbose 1
#
/testhadr/det/setIsotopeMat Bi209 83 209 9.78 g/cm3
/testhadr/det/setThickness 10 cm
@@ -10,22 +10,19 @@
#
/run/initialize
#
/process/list
#
/gun/particle neutron
/gun/energy 25 meV
/testhadr/gun/beamSize 25 mm
/testhadr/gun/beamTime 3 year
#
/analysis/setFileName Bi209
/analysis/h1/set 4 100 0 6 MeV #gamma
/analysis/h1/set 14 100 0 4 year #gamma
/analysis/h1/set 24 100 0 4 year
/analysis/h1/set 25 100 0 4 year
/analysis/h1/set 26 100 0 4 year
/analysis/h1/set 27 100 0 4 year
/analysis/h1/set 28 100 0 4 year
/analysis/h1/set 4 100 0 6 MeV #gamma
/analysis/h1/set 14 100 0 4 year #gamma
/analysis/h1/set 24 100 0 4 year #(Bi209)
/analysis/h1/set 25 100 0 4 year #(Bi210)
/analysis/h1/set 26 100 0 4 year #(Po210)
/analysis/h1/set 27 100 0 4 year #(alpha)
/analysis/h1/set 28 100 0 4 year #(Pb206)
#
/run/printProgress 100000
#
/run/beamOn 1000000
@@ -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(Activation)
#----------------------------------------------------------------------------
@@ -2,7 +2,7 @@
# Macro file for "Activation.cc"
#
/control/verbose 2
/run/verbose 2
/run/verbose 1
#
/testhadr/det/setMat G4_Co
/testhadr/det/setThickness 1 cm
@@ -18,12 +18,11 @@
/testhadr/gun/beamTime 10 year
#
/analysis/setFileName Co60
/analysis/h1/set 4 100 0 8 MeV #gamma
/analysis/h1/set 14 100 0 20 year #gamma
/analysis/h1/set 24 100 0 20 year
/analysis/h1/set 25 100 0 20 year
/analysis/h1/set 26 100 0 20 year
/analysis/h1/set 4 100 0 8 MeV #gamma
/analysis/h1/set 14 100 0 20 year #gamma
/analysis/h1/set 24 100 0 20 year #(Co60)
/analysis/h1/set 25 100 0 20 year #(Ni60)
/analysis/h1/set 26 100 0 20 year #(Co59)
#
/run/printProgress 10000
#
/run/beamOn 100000
@@ -12,6 +12,14 @@ track of all tags.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
26-10-20 mma (activation-V10-06-03)
- README : add macros description
05-08-20 Alberto Ribon (activation-V10-06-02)
- envHadronic.(c)sh : removed deprecated HP environmental variables
and replaced them with corresponding C++ calls in the main.
(These two shell-script files will be removed in G4 11.0.)
21-06-20 mma (activation-V10-06-01)
- Run.cc, line 188 : correct a protection on maximum number of histos
@@ -53,9 +53,7 @@
to be accurate (see param->SetStepFunction(1., 1*mm)).
Several hadronic physics options are controlled by environment variables.
To trigger them, the envHadronic.csh script has been added in this example.
One must select the options wished, and do
source envHadronic.[c]sh
To select them, see Activation.cc
3- AN EVENT : THE PRIMARY GENERATOR
@@ -158,3 +156,11 @@
Idle> type your commands
....
Idle> exit
Macros provided in this example:
- Bi209.mac: neutron (25 meV) on 10 cm of Bi209
- Co60.mac: neutron (25 meV) on 1 cm of Cobalt.
Macros to be run interactively:
- debug.mac: neutron (25 meV) on Cobalt
- vis.mac: To activate visualization
@@ -9,8 +9,6 @@
#
/run/initialize
#
/process/list
#
/gun/particle neutron
/gun/energy 25 meV
#
+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
@@ -5,7 +5,7 @@
//
TCanvas* c1 = new TCanvas("c1", " ");
c1->SetLogy(0);
c1->SetLogy(1);
c1->cd();
c1->Update();