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
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4PyCoutDestination.cc,v 1.3 2006/06/29 15:33:03 gunter Exp $
// $Name: geant4-09-02 $
// $Id: G4PyCoutDestination.cc,v 1.3 2006-06-29 15:33:03 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// G4PyCoutDistination.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4PyCoutDestination.hh,v 1.3 2006/06/29 15:33:06 gunter Exp $
// $Name: geant4-09-02 $
// $Id: G4PyCoutDestination.hh,v 1.3 2006-06-29 15:33:06 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// G4PyCoutDestination.hh
//
+2 -2
View File
@@ -1,5 +1,5 @@
# $Id: GNUmakefile,v 1.2 2006/04/25 08:09:45 kmura Exp $
# $Name: geant4-09-02 $
# $Id: GNUmakefile,v 1.2 2006-04-25 08:09:45 kmura Exp $
# $Name: not supported by cvs2svn $
# ===========================================================
# Makefile for building Geant4Py modules
# ===========================================================
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ApplicationState.cc,v 1.5 2006/11/20 05:56:46 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyG4ApplicationState.cc,v 1.5 2006-11-20 05:56:46 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4ApplicationState.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Exception.cc,v 1.1 2006/11/20 05:57:16 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyG4Exception.cc,v 1.1 2006-11-20 05:57:16 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4Exception.cc
//
@@ -41,26 +41,6 @@ using namespace boost::python;
// ====================================================================
namespace pyG4Exception {
////////////////////////////////////////
void f1_G4Exception(const char* message)
////////////////////////////////////////
{
if(message) {
G4cerr << message << G4endl;
}
if(G4StateManager::GetStateManager()->SetNewState(G4State_Abort,message)) {
G4cerr << G4endl << "*** G4Exception: Aborting execution ***" << G4endl;
PyErr_SetString(PyExc_RuntimeError, message);
PyErr_Print();
} else {
G4cerr << G4endl << "*** G4Exception: Abortion suppressed ***"
<< G4endl << "*** No guarantee for further execution ***"
<< G4endl;
}
}
//////////////////////////////////////////////////
void f2_G4Exception(const char* originOfException,
const char* exceptionCode,
@@ -75,33 +55,39 @@ void f2_G4Exception(const char* originOfException,
toBeAborted = exceptionHandler
-> Notify(originOfException,exceptionCode,severity,description);
} else {
G4cerr << G4endl
<< "*** ExceptionHandler is not defined ***" << G4endl;
G4cerr << G4endl;
G4cerr << "*** G4Exception : " << exceptionCode << G4endl;
G4cerr << " issued by : " << originOfException << G4endl;
G4cerr << description << G4endl;
G4cerr << G4endl << "Severity : ";
G4String e_banner = "\n!!!!! - !!!!! - !!!!! - !!!!! - !!!!! - !!!!!\n";
G4String w_banner = "\nwwwww - wwwww - wwwww - wwwww - wwwww - wwwww\n";
std::ostringstream message;
message << "\n*** ExceptionHandler is not defined ***\n"
<< "*** G4Exception : " << exceptionCode << G4endl
<< " issued by : " << originOfException << G4endl
<< description << G4endl;
switch(severity) {
case FatalException:
G4cerr << "*** Fatal Exception ***";
G4cerr << e_banner << message.str() << "*** Fatal Exception ***"
<< e_banner;
break;
case FatalErrorInArgument:
G4cerr << "*** Fatal Error In Argument ***";
G4cerr << e_banner << message.str() << "*** Fatal Error In Argument ***"
<< e_banner;
break;
case RunMustBeAborted:
G4cerr << "*** Run Must Be Aborted ***";
G4cerr << e_banner << message.str() << "*** Run Must Be Aborted ***"
<< e_banner;
break;
case EventMustBeAborted:
G4cerr << "*** Event Must Be Aborted ***";
G4cerr << e_banner << message.str() << "*** Event Must Be Aborted ***"
<< e_banner;
break;
default:
G4cerr << "*** This is just a warning message. ***";
G4cout << w_banner << message.str()
<< "*** This is just a warning message. ***"
<< w_banner;
toBeAborted = false;
break;
}
G4cerr << G4endl;
}
if(toBeAborted) {
if(G4StateManager::GetStateManager()->SetNewState(G4State_Abort)) {
G4cerr << G4endl << "*** G4Exception: Aborting execution ***" << G4endl;
@@ -124,7 +110,5 @@ using namespace pyG4Exception;
// ====================================================================
void export_G4Exception()
{
def("G4Exception", f1_G4Exception);
def("G4Exception", f2_G4Exception);
}
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ExceptionHandler.cc,v 1.1 2006/11/21 05:58:33 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyG4ExceptionHandler.cc,v 1.1 2006-11-21 05:58:33 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4ExceptionHandler.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ExceptionSeverity.cc,v 1.1 2006/11/20 05:57:16 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyG4ExceptionSeverity.cc,v 1.1 2006-11-20 05:57:16 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4ExceptionSeverity.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4RandomDirection.cc,v 1.4 2006/06/29 15:33:12 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyG4RandomDirection.cc,v 1.4 2006-06-29 15:33:12 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4RandomDirection.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4RotationMatrix.cc,v 1.4 2006/06/29 15:33:15 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyG4RotationMatrix.cc,v 1.4 2006-06-29 15:33:15 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4RotationMatrix.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4StateManager.cc,v 1.4 2006/06/29 15:33:18 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyG4StateManager.cc,v 1.4 2006-06-29 15:33:18 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4StateManager.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4String.cc,v 1.4 2006/06/29 15:33:21 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyG4String.cc,v 1.4 2006-06-29 15:33:21 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4String.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ThreeVector.cc,v 1.5 2006/06/29 15:33:24 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyG4ThreeVector.cc,v 1.5 2006-06-29 15:33:24 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4ThreeVector.cc
//
+2 -2
View File
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Timer.cc,v 1.3 2006/06/29 15:33:27 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyG4Timer.cc,v 1.3 2006-06-29 15:33:27 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4Timer.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Transform3D.cc,v 1.4 2006/06/29 15:33:30 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyG4Transform3D.cc,v 1.4 2006-06-29 15:33:30 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4Transform3D.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TwoVector.cc,v 1.2 2008/03/13 07:32:18 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyG4TwoVector.cc,v 1.2 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4TwoVector.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UnitsTable.cc,v 1.5 2008/12/03 07:34:50 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyG4UnitsTable.cc,v 1.5 2008-12-03 07:34:50 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4UnitsTable.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UserLimits.cc,v 1.4 2006/06/29 15:33:36 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyG4UserLimits.cc,v 1.4 2006-06-29 15:33:36 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4UserLimits.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Version.cc,v 1.2 2008/03/13 07:32:18 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyG4Version.cc,v 1.2 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyG4Version.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyRandomEngines.cc,v 1.6 2008/05/27 09:20:01 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyRandomEngines.cc,v 1.6 2008-05-27 09:20:01 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyRandomEngines.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyRandomize.cc,v 1.4 2006/06/29 15:33:42 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pyRandomize.cc,v 1.4 2006-06-29 15:33:42 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyRandomize.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pygeomdefs.cc,v 1.4 2006/06/29 15:33:45 gunter Exp $
// $Name: geant4-09-02 $
// $Id: pygeomdefs.cc,v 1.4 2006-06-29 15:33:45 gunter Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pygeomdefs.cc
//
+2 -2
View File
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyglobals.cc,v 1.7 2008/12/03 07:34:50 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pyglobals.cc,v 1.7 2008-12-03 07:34:50 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pyglobals.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4global.cc,v 1.8 2007/05/28 03:03:21 kmura Exp $
// $Name: geant4-09-02 $
// $Id: pymodG4global.cc,v 1.8 2007-05-28 03:03:21 kmura Exp $
// $Name: not supported by cvs2svn $
// ====================================================================
// pymodG4global.cc [Geant4Py module]
//