Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -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(Hadr08)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
@@ -36,11 +36,7 @@
|
||||
#include "FTFP_BERT.hh"
|
||||
#include "FTFP_INCLXX.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#ifdef G4MULTITHREADED
|
||||
#include "G4MTRunManager.hh"
|
||||
#else
|
||||
#include "G4RunManager.hh"
|
||||
#endif
|
||||
#include "G4RunManagerFactory.hh"
|
||||
#include "ActionInitialization.hh"
|
||||
#include "G4UIExecutive.hh"
|
||||
#include "G4GenericBiasingPhysics.hh"
|
||||
@@ -54,18 +50,8 @@ int main( int argc, char** argv ) {
|
||||
ui = new G4UIExecutive(argc, argv);
|
||||
}
|
||||
|
||||
#ifdef G4MULTITHREADED
|
||||
G4MTRunManager * runManager = new G4MTRunManager;
|
||||
auto* runManager = G4RunManagerFactory::CreateRunManager();
|
||||
runManager->SetNumberOfThreads(4);
|
||||
G4cout<<"+-------------------------------------------------------+"<<G4endl;
|
||||
G4cout<<"| Constructing MT run manager |"<<G4endl;
|
||||
G4cout<<"+-------------------------------------------------------+"<<G4endl;
|
||||
#else
|
||||
G4RunManager * runManager = new G4RunManager;
|
||||
G4cout<<"+-------------------------------------------------------+"<<G4endl;
|
||||
G4cout<<"| Constructing sequential run manager |"<<G4endl;
|
||||
G4cout<<"+-------------------------------------------------------+"<<G4endl;
|
||||
#endif
|
||||
|
||||
G4VUserDetectorConstruction* detector = new DetectorConstruction;
|
||||
runManager->SetUserInitialization( detector );
|
||||
|
||||
@@ -14,6 +14,9 @@ track of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
10-11-20 B, Morgan (exhadr08-V10-06-00)
|
||||
- Migration to G4RunManagerFactory.
|
||||
|
||||
26-11-19 I. Hrivnacova (exhadr08-V10-05-01)
|
||||
- Fixed formatting in .README.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user