31 #include <boost/python.hpp>
35 using namespace boost::python;
49 virtual void GetFieldValue(
const G4double Point[4],
53 GetFieldValue(
G4ThreeVector(Point[0], Point[1], Point[2]), Point[3]);
55 Bfield[0]= bfield.
x();
56 Bfield[1]= bfield.
y();
57 Bfield[2]= bfield.
z();
65 namespace pyG4MagneticField {
74 return get_override(
"GetFieldValue")(
pos,
time);
85 using namespace pyG4MagneticField;
92 class_<G4MagneticField, boost::noncopyable >
93 (
"__G4MagneticField",
"dummy class of magnetic field", no_init)
97 bases<G4Field, G4MagneticField> >
98 (
"G4MagneticField",
"base class of magnetic field")