Import Geant4 10.5.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2018-06-29 10:58:11 +02:00
parent fe81a77428
commit 6aa23be517
1581 changed files with 124288 additions and 83758 deletions
+9
View File
@@ -17,6 +17,15 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
May 20, 2018 J. Allison - GB02-V10-04-01
- Remove G4UI_USE and G4VIS_USE.
- Move instantiation of G4UIExecutive nearer to start of main.
May 8th, 2018 B. Morgan - GB02-V10-04-00
- Include G4Types before use of G4MULTITHREADED. For forward
compatibility with move to #defines over -D for G4 preprocessor
symbols.
Nov 02, 2016 I. Hrivnacova
- Added files description (for Doxygen)
+11 -19
View File
@@ -29,6 +29,8 @@
// $Id: $
//
#include "G4Types.hh"
#ifdef G4MULTITHREADED
#include "G4MTRunManager.hh"
#else
@@ -44,13 +46,8 @@
#include "FTFP_BERT.hh"
#include "G4GenericBiasingPhysics.hh"
#ifdef G4VIS_USE
#include "G4VisExecutive.hh"
#endif
#ifdef G4UI_USE
#include "G4UIExecutive.hh"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -74,7 +71,7 @@ int main(int argc,char** argv)
PrintUsage();
return 1;
}
G4String macro("");
G4String onOffBiasing("");
if ( argc == 2 ) macro = argv[1];
@@ -91,9 +88,15 @@ int main(int argc,char** argv)
}
}
}
if ( onOffBiasing == "" ) onOffBiasing = "on";
// Instantiate G4UIExecutive if interactive mode
G4UIExecutive* ui = nullptr;
if ( macro == "" ) {
ui = new G4UIExecutive(argc, argv);
}
// -- Construct the run manager : MT or sequential one
#ifdef G4MULTITHREADED
G4MTRunManager * runManager = new G4MTRunManager;
@@ -133,14 +136,11 @@ int main(int argc,char** argv)
// Initialize G4 kernel
runManager->Initialize();
#ifdef G4VIS_USE
// Initialize visualization
G4VisManager* visManager = new G4VisExecutive;
// G4VisExecutive can take a verbosity argument - see /vis/verbose guidance.
visManager->Initialize();
#endif
// Get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
@@ -152,23 +152,15 @@ int main(int argc,char** argv)
}
else
{ // interactive mode : define UI session
#ifdef G4UI_USE
G4UIExecutive* ui = new G4UIExecutive(argc, argv);
#ifdef G4VIS_USE
// UImanager->ApplyCommand("/control/execute vis.mac");
#endif
// UImanager->ApplyCommand("/control/execute vis.mac");
// if (ui->IsGUI())
// UImanager->ApplyCommand("/control/execute gui.mac");
ui->SessionStart();
delete ui;
#endif
}
#ifdef G4VIS_USE
delete visManager;
#endif
delete runManager;
return 0;
}
File diff suppressed because it is too large Load Diff