Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -14,6 +14,11 @@ track of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
May 19th 2018 J.Allison (exampleP03-V10-04-00)
|
||||
- Add #include "G4Types.hh"
|
||||
- Remove G4UI_USE and G4VIS_USE.
|
||||
- Move instantiation of G4UIExecutive to start of main.
|
||||
|
||||
19 November 2016 A. Dotti (exampleP03-V10-02-00)
|
||||
- Explicit set of SD to manager
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -158,7 +158,7 @@ G4GeometryManager::ReportVoxelStats -- Voxel Statistics
|
||||
Run terminated.
|
||||
Run Summary
|
||||
Number of events processed : 10
|
||||
User=0s Real=0s Sys=0s
|
||||
User=0.000000s Real=0.001967s Sys=0.000000s
|
||||
WARNING: 10 events have been kept for refreshing and/or reviewing.
|
||||
|
||||
"/vis/reviewKeptEvents" to review them one by one.
|
||||
@@ -187,10 +187,10 @@ Pool ID '7G4Track', size : 0.000961 MB
|
||||
Pool ID '18G4TouchableHistory', size : 0.000961 MB
|
||||
Pool ID '15G4CountedObjectIvE', size : 0.000961 MB
|
||||
Pool ID '18G4SmoothTrajectory', size : 0.00192 MB
|
||||
Pool ID '23G4SmoothTrajectoryPoint', size : 0.00385 MB
|
||||
Pool ID '23G4SmoothTrajectoryPoint', size : 0.00288 MB
|
||||
Pool ID '21G4TrajectoryContainer', size : 0.000961 MB
|
||||
Number of memory pools allocated: 12 of which, static: 0
|
||||
Dynamic pools deleted: 12 / Total memory freed: 0.023 MB
|
||||
Dynamic pools deleted: 12 / Total memory freed: 0.022 MB
|
||||
============================================================
|
||||
G4Allocator objects are deleted.
|
||||
UImanager deleted.
|
||||
|
||||
@@ -23,13 +23,15 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: textGeom.cc 83430 2014-08-21 15:48:43Z gcosmo $
|
||||
// $Id: textGeom.cc 110386 2018-05-22 07:51:56Z gcosmo $
|
||||
//
|
||||
/// \file persistency/P03/textGeom.cc
|
||||
/// \brief Main program of the persistency/P03 example
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4Types.hh"
|
||||
|
||||
#include "ExTGDetectorConstruction.hh"
|
||||
#include "ExTGDetectorConstructionWithSD.hh"
|
||||
#include "ExTGDetectorConstructionWithCpp.hh"
|
||||
@@ -46,18 +48,19 @@
|
||||
|
||||
#include "G4UImanager.hh"
|
||||
|
||||
#ifdef G4VIS_USE
|
||||
#include "G4VisExecutive.hh"
|
||||
#endif
|
||||
|
||||
#ifdef G4UI_USE
|
||||
#include "G4UIExecutive.hh"
|
||||
#endif
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
int main(int argc,char** argv)
|
||||
{
|
||||
// Instantiate G4UIExecutive if interactive mode
|
||||
G4UIExecutive* ui = nullptr;
|
||||
if ( argc == 1 ) {
|
||||
ui = new G4UIExecutive(argc, argv);
|
||||
}
|
||||
|
||||
// Run manager
|
||||
//
|
||||
#ifdef G4MULTITHREADED
|
||||
@@ -94,12 +97,10 @@ int main(int argc,char** argv)
|
||||
//
|
||||
G4UImanager * UImanager = G4UImanager::GetUIpointer();
|
||||
|
||||
#ifdef G4VIS_USE
|
||||
G4VisManager* visManager = new G4VisExecutive;
|
||||
visManager->Initialize();
|
||||
#endif
|
||||
|
||||
if (argc!=1) // batch mode
|
||||
if (!ui) // batch mode
|
||||
{
|
||||
G4String command = "/control/execute ";
|
||||
G4String fileName = argv[1];
|
||||
@@ -107,23 +108,16 @@ int main(int argc,char** argv)
|
||||
}
|
||||
else // interactive mode : define visualization and UI terminal
|
||||
{
|
||||
#ifdef G4UI_USE
|
||||
G4UIExecutive* ui = new G4UIExecutive(argc, argv);
|
||||
#ifdef G4VIS_USE
|
||||
UImanager->ApplyCommand("/control/execute run.mac");
|
||||
#endif
|
||||
UImanager->ApplyCommand("/control/execute run.mac");
|
||||
ui->SessionStart();
|
||||
delete ui;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Free the store: user actions, physics_list and detector_description are
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user