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