Class PyBaseFieldSource#
Defined in File PyBaseFieldSource.hh
Inheritance Relationships#
Base Type#
public OrbitUtils::BaseFieldSource(Class BaseFieldSource)
Class Documentation#
-
class PyBaseFieldSource : public OrbitUtils::BaseFieldSource#
The base class for Python implementation of a field source. It should be sub-classed on Python level and implements getElectricMagneticField(x,y,z,t) method (returns (Ex,Ey,Ez,Bx,By,Bz)). The results of these methods will be available from the c++ level. This is an example of embedding Python in C++ Orbit level. ATTENTION: It is only for prototyping and debugging only. It is slow.
Public Functions
-
PyBaseFieldSource(PyObject *py_wrapperIn)#
Constructor. Zero fields inside.
-
~PyBaseFieldSource()#
Destructor.
-
virtual void getElectricMagneticField(double x, double y, double z, double t, double &fe_x, double &fe_y, double &fe_z, double &fm_x, double &fm_y, double &fm_z)#
Returns E and B as functions of the x,y,z and t-time.
-
PyBaseFieldSource(PyObject *py_wrapperIn)#