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: pyG4ChordFinder.cc 76884 2013-11-18 12:54:03Z gcosmo $
// $Id: pyG4ChordFinder.cc 107590 2017-11-24 11:59:22Z gcosmo $
// ====================================================================
// pyG4ChordFinder.cc
//
@@ -54,7 +54,6 @@ void export_G4ChordFinder()
class_<G4ChordFinder, G4ChordFinder*, boost::noncopyable>
("G4ChordFinder", "chord finder class", no_init)
// constructor
.def(init<G4MagInt_Driver*>())
.def(init<G4MagneticField*>())
.def(init<G4MagneticField*, G4double>())
.def(init<G4MagneticField*, G4double, G4MagIntegratorStepper*>())
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4FieldManager.cc 76884 2013-11-18 12:54:03Z gcosmo $
// $Id: pyG4FieldManager.cc 107590 2017-11-24 11:59:22Z gcosmo $
// ====================================================================
// pyG4FieldManager.cc
//
@@ -39,17 +39,6 @@
using namespace boost::python;
// ====================================================================
// miscs
// ====================================================================
#if G4VERSION_NUMBER <= 801
// What a hell!
inline const G4ChordFinder* G4FieldManager::GetChordFinder() const
{
return fChordFinder;
}
#endif
// ====================================================================
// thin wrappers
// ====================================================================
@@ -57,9 +46,13 @@ namespace pyG4FieldManager {
G4ChordFinder*(G4FieldManager::*f1_GetChordFinder)()
= &G4FieldManager::GetChordFinder;
const G4ChordFinder*(G4FieldManager::*f2_GetChordFinder)() const
= &G4FieldManager::GetChordFinder;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetDetectorField,
SetDetectorField, 1, 2);
}
using namespace pyG4FieldManager;
@@ -78,7 +71,8 @@ void export_G4FieldManager()
.def(init<G4Field*, G4ChordFinder*, G4bool>())
.def(init<G4MagneticField*>())
// ---
.def("SetDetectorField", &G4FieldManager::SetDetectorField)
.def("SetDetectorField", &G4FieldManager::SetDetectorField,
f_SetDetectorField())
.def("GetDetectorField", &G4FieldManager::GetDetectorField,
return_internal_reference<>())
.def("DoesFieldExist", &G4FieldManager::DoesFieldExist)
@@ -103,4 +97,3 @@ void export_G4FieldManager()
.def("SetFieldChangesEnergy", &G4FieldManager::SetFieldChangesEnergy)
;
}