Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
#
# Generated on : 24/9/2010
#
# $Id: CMakeLists.txt,v 1.1 2010/09/29 18:45:55 bmorgan Exp $
# $Id: CMakeLists.txt,v 1.1 2010-09-29 18:45:55 bmorgan Exp $
#
#------------------------------------------------------------------------------
+5 -1
View File
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.7 2009/10/19 07:37:48 lgarnier Exp $
# $Id: GNUmakefile,v 1.8 2010-12-23 14:09:53 lgarnier Exp $
# -------------------------------------------------------------
# GNUmakefile for interfaces/basic library. John Allison, 6/7/98.
@@ -18,6 +18,10 @@ include $(G4INSTALL)/config/architecture.gmk
include $(G4INSTALL)/config/G4UI_BUILD.gmk
include $(G4INSTALL)/config/interactivity.gmk
# NO need OGL, then reset OGLGLAGS
OGLFLAGS =
OGLLIBS =
CPPFLAGS += -I$(G4BASE)/global/management/include
CPPFLAGS += -I$(G4BASE)/interfaces/common/include
CPPFLAGS += -I$(G4BASE)/intercoms/include
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIArrayString.hh,v 1.3 2006/06/29 19:09:27 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIArrayString.hh,v 1.3 2006-06-29 19:09:27 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef G4UIArrayString_h
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4UIExecutive.hh,v 1.4 2009/11/20 22:10:31 kmura Exp $
// GEANT4 tag $Name: geant4-09-03 $
// $Id: G4UIExecutive.hh,v 1.4 2009-11-20 22:10:31 kmura Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// ====================================================================
// G4UIExecutive.hh
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIExecutive.icc,v 1.7 2010/05/28 08:12:27 kmura Exp $
// GEANT4 tag $Name: geant4-09-04-beta-01 $
// $Id: G4UIExecutive.icc,v 1.7 2010-05-28 08:12:27 kmura Exp $
// GEANT4 tag $Name: geant4-09-04-patch-02 $
//
// ====================================================================
// G4UIExecutive.icc
@@ -38,6 +38,9 @@
#include "G4UIQt.hh"
#include "G4Qt.hh"
#elif defined(G4UI_USE_WT)
#include "G4UIWt.hh"
#elif defined(G4UI_USE_XM)
#include "G4UIXm.hh"
@@ -56,6 +59,8 @@
#define DISCARD_PARAMETER(p) (void)p
/////////////////////////////////////////////////////
G4UIExecutive::G4UIExecutive(G4int argc, char** argv)
: session(0), shell(0),isGUI(false)
@@ -65,6 +70,10 @@ G4UIExecutive::G4UIExecutive(G4int argc, char** argv)
session = new G4UIQt(argc, argv);
isGUI = true;
#elif defined(G4UI_USE_WT)
session = new G4UIWt(argc, argv);
isGUI = true;
#elif defined(G4UI_USE_XM)
session = new G4UIXm(argc, argv);
isGUI = true;
@@ -132,6 +141,10 @@ inline void G4UIExecutive::SessionStart()
/////////////////////////////////////////
{
session-> SessionStart();
#if defined(G4UI_USE_WT)
#else
delete session;
#endif
}
+6 -23
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIQt.hh,v 1.23 2010/06/10 15:37:13 lgarnier Exp $
// GEANT4 tag $Name: geant4-09-04-beta-01 $
// $Id: G4UIQt.hh,v 1.23 2010-06-10 15:37:13 lgarnier Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef G4UIQt_h
#define G4UIQt_h
@@ -45,14 +45,9 @@
class QMainWindow;
class QLineEdit;
class G4UIsession;
#if QT_VERSION < 0x040000
class QListView;
class QListViewItem;
#else
class QListWidget;
class QTreeWidget;
class QTreeWidgetItem;
#endif
class QTextEdit;
class QLabel;
class QResizeEvent;
@@ -115,6 +110,9 @@ public: // With description
bool AddTabWidget(QWidget*,QString,int,int);
// To add a tab for vis openGL Qt driver
QWidget* GetViewComponentsTBWidget();
// Get the viewComponent
bool IsSplitterReleased();
public:
@@ -133,13 +131,8 @@ private:
void FillHelpTree();
void ExitHelp();
#if QT_VERSION < 0x040000
void CreateChildTree(QListViewItem*,G4UIcommandTree*);
QListViewItem* FindTreeItem(QListViewItem *,const QString&);
#else
void CreateChildTree(QTreeWidgetItem*,G4UIcommandTree*);
QTreeWidgetItem* FindTreeItem(QTreeWidgetItem *,const QString&);
#endif
QString GetCommandList(const G4UIcommand*);
@@ -149,17 +142,12 @@ private:
QMap<int,QString> LookForHelpStringInChildTree(G4UIcommandTree *,const QString&);
void CreateVisParametersTBWidget();
void CreateViewComponentsTBWidget();
void CreateHelpTBWidget();
void CreateCoutTBWidget();
void CreateHistoryTBWidget();
void OpenHelpTreeOnCommand(const QString &);
QString GetShortCommandPath(QString);
#if QT_VERSION < 0x040000
QString GetLongCommandPath(QListViewItem*);
#else
QString GetLongCommandPath(QTreeWidgetItem*);
#endif
private:
@@ -176,13 +164,8 @@ private:
QStringList fG4cout;
QLineEdit * fCoutFilter;
#if QT_VERSION < 0x040000
QListView *fHistoryTBTableList;
QListView *fHelpTreeWidget;
#else
QListWidget *fHistoryTBTableList;
QTreeWidget *fHelpTreeWidget;
#endif
QWidget* fHelpTBWidget;
QWidget* fHistoryTBWidget;
QWidget* fCoutTBWidget;
@@ -197,7 +180,7 @@ private:
int fLastQTabSizeX;
int fLastQTabSizeY;
private slots :
private Q_SLOTS :
void ExitSession();
void ClearButtonCallback();
void CommandEnteredCallback();
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIWin32.hh,v 1.14 2006/06/29 19:09:29 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIWin32.hh,v 1.14 2006-06-29 19:09:29 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef G4UIWin32_h
#define G4UIWin32_h
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIXaw.hh,v 1.6 2006/06/29 19:09:31 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIXaw.hh,v 1.6 2006-06-29 19:09:31 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef G4UIXaw_h
#define G4UIXaw_h
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIXm.hh,v 1.14 2008/11/14 16:21:42 lgarnier Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIXm.hh,v 1.14 2008-11-14 16:21:42 lgarnier Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef G4UIXm_h
#define G4UIXm_h
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIcsh.hh,v 1.4 2006/06/29 19:09:35 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIcsh.hh,v 1.4 2006-06-29 19:09:35 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef G4UIcsh_h
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UItcsh.hh,v 1.8 2007/06/14 05:44:58 kmura Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UItcsh.hh,v 1.8 2007-06-14 05:44:58 kmura Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef G4UItcsh_h
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4UIterminal.hh,v 1.10 2007/05/22 01:51:05 kmura Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIterminal.hh,v 1.10 2007-05-22 01:51:05 kmura Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// ====================================================================
// G4UIterminal.cc
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VUIshell.hh,v 1.8 2009/05/13 09:01:36 kmura Exp $
// GEANT4 tag $Name: geant4-09-03 $
// $Id: G4VUIshell.hh,v 1.8 2009-05-13 09:01:36 kmura Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef G4VUIshell_h
+23 -12
View File
@@ -11,8 +11,8 @@
#
# Generated on : 24/9/2010
#
# $Id: sources.cmake,v 1.4 2010/11/29 17:04:04 bmorgan Exp $
# GEANT4 Tag $Name: geant4-09-04 $
# $Id: sources.cmake,v 1.4 2010-11-29 17:04:04 bmorgan Exp $
# GEANT4 Tag $Name: not supported by cvs2svn $
#
#------------------------------------------------------------------------------
@@ -49,7 +49,7 @@ set(G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES )
#
# Tcsh only on UNIX style systems
# Tcsh only on UNIX style systems, but always built here
#
if(UNIX)
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UItcsh.hh)
@@ -58,11 +58,16 @@ endif()
#
# Win32 terminal only on Win32 and if selected.
# Win32 terminal only for MSVC builds, but always built here
#
if(WIN32 AND GEANT4_USE_WIN32TERMINAL)
if(MSVC)
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIWin32.hh)
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIWin32.cc)
GEANT4_ADD_COMPILE_DEFINITIONS(
SOURCES G4UIWin32.cc
COMPILE_DEFINITIONS G4UI_BUILD_WIN32_SESSION;G4INTY_BUILD_WIN32
)
endif()
@@ -101,21 +106,27 @@ endif()
#
# Xm and Xaw only on UNIX and if selected
# Xm and only on UNIX and if selected
#
if(UNIX)
if(GEANT4_USE_XM)
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIXm.hh)
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIXm.cc)
# Any other includes, libraries here
endif()
# Need the X11 and XM headers
include_directories(${X11_INCLUDE_DIR})
include_directories(${MOTIF_INCLUDE_DIR})
if(GEANT4_USE_XAW)
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIXaw.hh)
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIXaw.cc)
# Add the compile definitions - also need INTY versions
GEANT4_ADD_COMPILE_DEFINITIONS(
SOURCES G4UIXm.cc
COMPILE_DEFINITIONS G4UI_BUILD_XM_SESSION;G4INTY_BUILD_XT
)
# Any other includes, libraries here
# Need the X11 and Motif libraries
list(APPEND G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES
"${MOTIF_LIBRARIES};${X11_LIBRARIES}"
)
endif()
endif()
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIArrayString.cc,v 1.8 2006/06/29 19:09:43 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIArrayString.cc,v 1.8 2006-06-29 19:09:43 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#include <iomanip>
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIWin32.cc,v 1.13 2006/06/29 19:09:45 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIWin32.cc,v 1.13 2006-06-29 19:09:45 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// G.Barrand
+6 -6
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIXaw.cc,v 1.6 2006/06/29 19:09:47 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIXaw.cc,v 1.6 2006-06-29 19:09:47 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// G.Barrand
@@ -201,9 +201,9 @@ void G4UIXaw::ExitHelp(
/***************************************************************************/
/***************************************************************************/
void G4UIXaw::Callback (
Widget a_widget
Widget
,XtPointer a_tag
,XtPointer a_data
,XtPointer
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
@@ -225,8 +225,8 @@ void G4UIXaw::Callback (
XtSetArg (args[0],XtNvalue,"");
XtSetValues (dialog,args,1);
a_widget = NULL;
a_data = NULL;
//a_widget = NULL; Not used (1st argument). Comment out to avoid compiler warnings. (JA)
//a_data = NULL; Not used (3rd argument). Comment out to avoid compiler warnings. (JA)
}
//////////////////////////////////////////////////////////////////////////////
G4bool ConvertStringToInt(
+4 -4
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIXm.cc,v 1.15 2008/11/14 16:21:42 lgarnier Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIXm.cc,v 1.15 2008-11-14 16:21:42 lgarnier Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// G.Barrand
@@ -357,7 +357,7 @@ G4String G4UIXm::GetCommand (
/***************************************************************************/
/***************************************************************************/
void G4UIXm::CommandEnteredCallback (
Widget a_widget
Widget
,XtPointer a_tag
,XtPointer a_data
)
@@ -378,7 +378,7 @@ void G4UIXm::CommandEnteredCallback (
This->ApplyShellCommand (command,exitSession,exitPause);
}
a_widget = NULL;
//a_widget = NULL; Not used (1st argument). Comment out to avoid compiler warnings. (JA)
a_tag = NULL;
}
/***************************************************************************/
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIcsh.cc,v 1.8 2006/06/29 19:09:51 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIcsh.cc,v 1.8 2006-06-29 19:09:51 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#include "G4UIcsh.hh"
+25 -25
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UItcsh.cc,v 1.17 2008/07/18 06:37:06 kmura Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UItcsh.cc,v 1.17 2008-07-18 06:37:06 kmura Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef WIN32
@@ -603,29 +603,29 @@ G4String G4UItcsh::ReadLine()
// treatment for ESC. character
if( cc == AsciiESC) { // ESC
G4cin.get(cc);
if (cc == '[' || 'O') { // care for another termcap, such as konsole
G4cin.get(cc);
switch(cc) {
case 'A': // [UP]
cc = 'P' - '@';
PreviousCommand(); // ... show previous commad
break;
case 'B': // [DOWN]
cc = 'N' - '@';
NextCommand(); // ... show next commad
break;
case 'C': // [RIGHT]
cc = 'F' - '@';
ForwardCursor(); // ... forward cursor
break;
case 'D': // [LEFT]
cc = 'B' - '@';
BackwardCursor(); // ... backward cursor
break;
default: // who knows !?
cc = 0;
break;
}
if (cc == '[' || cc == 'O') { // care for another termcap, such as konsole
G4cin.get(cc);
switch(cc) {
case 'A': // [UP]
cc = 'P' - '@';
PreviousCommand(); // ... show previous commad
break;
case 'B': // [DOWN]
cc = 'N' - '@';
NextCommand(); // ... show next commad
break;
case 'C': // [RIGHT]
cc = 'F' - '@';
ForwardCursor(); // ... forward cursor
break;
case 'D': // [LEFT]
cc = 'B' - '@';
BackwardCursor(); // ... backward cursor
break;
default: // who knows !?
cc = 0;
break;
}
}
}
+6 -4
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4UIterminal.cc,v 1.28 2008/07/18 06:38:59 kmura Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4UIterminal.cc,v 1.28 2008-07-18 06:38:59 kmura Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// ====================================================================
// G4UIterminal.cc
@@ -69,8 +69,10 @@ static void SignalHandler(G4int)
G4cout << G4endl
<< "Session terminated." << G4endl;
theshell-> ResetTerminal();
G4Exception("G4UIterminal/SignalHandler", "KeyboardInterrupt",
FatalException, "Interrupt with Ctrl-C");
G4Exception("G4UIterminal::SignalHandler()",
"UI0001",
FatalException,
"KeyboardInterrput with Ctrl-C");
}
// for original Unix / System V
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VUIshell.cc,v 1.10 2007/06/14 05:44:58 kmura Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4VUIshell.cc,v 1.10 2007-06-14 05:44:58 kmura Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#include "G4UImanager.hh"