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
@@ -1,5 +1,8 @@
#---Adding all polarisation examples subdirectories explicitly
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()
add_subdirectory(Pol01)
+13 -4
View File
@@ -15,11 +15,20 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
November 10th, 2020 B. Morgan (exPolarisation-V10-06-01)
- Enforce use of Serial RunManager for serial-only examples.
November 10th, 2020 B. Morgan (exPolarisation-V10-06-00)
- Migrate to G4RunManagerFactory.
November 3rd, 2020 B. Morgan (exPolarisation-V10-06-00)
- Support same CMake version range as core Geant4
May 13th, 2015 Ivana Hrivnacova (exPolarisation-V10-01-00)
- Fixed README file
Apr 1st, 2013 Andrea Dotti (exPolarisation-V09-06-00)
- New interfaces for G4MT
- New interfaces for G4MT
Nov 23rd, 2012 Ivana Hrivnacova (exPolarisation-V09-05-02)
- Updated documentation:
@@ -34,7 +43,7 @@ Sep 29th, 2012 Ivana Hrivnacova (exPolarisation-V09-05-01)
Sep 24th, 2012 Ivana Hrivnacova (exPolarisation-V09-05-00)
- Updated CMakeLists.txt files:
adding visualization, optional external package (AIDA), copying macros,
install target and comment lines
adding visualization, optional external package (AIDA), copying macros,
install target and comment lines
- Added explicit includes of G4SystemOfUnits.hh and G4PhysicalConstants.hh
- Replaced tabulators with space characters
- Replaced tabulators with space characters
@@ -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(Pol01)
#----------------------------------------------------------------------------
+11 -5
View File
@@ -15,6 +15,12 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
13-11-20 B. Morgan (expol01-V10-06-01)
- Enforce use of Serial RunManager.
10-11-20 B.Morgan (expol01-V10-06-00)
- Migrate to G4RunManagerFactory.
17-05-18 J.Allison (expol01-V10-04-00)
- Add #include "G4Types.hh"
- Remove G4UI_USE and G4VIS_USE.
@@ -37,8 +43,8 @@ track of all tags.
- RunAction - fixed compillation at gcc 4.1
11-11-14 V.Ivanchenko (expol01-V10-00-01)
- Several updates for the unification of the example: use standard
physics builder from physics_list sub-package; removed local
- Several updates for the unification of the example: use standard
physics builder from physics_list sub-package; removed local
SetCuts() method; removed AIDA histograms
16-10-14 I.Hrivnacova (expol01-V10-00-00)
@@ -60,10 +66,10 @@ track of all tags.
- Introduced G4UIExecutive.
06-06-10 J.Perl (expol01-V09-03-01)
- Remove unused variable in EventAction
- Remove unused variable in EventAction
04-06-10 J.Perl (expol01-V09-03-00)
- Updated vis usage
- Updated vis usage
20-11-09 V.Ivanchenko (expol01-V09-02-00)
- Update msc processes according to 9.3 scheme
@@ -89,7 +95,7 @@ track of all tags.
02-10-06 V.Ivanchenko (expol01-V08-01-00)
- first tag
11-08-06 Andreas Schaelicke
- created from TestEm15
+17 -17
View File
@@ -26,13 +26,13 @@
/// \file polarisation/Pol01/Pol01.cc
/// \brief Main program of the polarisation/Pol01 example
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4RunManagerFactory.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
@@ -48,9 +48,9 @@
#include "G4UIExecutive.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
int main(int argc,char** argv) {
// Instantiate G4UIExecutive if interactive mode
G4UIExecutive* ui = nullptr;
if ( argc == 1 ) {
@@ -60,9 +60,9 @@ int main(int argc,char** argv) {
//choose the Random engine
// CLHEP::HepRandom::setTheEngine(new CLHEP::RanecuEngine);
CLHEP::HepRandom::setTheEngine(new CLHEP::RanluxEngine());
// Construct the default run manager
G4RunManager * runManager = new G4RunManager;
// Construct a serial run manager
auto* runManager = G4RunManagerFactory::CreateRunManager(G4RunManagerType::SerialOnly);
// set mandatory initialization classes
DetectorConstruction* det;
@@ -75,31 +75,31 @@ int main(int argc,char** argv) {
visManager->Initialize();
// set user action classes
RunAction* run;
runManager->SetUserAction(run = new RunAction(det,prim));
RunAction* run;
runManager->SetUserAction(run = new RunAction(det,prim));
runManager->SetUserAction(new EventAction(run));
runManager->SetUserAction(new SteppingAction(det,prim,run));
// get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
// get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
if (ui) // Define UI terminal for interactive mode
{
{
ui->SessionStart();
delete ui;
}
else // Batch mode
{
{
G4String command = "/control/execute ";
G4String fileName = argv[1];
UImanager->ApplyCommand(command+fileName);
}
// job termination
// job termination
delete visManager;
delete runManager;
return 0;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+38 -32
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
@@ -26,10 +26,12 @@ Registered graphics systems are:
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
OpenGLImmediateXm (OGLIXm, OGLI)
OpenGLStoredXm (OGLSXm, OGL, OGLS)
OpenGLImmediateX (OGLIX, OGLIXm_FALLBACK)
OpenGLStoredX (OGLSX, OGLSXm_FALLBACK)
OpenGLImmediateQt (OGLIQt, OGLI)
OpenGLStoredQt (OGLSQt, OGL, OGLS)
OpenGLImmediateXm (OGLIXm, OGLIQt_FALLBACK)
OpenGLStoredXm (OGLSXm, OGLSQt_FALLBACK)
OpenGLImmediateX (OGLIX, OGLIQt_FALLBACK, OGLIXm_FALLBACK)
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RayTracerX)
Registering model factories...
@@ -63,7 +65,8 @@ End of Run User Vis Actions: none
Some /vis commands (optionally) take a string to specify colour.
"/vis/list" to see available colours.
... open Root analysis file : pol01.root - done
... create file : pol01.root - done
... open analysis file : pol01.root - done
/run/verbose 2
#
/testem/det/setMat G4_Fe
@@ -117,9 +120,9 @@ pol-conv: for gamma SubType=14 BuildTable=1
polConv : Emin= 0 eV Emax= 100 TeV ModifiedTsai
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimType: 1, latDisp: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
UrbanMsc : Emin= 0 eV Emax= 100 TeV Nbins=84 100 eV - 100 TeV
StepLim=UseSafety Rfact=0.04 Gfact=2.5 Sfact=0.6 DispFlag:1 Skin=1 Llimit=1
pol-eIoni: for e- SubType=2
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
@@ -135,9 +138,9 @@ pol-eBrem: for e- SubType=3
PolBrem : Emin= 0 eV Emax= 100 TeV ModifiedTsai
msc: for e+ SubType= 10
RangeFactor= 0.04, stepLimType: 1, latDisp: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
UrbanMsc : Emin= 0 eV Emax= 100 TeV Nbins=84 100 eV - 100 TeV
StepLim=UseSafety Rfact=0.04 Gfact=2.5 Sfact=0.6 DispFlag:1 Skin=1 Llimit=1
pol-eIoni: for e+ SubType=2
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
@@ -181,7 +184,7 @@ Index : 0 used in the geometry : Yes
Index : 1 used in the geometry : Yes
Material : G4_Fe
Range cuts : gamma 100 um e- 100 um e+ 100 um proton 100 um
Energy thresholds : gamma 6.28725 keV e- 235.568 keV e+ 227.81 keV proton 10 keV
Energy thresholds : gamma 6.28375 keV e- 235.116 keV e+ 228.88 keV proton 10 keV
Region(s) which use this couple :
DefaultRegionForTheWorld
@@ -201,41 +204,44 @@ See commands in /vis/modeling/trajectories/ for other options.
Run terminated.
Run Summary
Number of events processed : 10000
User=0.130000s Real=0.133702s Sys=0.000000s
User=0.070000s Real=0.069545s Sys=0.000000s
The run consists of 10000 gamma of 10 MeV through 1.75 mm of G4_Fe (density: 7.874 g/cm3 )
Process calls frequency --->
Transportation = 31156
pol-compt = 287
pol-eBrem = 331
msc = 1720
pol-conv = 222
pol-eIoni = 677
pol-annihil = 66
pol-phot = 166
Transportation = 31150
pol-compt = 288
pol-eBrem = 336
msc = 1703
pol-conv = 208
pol-eIoni = 680
pol-annihil = 64
pol-phot = 174
Gamma:
Mean Number per Event :1.0066
Mean Energy :9.5835 MeV +- 1.8873 MeV
Mean Polarization :-0.9656 +- 0.17926
Mean Number per Event :1.0075
Mean Energy :9.5879 MeV +- 1.873 MeV
Mean Polarization :-0.96606 +- 0.17867
Electron:
Mean Number per Event :0.0353
Mean Energy :5.1761 MeV +- 2.628 MeV
Mean Polarization :-0.70068 +- 0.31751
Mean Number per Event :0.0351
Mean Energy :5.0764 MeV +- 2.6308 MeV
Mean Polarization :-0.70158 +- 0.30574
Positron:
Mean Number per Event :0.0159
Mean Energy :4.4843 MeV +- 2.0721 MeV
Mean Polarization :-0.65478 +- 0.30832
... write Root file : pol01.root - done
... close Root file : pol01.root - done
Mean Number per Event :0.0149
Mean Energy :4.2903 MeV +- 2.0442 MeV
Mean Polarization :-0.64106 +- 0.30908
... write file : pol01.root - done
... close file : pol01.root - done
--------- Ranlux engine status ---------
Initial seed = 9876
float_seed_table[] = 0.346031 0.0859698 0.387714 0.673094 0.510114 0.676633 0.621628 0.0509967 0.274995 0.641216 0.225294 0.281374 0.0779726 0.578032 0.769554 0.0366569 0.467441 0.252705 0.206082 0.62185 0.0818613 0.321281 0.408123 0.638862
i_lag = 3, j_lag = 13
carry = 0, count24 = 12
float_seed_table[] = 0.833699 0.78332 0.0652168 0.500713 0.232817 0.0598344 0.0871152 0.627404 0.0401857 0.252922 0.831884 0.0136842 0.406118 0.820797 0.13577 0.449864 0.770882 0.364361 0.729599 0.943753 0.876379 0.253382 0.754363 0.37449
i_lag = 7, j_lag = 17
carry = 0, count24 = 2
luxury = 3 nskip = 199
----------------------------------------
0 events have been kept for refreshing and/or reviewing.
"/vis/reviewKeptEvents" to review them one by one.
"/vis/enable", then "/vis/viewer/flush" or "/vis/viewer/rebuild" to see them accumulated.
#
Graphics systems deleted.
Visualization Manager deleting...