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(GB02project)
#----------------------------------------------------------------------------
+4 -1
View File
@@ -16,6 +16,9 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
November 10th, 2020 Ben Morgan - GB02-V10-06-00
- Migration to G4RunManagerFactory.
May 20, 2018 J. Allison - GB02-V10-04-01
- Remove G4UI_USE and G4VIS_USE.
- Move instantiation of G4UIExecutive nearer to start of main.
@@ -29,7 +32,7 @@ Nov 02, 2016 I. Hrivnacova
- Added files description (for Doxygen)
Jul 20, 2016 I. Hrivnacova
- Coding guidelines
- Coding guidelines
(redundant empty lines, class data member names, separators)
Nov 6, 2015, M. Verderi
+2 -13
View File
@@ -30,11 +30,7 @@
#include "G4Types.hh"
#ifdef G4MULTITHREADED
#include "G4MTRunManager.hh"
#else
#include "G4RunManager.hh"
#endif
#include "G4RunManagerFactory.hh"
#include "GB02ActionInitialization.hh"
#include "G4UImanager.hh"
@@ -97,15 +93,8 @@ int main(int argc,char** argv)
}
// -- Construct the run manager : MT or sequential one
#ifdef G4MULTITHREADED
G4MTRunManager * runManager = new G4MTRunManager;
G4cout << " ********** Run Manager constructed in MT mode ************ " << G4endl;
// -- Choose 4 threads:
auto* runManager = G4RunManagerFactory::CreateRunManager();
runManager->SetNumberOfThreads(4);
#else
G4RunManager * runManager = new G4RunManager;
G4cout << " ********** Run Manager constructed in sequential mode ************ " << G4endl;
#endif
// -- Set mandatory initialization classes
GB02DetectorConstruction* detector = new GB02DetectorConstruction();
File diff suppressed because it is too large Load Diff