LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4UniformMagField.cc File Reference
#include <boost/python.hpp>
#include "G4UniformMagField.hh"

Go to the source code of this file.

Functions

void export_G4UniformMagField ()
 

Function Documentation

void export_G4UniformMagField ( )

Definition at line 39 of file pyG4UniformMagField.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4UniformMagField, G4UniformMagField*,
42  bases<G4Field, G4MagneticField> >
43  ("G4UniformMagField", "uniform magnetic field", no_init)
44  // constructors
45  .def(init<const G4ThreeVector&>())
46  .def(init<const G4double, G4double, G4double>())
47  // ---
48  .def("SetFieldValue", &G4UniformMagField::SetFieldValue)
49  .def("GetConstantFieldValue", &G4UniformMagField::GetConstantFieldValue)
50  ;
51 }