Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -36,11 +36,7 @@
|
||||
A command allows to select or not ThermalScattering model.
|
||||
|
||||
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 Hadr04.cc
|
||||
|
||||
NB. class NeutronHPphysics can be reused with other physicsConstructors,
|
||||
as neutron processes are deleted before to be re-created.
|
||||
@@ -125,5 +121,12 @@ Idle> control/execute vis.mac
|
||||
....
|
||||
Idle> exit
|
||||
\endverbatim
|
||||
|
||||
|
||||
Macros provided in this example:
|
||||
- graphite.mac: neutron (2 MeV) in graphite
|
||||
- run01.mac: neutron (2 MeV) in Water_ts
|
||||
|
||||
Macros to be run interactively:
|
||||
- debug.mac: neutron (2 MeV) in Water_ts
|
||||
- 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(Hadr04)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
@@ -49,6 +49,8 @@
|
||||
#include "G4UIExecutive.hh"
|
||||
#include "G4VisExecutive.hh"
|
||||
|
||||
#include "G4ParticleHPManager.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
int main(int argc,char** argv) {
|
||||
@@ -81,6 +83,22 @@ int main(int argc,char** argv) {
|
||||
//initialize visualization
|
||||
G4VisManager* visManager = nullptr;
|
||||
|
||||
// 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 );
|
||||
|
||||
//get the pointer to the User Interface manager
|
||||
G4UImanager* UImanager = G4UImanager::GetUIpointer();
|
||||
|
||||
|
||||
@@ -12,6 +12,14 @@ track of all tags.
|
||||
----------------------------------------------------------
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
22-10-20 mma (exhadr04-V10-06-01)
|
||||
- README : add macros descrption
|
||||
|
||||
05-08-20 A. Ribon (exhadr04-V10-06-00)
|
||||
- envHadronic.(c)sh , Hadr04.cc : 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.)
|
||||
|
||||
25-06-18 mma (exhadr04-V10-04-04)
|
||||
- envHadronic : add env variables for particleHP (PHP)
|
||||
|
||||
@@ -39,9 +39,7 @@
|
||||
A command allows to select or not ThermalScattering model.
|
||||
|
||||
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 Hadr04.cc
|
||||
|
||||
NB. class NeutronHPphysics can be reused with other physicsConstructors,
|
||||
as neutron processes are deleted before to be re-created.
|
||||
@@ -116,3 +114,11 @@
|
||||
Idle> type your commands
|
||||
....
|
||||
Idle> exit
|
||||
|
||||
Macros provided in this example:
|
||||
- graphite.mac: neutron (2 MeV) in graphite
|
||||
- run01.mac: neutron (2 MeV) in Water_ts
|
||||
|
||||
Macros to be run interactively:
|
||||
- debug.mac: neutron (2 MeV) in Water_ts
|
||||
- vis.mac: To activate visualization
|
||||
|
||||
Executable → Regular
+1
-9
@@ -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
|
||||
|
||||
Executable → Regular
+1
-23
@@ -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
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#
|
||||
# Macro file for "Hadr04.cc"
|
||||
# (can be run in batch, without graphic)
|
||||
#
|
||||
# neutron 2 MeV; all processes
|
||||
#
|
||||
@@ -14,8 +13,6 @@
|
||||
#
|
||||
/run/initialize
|
||||
#
|
||||
/process/list
|
||||
#
|
||||
/particle/createAllIsomer
|
||||
/gun/particle neutron
|
||||
/gun/energy 2 MeV
|
||||
@@ -30,5 +27,4 @@
|
||||
/analysis/h1/set 7 100 0. 500. meV #energy dist <1eV
|
||||
#
|
||||
/run/printProgress 200
|
||||
#
|
||||
/run/beamOn 2000
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#
|
||||
# Macro file for "Hadr04.cc"
|
||||
# (can be run in batch, without graphic)
|
||||
#
|
||||
# neutron 2 MeV; all processes
|
||||
#
|
||||
@@ -12,11 +11,8 @@
|
||||
#
|
||||
/run/initialize
|
||||
#
|
||||
/process/list
|
||||
#
|
||||
/gun/particle neutron
|
||||
/gun/energy 2 MeV
|
||||
#
|
||||
/run/printProgress 100
|
||||
#
|
||||
/run/beamOn 1000
|
||||
|
||||
@@ -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
|
||||
@@ -48,15 +48,10 @@ NeutronHP: /Inelastic file for Z = 6, A = 12 is not found and NeutronHP will use
|
||||
physicsList->CheckParticleList() start.
|
||||
physicsList->setCut() start.
|
||||
#
|
||||
/process/list
|
||||
Transportation, hadElastic, neutronInelastic, nCapture
|
||||
nFission
|
||||
#
|
||||
/gun/particle neutron
|
||||
/gun/energy 2 MeV
|
||||
#
|
||||
/run/printProgress 100
|
||||
#
|
||||
/run/beamOn 1000
|
||||
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
|
||||
@@ -108,6 +103,19 @@ Element TS_C_of_Graphite, internal thermal scattering id 2
|
||||
Cr_sctns: GheishaFissionXS: 0 meV ---> 100 TeV
|
||||
|
||||
================================================================
|
||||
|
||||
=======================================================
|
||||
====== 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
|
||||
|
||||
@@ -129,7 +137,7 @@ Region <DefaultRegionForParallelWorld> -- -- is not associated to any world.
|
||||
Index : 0 used in the geometry : Yes
|
||||
Material : Water_ts
|
||||
Range cuts : gamma 1 mm e- 1 mm e+ 1 mm proton 0 fm
|
||||
Energy thresholds : gamma 2.92994 keV e- 349.731 keV e+ 342.774 keV proton 0 meV
|
||||
Energy thresholds : gamma 2.94056 keV e- 351.877 keV e+ 342.545 keV proton 0 meV
|
||||
Region(s) which use this couple :
|
||||
DefaultRegionForTheWorld
|
||||
|
||||
@@ -159,31 +167,29 @@ G4GeometryManager::ReportVoxelStats -- Voxel Statistics
|
||||
Run terminated.
|
||||
Run Summary
|
||||
Number of events processed : 1000
|
||||
User=233.840000s Real=236.697636s Sys=0.090000s
|
||||
User=14.100000s Real=15.692123s Sys=0.000000s
|
||||
|
||||
The run is 1000 neutron of 2 MeV through 50 cm of Water_ts (density: 1 g/cm3 )
|
||||
|
||||
Process calls frequency :
|
||||
hadElastic= 215165 nCapture= 999 neutronInelastic= 1
|
||||
hadElastic= 212297 nCapture= 1000
|
||||
|
||||
Parcours of incident neutron:
|
||||
nb of collisions E>1*eV= 16.626 E<1*eV= 199.54 total= 216.16
|
||||
track length E>1*eV= 20.325 cm E<1*eV= 75.019 cm total= 95.344 cm
|
||||
time of flight E>1*eV= 730.97 ns E<1*eV= 205.37 us total= 206.11 us
|
||||
nb of collisions E>1*eV= 16.632 E<1*eV= 196.66 total= 213.3
|
||||
track length E>1*eV= 20.575 cm E<1*eV= 73.951 cm total= 94.526 cm
|
||||
time of flight E>1*eV= 757.71 ns E<1*eV= 202.38 us total= 203.14 us
|
||||
|
||||
List of generated particles:
|
||||
C14: 1 Emean = 11.075 keV ( 11.075 keV --> 11.075 keV)
|
||||
O16: 3020 Emean = 38.678 keV ( 0.12198 meV --> 446.24 keV)
|
||||
O17: 1 Emean = 76.431 meV ( 76.431 meV --> 76.431 meV)
|
||||
O18: 14 Emean = 7.4688 keV ( 24.186 meV --> 54.352 keV)
|
||||
alpha: 1 Emean = 38.761 keV ( 38.761 keV --> 38.761 keV)
|
||||
deuteron: 1000 Emean = 3.0191 keV ( 1.2807 keV --> 1.6989 MeV)
|
||||
gamma: 1001 Emean = 2.2217 MeV ( 884.49 keV --> 2.2244 MeV)
|
||||
proton: 22943 Emean = 82.049 keV ( 0.20372 meV --> 1.9976 MeV)
|
||||
O16: 3011 Emean = 36.952 keV ( 1.3171 meV --> 446.18 keV)
|
||||
O17: 1 Emean = 50.919 eV ( 50.919 eV --> 50.919 eV )
|
||||
O18: 10 Emean = 9.8299 keV ( 68.413 meV --> 43.242 keV)
|
||||
deuteron: 1001 Emean = 3.0171 keV ( 1.2773 keV --> 1.6989 MeV)
|
||||
gamma: 1000 Emean = 2.2244 MeV ( 2.2243 MeV --> 2.2244 MeV)
|
||||
proton: 22869 Emean = 82.557 keV ( 0.13519 meV --> 1.9968 MeV)
|
||||
|
||||
--------- Ranecu engine status ---------
|
||||
Initial seed (index) = 0
|
||||
Current couple of seeds = 75733026, 627368862
|
||||
Current couple of seeds = 1917736028, 4820262
|
||||
----------------------------------------
|
||||
G4 kernel has come to Quit state.
|
||||
UserDetectorConstruction deleted.
|
||||
@@ -203,12 +209,12 @@ Pool ID '7G4Event', size : 0.000961 MB
|
||||
Pool ID '15G4PrimaryVertex', size : 0.000961 MB
|
||||
Pool ID '17G4PrimaryParticle', size : 0.000961 MB
|
||||
Pool ID '17G4DynamicParticle', size : 0.0125 MB
|
||||
Pool ID '7G4Track', size : 0.025 MB
|
||||
Pool ID '7G4Track', size : 0.024 MB
|
||||
Pool ID '18G4TouchableHistory', size : 0.000961 MB
|
||||
Pool ID '15G4CountedObjectIvE', size : 0.000961 MB
|
||||
Pool ID '17G4ReactionProduct', size : 0.000961 MB
|
||||
Number of memory pools allocated: 10 of which, static: 0
|
||||
Dynamic pools deleted: 10 / Total memory freed: 0.048 MB
|
||||
Dynamic pools deleted: 10 / Total memory freed: 0.047 MB
|
||||
============================================================
|
||||
G4Allocator objects are deleted.
|
||||
UImanager deleted.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#
|
||||
# Macro file for "Hadr04.cc"
|
||||
# (can be run in batch, without graphic)
|
||||
#
|
||||
# neutron 2 MeV; all processes
|
||||
#
|
||||
@@ -29,5 +28,4 @@
|
||||
/analysis/h1/set 7 100 0. 500. meV #energy dist <1eV
|
||||
#
|
||||
/run/printProgress 200
|
||||
#
|
||||
/run/beamOn 2000
|
||||
|
||||
Reference in New Issue
Block a user