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
+7 -1
View File
@@ -1,4 +1,4 @@
// $Id: History 100948 2016-11-03 11:30:18Z gcosmo $
// $Id: History 110099 2018-05-15 11:29:56Z gcosmo $
// ------------------------------------------------------------------
=========================================================
@@ -15,6 +15,12 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
May 15, 2018 J.Allison - fieldex06-V10-04-00
- Add #include "G4Types.hh".
- Remove G4UI_USE and G4VIS_USE.
- Move instantiation of G4UIExecutive to start of main.
- vis.mac, gui.mac: Clean up.
Nov 03, 2016 L.Garnier - fieldex06-V10-02-02
- remove icons.mac. Automatically include since interfaces-V10-02-07
+11 -19
View File
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: field06.cc 75572 2013-11-04 11:46:08Z gcosmo $
// $Id: field06.cc 110099 2018-05-15 11:29:56Z gcosmo $
//
/// \file field/field06/field06.cc
/// \brief Main program of the field/field06 example
@@ -38,6 +38,8 @@
#include <unistd.h>
#endif
#include "G4Types.hh"
#include "F06PhysicsList.hh"
#include "F06DetectorConstruction.hh"
#include "F06ActionInitialization.hh"
@@ -53,13 +55,8 @@
#include "Randomize.hh"
#ifdef G4VIS_USE
#include "G4VisExecutive.hh"
#endif
#ifdef G4UI_USE
#include "G4UIExecutive.hh"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
namespace {
@@ -105,6 +102,12 @@ int main(int argc,char** argv)
}
}
// Instantiate G4UIExecutive for interactive mode
G4UIExecutive* ui = nullptr;
if ( macro.size() == 0 ) {
ui = new G4UIExecutive(argc, argv, session);
}
// Choose the Random engine
//
G4Random::setTheEngine(new CLHEP::RanecuEngine);
@@ -134,38 +137,29 @@ int main(int argc,char** argv)
//
runManager->Initialize();
#ifdef G4VIS_USE
// Initialize visualization
//
G4VisManager* visManager = new G4VisExecutive;
// G4VisExecutive can take a verbosity argument - see /vis/verbose guidance.
// G4VisManager* visManager = new G4VisExecutive("Quiet");
visManager->Initialize();
#endif
// Get the pointer to the User Interface manager
//
G4UImanager* UImanager = G4UImanager::GetUIpointer();
if ( macro.size() ) {
if ( !ui ) {
// batch mode
G4String command = "/control/execute ";
UImanager->ApplyCommand(command+macro);
}
else
{ // interactive mode : define UI session
#ifdef G4UI_USE
G4UIExecutive* ui = new G4UIExecutive(argc, argv, session);
#ifdef G4VIS_USE
{
UImanager->ApplyCommand("/control/execute vis.mac");
#else
UImanager->ApplyCommand("/control/execute field06.in");
#endif
if (ui->IsGUI())
UImanager->ApplyCommand("/control/execute gui.mac");
ui->SessionStart();
delete ui;
#endif
}
// Job termination
@@ -173,9 +167,7 @@ int main(int argc,char** argv)
// owned and deleted by the run manager, so they should not
// be deleted in the main() program !
#ifdef G4VIS_USE
delete visManager;
#endif
delete runManager;
return 0;
+2 -2
View File
@@ -4,7 +4,7 @@
############################################
**************************************************************
Geant4 version Name: geant4-10-04-patch-02 (25-May-2018)
Geant4 version Name: geant4-10-05-beta-01 (29-June-2018)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -2301,7 +2301,7 @@ Terminate current event processing.
Run terminated.
Run Summary
Number of events processed : 1
User=0.01s Real=0.02s Sys=0.01s
User=0.020000s Real=0.020707s Sys=0.000000s
#
Graphics systems deleted.
Visualization Manager deleting...
-4
View File
@@ -3,10 +3,6 @@
# the menu bar of the G4UIXm, G4UIQt, G4UIWin32 sessions.
# It has no effect with G4UIterminal.
#
# Process vis.mac (and draw geometry)
#
/control/execute vis.mac
#
# File menu :
/gui/addMenu file File
/gui/addButton file Quit exit
+2 -6
View File
@@ -8,18 +8,14 @@
/control/saveHistory
/run/verbose 2
#
# create empty scene
#
/vis/scene/create
#
# Create a scene handler for a specific graphics system
# (Edit the next line(s) to choose another graphic system)
#
# Use this open statement instead for OpenGL in immediate mode.
/vis/open OGL 600x600-0+0
#
# Output an empty detector
#/vis/viewer/flush
# Draw detector
/vis/drawVolume
#
# Draw trajectories at end of event, showing trajectory points as
# markers of size 2 pixels