OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
PyField.h
Go to the documentation of this file.
1#include <boost/python.hpp>
2
3#include "PyOpal/Globals.h"
4
5namespace PyOpal {
6namespace Field {
7std::string field_docstring =
8 "field module enables user to get the field at a point";
9
11 "Get the field value at a point in the field map.\n"
12 "\n"
13 "The field lookup is performed against the last RINGDEFINITION that was\n"
14 "instantiated. This should be instantiated by calling\n"
15 "pyopal.parser.initialise_from_opal_file\n"
16 "\n"
17 "Parameters\n"
18 "----------\n"
19 "x : float\n"
20 " x position [m]\n"
21 "y : float\n"
22 " y position [m]\n"
23 "z : float\n"
24 " z position [m]\n"
25 "t: float\n"
26 " time [ns]\n"
27 "\n"
28 "Returns\n"
29 "-------\n"
30 "The function returns a tuple containing 6 values:\n"
31 "out of bounds : int\n"
32 " 1 if the event was out of the field map boundary, else 0.\n"
33 "Bx : float\n"
34 " x magnetic field [T]\n"
35 "By : float\n"
36 " y magnetic field [T]\n"
37 "Bz : float\n"
38 " z magnetic field [T]\n"
39 "Ex : float\n"
40 " x electric field\n"
41 "Ey : float\n"
42 " y electric field\n"
43 "Ez : float\n"
44 " z electric field\n";
45
46py::object get_field_value(double x, double y, double z, double t);
47
48}
49}
std::string field_docstring
Definition: PyField.h:7
py::object get_field_value(double x, double y, double z, double t)
Definition: PyField.cpp:76
std::string get_field_value_docstring
Definition: PyField.h:10
Definition: Field.h:33