Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4UniformMagField.cc File Reference
#include <boost/python.hpp>
#include "G4UniformMagField.hh"
Include dependency graph for pyG4UniformMagField.cc:

Go to the source code of this file.

Functions

void export_G4UniformMagField ()
 

Function Documentation

void export_G4UniformMagField ( )

Definition at line 40 of file pyG4UniformMagField.cc.

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

Here is the call graph for this function:

Here is the caller graph for this function: