32 #include <boost/python.hpp>
36 using namespace boost::python;
54 GetFieldValue(
G4ThreeVector(Point[0], Point[1], Point[2]), Point[3]);
56 Bfield[0]= bfield.
x();
57 Bfield[1]= bfield.
y();
58 Bfield[2]= bfield.
z();
66 namespace pyG4MagneticField {
73 return get_override(
"GetFieldValue")(
pos, time);
84 using namespace pyG4MagneticField;
91 class_<G4MagneticField, boost::noncopyable >
92 (
"__G4MagneticField",
"dummy class of magnetic field", no_init)
96 bases<G4Field, G4MagneticField> >
97 (
"G4MagneticField",
"base class of magnetic field")
100 .def(
"GetFieldValue", pure_virtual(f1_GetFieldValue))
CLHEP::Hep3Vector G4ThreeVector
static const G4double pos
virtual void GetFieldValue(const G4double Point[4], G4double *Bfield) const
G4ThreeVector GetFieldValue(const G4ThreeVector &pos, const G4double time) const
virtual G4ThreeVector GetFieldValue(const G4ThreeVector &pos, const G4double time) const =0
G4bool DoesFieldChangeEnergy() const
void export_G4MagneticField()