30 "RingDefinition class enables definition of the global ring parameters\n"
32 "RingDefinition holds definitions of the global ring parameters like the\n"
33 "position of the first lattice element and position of the beam.\n"
34 "Internally, the RingDefinition handles placement of OPAL objects. Once they\n"
35 "have been placed, (e.g. Track has been executed), it is possible to\n"
36 "interrogate the RingDefinition to find what are the element positions as\n"
37 "placed by PyOpal, for debugging purposes.\n"
39 "See also pyopal.objects.line.Line class, which handles the sequential\n"
40 "element placements.\n\n";
43 std::vector<PyOpalObjectNS::AttributeDef>
61 namespace PyRingDefinition {
81 const char*
module_docstring =
"ring_definition module contains the RingDefinition class";
constexpr double e
The value of.
void registerExceptions()
Register exception translations with boost.
void Initialise()
Globals namespace provides routines to initialise global objects:
const char * module_docstring
BOOST_PYTHON_MODULE(ring_definition)
std::string ring_definition_docstring
RingDefinition handles access to the Ring object.
PyOpalObject<C> is the basic wrapper class for Opal Objects.
void addGetFieldValue(PYCLASS &pyclass, double distanceUnits, double timeUnits, double bfieldUnits, double efieldUnits)
Add a "get_field_value" method to the python class (for elements that expose a field)
boost::python::class_< PyC > make_element_class(const char *className)
This is the basic method to make a class for elements.