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
+12 -12
View File
@@ -28,7 +28,7 @@
//
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -43,7 +43,7 @@
#include "FTFP_BERT.hh"
#include "G4RunManager.hh"
#include "G4RunManagerFactory.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
@@ -61,9 +61,9 @@ int main(int argc,char** argv) {
//my Verbose output class
G4VSteppingVerbose::SetInstance(new ExP01SteppingVerbose);
// Run manager
G4RunManager * runManager = new G4RunManager;
auto* runManager = G4RunManagerFactory::CreateRunManager(G4RunManagerType::SerialOnly);
// UserInitialization classes (mandatory)
ExP01DetectorConstruction* ExP01detector = new ExP01DetectorConstruction;
@@ -71,33 +71,33 @@ int main(int argc,char** argv) {
G4VModularPhysicsList* physicsList = new FTFP_BERT;
runManager->SetUserInitialization(physicsList);
// Visualization
G4VisManager* visManager = new G4VisExecutive;
visManager->Initialize();
// UserAction classes
runManager->SetUserAction(new ExP01PrimaryGeneratorAction(ExP01detector));
runManager->SetUserAction(new ExP01RunAction);
runManager->SetUserAction(new ExP01RunAction);
runManager->SetUserAction(new ExP01EventAction);
runManager->SetUserAction(new ExP01SteppingAction);
//Initialize G4 kernel
runManager->Initialize();
//get the pointer to the User Interface manager
G4UImanager * UImanager = G4UImanager::GetUIpointer();
//get the pointer to the User Interface manager
G4UImanager * UImanager = G4UImanager::GetUIpointer();
if(ui)
// Define (G)UI terminal for interactive mode
{
// Define (G)UI terminal for interactive mode
{
UImanager->ApplyCommand("/control/execute vis.mac");
ui->SessionStart();
delete ui;
}
else
// Batch mode
{
{
G4String command = "/control/execute ";
G4String fileName = argv[1];
UImanager->ApplyCommand(command+fileName);