Author: Fuchsberger, K.
Paper Title Page
WEPC119 PYMAD – Integration of MADX in PYTHON 2289
 
  • K. Fuchsberger, Y.I. Levinsen
    CERN, Geneva, Switzerland
 
  The de-facto standard software for modeling accelerator lattices at CERN is MADX (Methodical Accelerator Design), which is implemented and still maintained in the programming languages C and FORTRAN. For detailed processing, analysis and plotting of MADX results, other programming languages are often used. One very popular scripting language is PYTHON, which is widely used in the physics community and provides powerful numerical libraries and plotting routines. Therefore, access to MADX models from PYTHON is a common demand. Currently, several possible concepts for the realization of such a project are evaluated, including direct access to MADX via CYTHON (C extension of PYTHON) or the re-usage of the existing JMAD Java libraries, benefiting from the already available model-definitions. A first prototype is already in use and the release as an open source project is in preparation. This paper presents the concepts and the current status of the project, as well as some usage examples.  
 
WEPC120 Status of JMAD, the JAVA-API for MADX 2292
 
  • K. Fuchsberger, X. Buffat, Y.I. Levinsen, G.J. Müller
    CERN, Geneva, Switzerland
 
  MADX (Methodical Accelerator Design) is the de-facto standard software for modeling accelerator lattices at CERN. This feature-rich software package is implemented and still maintained in the programming languages C and FORTRAN. Nevertheless the controls environment of modern accelerators at CERN, e.g., of the LHC, is dominated by JAVA applications. A lot of these applications, for example, for lattice measurement and fitting, require a close interaction with the numerical models, which are all defined by the use of the proprietary MADX scripting language. To close this gap an API to MADX for the JAVA programming language (JMAD) was developed. JMAD was first presented to the public about one year ago. In the meantime, a number of improvements were done, and additional MADX features (e.g., tracking) were made available for JAVA applications. Additionally, the graphical user interface was improved, and the first release as open source software is in reach. This paper describes the current status and some new features of the project, as well as some usage examples.