Import Geant4 9.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:37:50 +02:00
parent a8e9364cea
commit 96c8bcd0af
6923 changed files with 198390 additions and 41849 deletions
+21 -3
View File
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Box.cc,v 1.4 2006/06/29 15:31:50 gunter Exp $
// $Name: geant4-09-00 $
// $Id: pyG4Box.cc,v 1.6 2007/07/12 10:01:53 kmura Exp $
// $Name: geant4-09-01 $
// ====================================================================
// pyG4Box.cc
//
@@ -35,6 +35,21 @@
using namespace boost::python;
// ====================================================================
// wrappers
// ====================================================================
namespace pyG4Box {
G4Box* CreateBox(const G4String& name, G4double pX, G4double pY,
G4double pZ)
{
return new G4Box(name, pX, pY, pZ);
}
}
using namespace pyG4Box;
// ====================================================================
// module definition
// ====================================================================
@@ -51,9 +66,12 @@ void export_G4Box()
.def("SetXHalfLength", &G4Box::SetXHalfLength)
.def("SetYHalfLength", &G4Box::SetYHalfLength)
.def("SetZHalfLength", &G4Box::SetZHalfLength)
.def("GetCubicVolume", &G4Box::GetCubicVolume)
// operators
.def(self_ns::str(self))
;
// Create solid
def("CreateBox", CreateBox, return_value_policy<manage_new_object>());
}