Import Geant4 10.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2018-12-07 15:15:39 +01:00
parent 6aa23be517
commit db49709b53
11370 changed files with 187480 additions and 160142 deletions
-1
View File
@@ -7,7 +7,6 @@
#
# Generated on : 24/9/2010
#
# $Id: CMakeLists.txt 66892 2013-01-17 10:57:59Z gunter $
#
#------------------------------------------------------------------------------
-1
View File
@@ -1,4 +1,3 @@
# $Id: GNUmakefile 66892 2013-01-17 10:57:59Z gunter $
# -------------------------------------------------------------
# GNUmakefile for interfaces/basic library. John Allison, 6/7/98.
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIArrayString.hh 66892 2013-01-17 10:57:59Z gunter $
//
#ifndef G4UIArrayString_h
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4UIExecutive.hh 66892 2013-01-17 10:57:59Z gunter $
//
// ====================================================================
// G4UIExecutive.hh
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIQt.hh 108356 2018-02-08 09:11:28Z gcosmo $
//
#ifndef G4UIQt_h
#define G4UIQt_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIWin32.hh 66892 2013-01-17 10:57:59Z gunter $
//
#ifndef G4UIWin32_h
#define G4UIWin32_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIWt.hh,v 1.23 2010-06-10 15:37:13 lgarnier Exp $
//
#ifndef G4UIWt_h
#define G4UIWt_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIXm.hh 66892 2013-01-17 10:57:59Z gunter $
//
#ifndef G4UIXm_h
#define G4UIXm_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIcsh.hh 66892 2013-01-17 10:57:59Z gunter $
//
#ifndef G4UIcsh_h
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UItcsh.hh 66892 2013-01-17 10:57:59Z gunter $
//
#ifndef G4UItcsh_h
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4UIterminal.hh 66892 2013-01-17 10:57:59Z gunter $
//
// ====================================================================
// G4UIterminal.cc
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4VUIshell.hh 66892 2013-01-17 10:57:59Z gunter $
//
#ifndef G4VUIshell_h
+1 -1
View File
@@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'G4UIQt.hh'
**
** Created: Tue Jun 26 10:20:28 2018
** Created: Thu Dec 6 15:41:02 2018
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.4)
**
** WARNING! All changes made in this file will be lost!
-1
View File
@@ -11,7 +11,6 @@
#
# Generated on : 24/9/2010
#
# $Id: sources.cmake 75000 2013-10-25 10:58:17Z gcosmo $
#
#------------------------------------------------------------------------------
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIArrayString.cc 66892 2013-01-17 10:57:59Z gunter $
//
#include <iomanip>
+9 -10
View File
@@ -22,8 +22,6 @@
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
// $Id: G4UIExecutive.icc,v 1.7 2010-05-28 08:12:27 kmura Exp $
// GEANT4 tag $Name: geant4-09-04-patch-02 $
#include "G4UIExecutive.hh"
#include "G4UIsession.hh"
@@ -114,17 +112,17 @@ G4UIExecutive::G4UIExecutive(G4int argc, char** argv, const G4String& type)
G4String appinput = argv[0];
G4String appname = "";
size_t islash = appinput.find_last_of("/\\");
if (islash == G4String::npos)
if (islash == G4String::npos)
appname = appinput;
else
else
appname = appinput(islash+1, appinput.size()-islash-1);
SelectSessionByFile(appname);
}
// 4th, best guess of session type
// 4th, best guess of session type
if ( selected == kNone) SelectSessionByBestGuess();
// instantiate a session...
switch ( selected ) {
case kQt:
@@ -170,14 +168,14 @@ G4UIExecutive::G4UIExecutive(G4int argc, char** argv, const G4String& type)
DISCARD_PARAMETER(argc);
DISCARD_PARAMETER(argv);
shell = new G4UIcsh;
session = new G4UIterminal(shell);
session = new G4UIterminal(shell);
default:
break;
}
// fallback (csh)
if ( session == NULL ) {
G4Exception("G4UIExecutive::G4UIExecutive()",
G4Exception("G4UIExecutive::G4UIExecutive()",
"UI0002",
JustWarning,
"Specified session type is not build in your system,\n"
@@ -233,10 +231,10 @@ void G4UIExecutive::SelectSessionByFile(const G4String& appname)
#else
G4String fname= homedir + "\\.g4session";
#endif
std::ifstream fsession;
enum { BUFSIZE= 1024 }; char linebuf[BUFSIZE];
fsession.open(fname, std::ios::in);
G4String default_session = "";
@@ -248,6 +246,7 @@ void G4UIExecutive::SelectSessionByFile(const G4String& appname)
G4String aline = linebuf;
aline.strip(G4String::both);
if ( aline(0) == '#' ) continue;
if ( aline == "" ) continue;
if ( iline == 1 )
default_session = aline;
else {
-1
View File
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIQt.cc 110027 2018-05-14 15:18:53Z gcosmo $
//
// L. Garnier
-1
View File
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIWin32.cc 97524 2016-06-03 14:26:34Z gcosmo $
//
// G.Barrand
-1
View File
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIWt.cc,v 1.53 2010-11-02 15:38:51 lgarnier Exp $
//
// L. Garnier
-1
View File
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIXm.cc 97174 2016-05-27 12:41:02Z gcosmo $
//
// G.Barrand
-1
View File
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIcsh.cc 66892 2013-01-17 10:57:59Z gunter $
//
#include "G4UIcsh.hh"
-1
View File
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UItcsh.cc 66892 2013-01-17 10:57:59Z gunter $
//
#ifndef WIN32
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4UIterminal.cc 81292 2014-05-26 09:32:37Z gcosmo $
//
// ====================================================================
// G4UIterminal.cc
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4VUIshell.cc 66892 2013-01-17 10:57:59Z gunter $
//
#include "G4UImanager.hh"