Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
@@ -36,13 +36,7 @@
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
#include "G4Types.hh"
|
||||
|
||||
#ifdef G4MULTITHREADED
|
||||
#include "G4MTRunManager.hh"
|
||||
#else
|
||||
#include "G4RunManager.hh"
|
||||
#endif
|
||||
|
||||
#include "G4RunManagerFactory.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4VisExecutive.hh"
|
||||
@@ -70,15 +64,9 @@ void XrayFluoSimulation::RunSimulation(int argc,char* argv[])
|
||||
G4Random::setTheEngine(new CLHEP::RanecuEngine);
|
||||
G4Random::setTheSeed(dir);
|
||||
|
||||
#ifdef G4MULTITHREADED
|
||||
// Construct the default run manager
|
||||
G4MTRunManager* runManager = new G4MTRunManager();
|
||||
G4cout << "Using the MT Run Manager (G4MULTITHREADED=ON)" << G4endl;
|
||||
#else
|
||||
G4RunManager * runManager = new G4RunManager;
|
||||
G4cout << "Using the sequential Run Manager" << G4endl;
|
||||
#endif
|
||||
|
||||
auto* runManager = G4RunManagerFactory::CreateRunManager();
|
||||
G4int nThreads = 4;
|
||||
runManager->SetNumberOfThreads(nThreads);
|
||||
|
||||
// chosing Geometry setup
|
||||
G4int geometryNumber = 0;
|
||||
|
||||
Reference in New Issue
Block a user