32 #include <boost/python.hpp> 33 #include "G4UniformMagField.hh" 42 class_<G4UniformMagField, G4UniformMagField*,
43 bases<G4Field, G4MagneticField> >
44 (
"G4UniformMagField",
"uniform magnetic field", no_init)
46 .def(init<const G4ThreeVector&>())
47 .def(init<const G4double, G4double, G4double>())
49 .def(
"SetFieldValue", &G4UniformMagField::SetFieldValue)
50 .def(
"GetConstantFieldValue", &G4UniformMagField::GetConstantFieldValue)