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(P02)
#----------------------------------------------------------------------------
@@ -14,6 +14,12 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
November 13th, 2020 Ben Morgan (exampleP02-V10-06-01)
- Enforce use of Serial RunManager.
November 10th, 2020 Ben Morgan (exampleP02-V10-06-00)
- Migration to G4RunManagerFactory.
November 28th, 2019 I. Hrivnacova (exampleP02-V10-05-00)
- Fixed Doxygen warning in .README.txt
@@ -28,7 +28,7 @@
//
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -40,7 +40,7 @@
#include "FTFP_BERT.hh"
#include "G4RunManager.hh"
#include "G4RunManagerFactory.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
@@ -49,7 +49,7 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
int main(int argc, char** argv)
{
{
if(argc==1)
{
@@ -77,14 +77,14 @@ int main(int argc, char** argv)
G4UIExecutive* ui = new G4UIExecutive(argc, argv);
// Run manager
G4RunManager * runManager = new G4RunManager;
auto* runManager = G4RunManagerFactory::CreateRunManager(G4RunManagerType::SerialOnly);
// UserInitialization classes (mandatory)
runManager->SetUserInitialization(det);
G4VModularPhysicsList* physicsList = new FTFP_BERT;
runManager->SetUserInitialization(physicsList);
// Visualization
G4VisManager* visManager = new G4VisExecutive;
visManager->Initialize();
@@ -94,9 +94,9 @@ int main(int argc, char** argv)
//Initialize G4 kernel
runManager->Initialize();
//get the pointer to the User Interface manager
G4UImanager * UImanager = G4UImanager::GetUIpointer();
//get the pointer to the User Interface manager
G4UImanager * UImanager = G4UImanager::GetUIpointer();
UImanager->ApplyCommand("/control/execute vis.mac");
ui->SessionStart();