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
@@ -28,7 +28,7 @@
//
//
//
//
//
// --------------------------------------------------------------
// Geant4 - examplePar01
// --------------------------------------------------------------
@@ -53,11 +53,7 @@
#include "G4FastSimulationPhysics.hh"
#include "G4UImanager.hh"
#ifdef G4MULTITHREADED
#include "G4MTRunManager.hh"
#else
#include "G4RunManager.hh"
#endif
#include "G4RunManagerFactory.hh"
// ----------------------------------------------------------------
// -- Action initialization (includes the primary generator action:
@@ -80,18 +76,8 @@ int main(int argc, char** argv)
//-------------------------------
// Initialization of Run manager
//-------------------------------
#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
// -----------------------------------------------------
// -- Detector/mass geometry and parallel geometry(ies):