Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4RandomDirection.cc 66892 2013-01-17 10:57:59Z gunter $
// $Id: pyG4RandomDirection.cc 107590 2017-11-24 11:59:22Z gcosmo $
// ====================================================================
// pyG4RandomDirection.cc
//
@@ -34,11 +34,23 @@
using namespace boost::python;
// ====================================================================
// thin wrappers
// ====================================================================
namespace pyG4RandomDirection {
G4ThreeVector(*G4RandomDirection_1)() = G4RandomDirection;
G4ThreeVector(*G4RandomDirection_2)(double) = G4RandomDirection;
}
using namespace pyG4RandomDirection;
// ====================================================================
// module definition
// ====================================================================
void export_G4RandomDirection()
{
def("G4RandomDirection", G4RandomDirection);
def("G4RandomDirection", G4RandomDirection_1);
def("G4RandomDirection", G4RandomDirection_2);
}
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TwoVector.cc 76884 2013-11-18 12:54:03Z gcosmo $
// $Id: pyG4TwoVector.cc 107590 2017-11-24 11:59:22Z gcosmo $
// ====================================================================
// pyG4TwoVector.cc
//
@@ -31,8 +31,6 @@
// ====================================================================
#include <boost/python.hpp>
#include "G4Version.hh"
#if G4VERSION_NUMBER >= 830
#include "G4TwoVector.hh"
using namespace boost::python;
@@ -53,15 +51,11 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isOrthogonal, isOrthogonal, 1, 2)
using namespace pyG4TwoVector;
#endif
// ====================================================================
// module definition
// ====================================================================
void export_G4TwoVector()
{
#if G4VERSION_NUMBER >= 830
class_<G4TwoVector>("G4TwoVector", "general 2-vector")
// constructors
.def(init<G4double>())
@@ -112,8 +106,4 @@ void export_G4TwoVector()
.def(self >= self)
.def(self <= self)
;
#endif
}
+2 -6
View File
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyglobals.cc 76884 2013-11-18 12:54:03Z gcosmo $
// $Id: pyglobals.cc 107590 2017-11-24 11:59:22Z gcosmo $
// ====================================================================
// pyglobals.cc
//
@@ -65,9 +65,8 @@ typedef std::vector<G4int> G4intVector;
typedef std::vector<G4double> G4doubleVector;
typedef std::vector<G4String> G4StringVector;
typedef std::vector<G4ThreeVector> G4ThreeVectorVector;
#if G4VERSION_NUMBER >= 830
typedef std::vector<G4TwoVector> G4TwoVectorVector;
#endif
}
using namespace pyglobals;
@@ -96,11 +95,8 @@ void export_globals()
.def(vector_indexing_suite<G4ThreeVectorVector>())
;
#if G4VERSION_NUMBER >= 830
class_<G4TwoVectorVector> ("G4StringVector", "2-vector vector")
.def(vector_indexing_suite<G4TwoVectorVector>())
;
#endif
}