EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH

MAD-X PLUGINS

MAD-X provides a plug-in mechanism for functionality extensions. Plug-in technique does not require linking at build time. The job is done at the time plug-in is loaded by the dynamic linker. In order to use any plug-in, the plugin support must be compiled in MADX. At the top of every MADX makefile there is variable PLUGIN_SUPPORT that must be set to "YES". Then, the appropriate C interface is compiled in and MADX is linked dynamically. Plug-ins must be accessible to the dynamic linker. The default location where plug-ins are searched is $HOME/.madx/plugins. Otherwise, the directory containing the library must be either listed in
  1. the configuration file of the dynamic linker (on SLC3 it is /etc/ld.so.conf)
  2. LD_LIBRARY_PATH environment variable

Existing plug-ins

  1. RPLOT.

Example

PROGRAMMERS MANUAL

The interface is not yet fully defined. The documentation apears at the moment it happens.