Project

General

Profile

Make MADX Dat files

The program make_madx_dat takes the MagnetSettings.txt file created by ReadAllSetting.acl and creates the *.dat files used by booster.madx

The source code can be retrieved by issuing the following command:

git clone http://cdcvs.fnal.gov/projects/booster_madx_make_madx_dat 

Requirements

Builds on MacOSX 10.10.3

Compiling on MacOSX

The requirements for building make_madx_dat:

  • Boost library
  • use MacPorts to install
 port install boost 

Boost.Process 0.5. This is the beta version of the process library and needs to be downloaded and installed separately

Boost.Process

  • GNU Scientific library
  • use MacPorts to install
 port install gsl 

Building

Edit the Makefile to put in the appropriate paths if necessary. The Makefile has been set up so that it knows whether it is run on a Mac or on the CLX cluster.

Run

 make

make_madx_dat should be created. Move fitit to your local path.

A pre-built version of make_madx_dat for MacOSX can be requested from the author:

Running

Checking the configuration

make_madx_dat -h

The output should look something like this

make_madx_dat version 1.0-1-g1a4ff49-2

generic options :
  -h [ --help ]          this message
  -m [ --magnet ] arg    Magnet settings filename
  -d [ --debug ]         enable debugging
  -v [ --version ]       print version

Example

For example:

make_madx_dat -m MagnetSettings.txt

will create the following files:
DC.dat          QL.dat          SQS.dat         SXL.dat         VS.dat
HL.dat          QS.dat          SSL.dat         SXS.dat
HS.dat          SQL.dat         SSS.dat         VL.dat