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,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(decayer6)
#----------------------------------------------------------------------------
@@ -13,9 +13,15 @@ modifications introduced in the code and keep track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
13/11/20 B.Morgan (p6decayer-V10-06-01)
- Enforce use of Serial RunManager.
10/11/2020 B.Morgan (p6decayer-V10-06-00)
- Migration to G4RunManagerFactory.
29/09/2017 I.Hrivnacova (p6decayer-V10-03-00,01)
- Updated for changes in common classes
- Updated main (removed G4UI_USE, G4VIS_USE macros, moved initialization
- Updated main (removed G4UI_USE, G4VIS_USE macros, moved initialization
in macros)
24/10/2016 I.Hrivnacova (p6decayer-V10-02-05)
@@ -25,16 +31,16 @@ modifications introduced in the code and keep track of all tags.
- remove direct use of aParticleIterator, use GetParticleTableIterator().
fix required by clang39 on Linux and MAC
21/07/2016 I.Hrivnacova (p6decayer-V10-02-03)
21/07/2016 I.Hrivnacova (p6decayer-V10-02-03)
- Adding extern keyword to data declarations in pythia6_common_address.c
This fixes problem on MAC OSX, where no decay happenned.
20/07/2016 I.Hrivnacova (p6decayer-V10-02-02)
20/07/2016 I.Hrivnacova (p6decayer-V10-02-02)
- Fixed compiler warning
- Coding guidelines in common
04/07/2016 I.Hrivnacova (p6decayer-V10-02-01)
(p6decayer-V10-02-00)
04/07/2016 I.Hrivnacova (p6decayer-V10-02-01)
(p6decayer-V10-02-00)
- Fixes for Doxygen documentation
04/11/2015 - I.Hrivnacova (p6decayer-V10-01-01)
@@ -42,7 +48,7 @@ modifications introduced in the code and keep track of all tags.
09/06/2015 - I.Hrivnacova (p6decayer-V10-01-00)
-------------------------
- Set a specific prefix to common library and test
- Set a specific prefix to common library and test
to avoid name clashes when building all extended examples at once
06/11/2014 - I.Hrivnacova (p6decayer-V10-00-03)
@@ -95,7 +101,7 @@ Code clean-up:
-------------------------
- Introduced use of classes from common
- Introduced a physics builder for adding the external decayer to
an existing physics list
an existing physics list
- Applied coding guidelines
02/12/2010 - I.Hrivnacova (p6decayer-V09-03-02)
@@ -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(${common_prefix}common)
#----------------------------------------------------------------------------
@@ -32,7 +32,7 @@
#include "DetectorConstruction.hh"
#include "GunPrimaryGeneratorAction.hh"
#include "G4RunManager.hh"
#include "G4RunManagerFactory.hh"
#include "G4UImanager.hh"
#include "QGSP_BERT.hh"
#include "G4ThreeVector.hh"
@@ -55,20 +55,20 @@ int main(int argc,char** argv)
// Choose the Random engine
//
G4Random::setTheEngine(new CLHEP::RanecuEngine);
// Construct the default run manager
// Construct a serial run manager
//
G4RunManager * runManager = new G4RunManager;
auto* runManager = G4RunManagerFactory::CreateRunManager(G4RunManagerType::SerialOnly);
// Set mandatory initialization classes
//
runManager->SetUserInitialization(new DetectorConstruction);
//
G4VModularPhysicsList* physicsList = new QGSP_BERT;
physicsList->RegisterPhysics(new P6DExtDecayerPhysics());
runManager->SetUserInitialization(physicsList);
// Set user action classes
//
runManager->SetUserAction(
@@ -87,13 +87,13 @@ int main(int argc,char** argv)
// Process macro or start UI session
//
if ( ! ui ) {
if ( ! ui ) {
// batch mode
G4String command = "/control/execute ";
G4String fileName = argv[1];
UImanager->ApplyCommand(command+fileName);
}
else {
else {
// interactive mode
UImanager->ApplyCommand("/control/execute init_vis.mac");
ui->SessionStart();