This modernized and graphic version of a charged particle beam transport code consists mainly of the old CERN/SLAC/FERMILAB version of

IBM Lotus Symphony is a discontinued suite of applications for creating, editing, and sharing text, spreadsheet, presentations, and other documents and browsing the World Wide Web. It was first distributed as commercial proprietary software, then as freeware, before IBM contributed the suite to the Apache Software Foundation in 2014 for inclusion in the free and open-source Apache OpenOffice software suite. First released in 2007, the suite has a name similar to the 1980s DOS Lotus Symphony.

Transport coded in portable FORTRAN-77 [1] and C for the OS-dependant system calls. Some enhancements have been added [2], mainly the possibility to compute space charge effects [3,3a,3b], an alternative stochastic fit algorithm [4], which allows doing envelope fits with second order or space charge using stochastic fitting. To vary parameters by imposing constraints (fitting to desired values) is the most powerful option in Transport. This improved version of
  • Recorded by 11-time Grammy nominated classical recording engineer Prof. Johnson, the EASTWEST/QUANTUM LEAP SYMPHONIC ORCHESTRA is the most awarded orchestral collection ever, including winning Sound On Sound's Reader's Choice Award an unprecedented 3-times, and the first orchestral collection to be recorded in a 'state of the art' concert hall where orchestras mainly perform.
  • On Mac OS, Symphony freezes when using fn+control+F2 to switch to the menu. Templates with a PNG object and an OLE object cannot be saved to.ppt format correctly. Open a.docx file that contains a table and a special field in the table and the table is lost.
Transport has been embedded in a new graphic shell written in C++ (see Fig.1, 69 kB) (or Tcl/Tk + csh for x86-Linux and Mac OS X - X11 [see Fig.2, 53 kB]) and is providing some pretty and handy GUI type tools (much more elaborated under Windows than under x86-Linux), which makes it a lot easier and swifter to either design new beam lines or debug and investigate existing ones online. A screen shot of a modern GUI Transport Input Editor for Windows is shown in Fig.3 (44 kB). This fruitful and valuable symbiosis of legacy and modern coding shows that you don't have to break with tradition in order to stay up-to-date. The computational part of this version of Transport contains plenty of new and old - but still needed - features and has been well tested over the last 30 years by many expert physicists from PSI and elsewhere around the world. In order to get a list of the currently available most important features of the Graphic Transport Framework (in comparison with the Graphic Turtle Framework), please click here. Because of the rapid development in computer technology and the preservation of code-efficiency for this framework, the turnaround time (run Beam Transport-> plot results) has improved by 4 orders of magnitude over the last 27 years. A short résumé about the usefulness of Transport (together with Turtle and MENT) has been published in the PSI Scientific and Technical Report 2000 Volume VI (Large Research Facilities) on pages 24 & 25. A whole collection of Transport input files from different users is available for inspection and/or downloading.
Hints:
To keep the graphic transport framework in good shape some modifications and bug fixes are sometimes necessary. So - from time to time - watch out for modifications and new features.
Once a beam line has been designed in first or even in second order it is recommended to switch to the Graphic Turtle Framework in order to look at properties like particle losses, phase space and momentum acceptances or beam profiles. Only a few lines of the Transport input file have to be modified for being used by Turtle.
If you prefer to run the Windows versions of Graphic Transport and Turtle Frameworks under x86-Linux, then you may do this today by installing the VMware for some x86-Linux Systems. After configuration and licensing of VMware and the installation of one of the 32-bit Windows operating systems inside this virtual machine for x86-Linux, you may then download and install the Windows versions of Graphic Transport and/or Graphic Turtle and run these programs under Windows while x86-Linux is up.
If you prefer to run the Windows versions of Transport and Turtle on an Apple Computer, then you may do this today by installing the Virtual PC 6.1 for Mac OS X. After installation and licensing of Virtual PC and the installation of one of the 32-bit Windows operating systems inside this virtual machine for the Mac, you may then download and install the Windows versions of Graphic Transport and/or Graphic Turtle and run these programs under Windows while Mac OS X is up.
Because of the growing interest in Proton Cancer Therapy, notes about some principles of optical design for medical gantries are presented here.
In order to demonstrate the usefulness of Beam Transport envelope fits, the application of this technique is presented here by using the Isotope Production Yield Optimization at PSI as an example.
The usefulness of Graphic Transport for even large acceptance secondary beam lines was demonstrated for the case of the new µE4 muon beam line at PSI.
A bootable live CD (see screen shot of the booted system) has been created which contains among many other preinstalled programs 'Transport for Windows' and 'Transport for Cygwin'. (Cygwin is a UNIX/Linux-like OS running on top of Windows.) It may be downloaded as iso-file ( U_R_live_CD.iso, 655 MB, instructions at 1-readme.txt). With low-speed internet connections you may download the split images.

License agreement:
This version of Beam Transport maintained by Urs Rohrer is freely available and distributable with one restriction: If you use it for some work whose results are made public in a report or a journal publication, then in a gentlemen's agreement you have to reference it properly like: PSI Graphic Transport Framework by U. Rohrer based on a CERN-SLAC-FERMILAB version by K.L. Brown et al. A reference like: Beam Transport by K.L. Brown et al. is considered as inappropriate, because more than half of this framework's code has not been produced by K.L. Brown et al. (See: Compendium of Transport Enhancements and Modifications and new features.) Nevertheless, I appreciate very much the excellent work done by K.L. Brown et al. and all the others, who have contributed to the content of the present version. (See also the references at the end of the Compendium.)
Notice:
PSI and the author of this program do not
guarantee the accuracy and/or usefulness
of the results achieved with this program.
The output of it is strongly dependent on
the given input and therefore the confirmation
of the correctness of all the results is the
responsibility of the user.
Limitations of the beam TRANSPORT code:
For TRANSPORT the equation of motion is solved by applying a Taylor series up
to second (or third) order and using the matrix formalism to compute the propagation
of the beam through a beam line.
Therefore TRANSPORT calculations are usually describing a beam accurate enough
in the paraxial approximation {sines and tangents of the angles can be replaced with
the angles (valid up to about 100 mr or 5 degrees)}.
As long as the 5 first order sine- and cosine-functions (cx, sx, dx, cy and sy) and
their derivatives are small as feasible through the used magnetic or electrostatic
elements, then aberrations (2nd and higher order terms) remain reasonable small.
If above conditions are not fulfilled, then a ray-tracing program, which solves
the equation of motion through 4th order Runge-Kutta integration should be used
for checking the validity of the results computed with the beam TRANSPORT code.
References:
[1] K.L. Brown, D.C. Carey, Ch. Iselin and F. Rothacker: Transport, a Computer Program for Designing Charged Particle Beam Transport Systems. See yellow reports CERN 73-16 (1973) & CERN 80-04 (1980).
[2] Urs Rohrer: Compendium of Transport Enhancements, Show text (66 kB)
[3] F. Sacherer and T.R. Sherwood, Space-Charge Modifications for Transport. MPS-SI/Note - LIN/71-7 (1971).
[3a] Frank J. Sacherer, RMS Envelope Equations with Space Charge, IEEE Transactions of Nuclear Science, NS-18, (1971), p.1105-1107.A turtle
[3b] F.J. Sacherer and T.R. Sherwood, The Effect of Space Charge in Beam Transport Lines, IEEE Transactions of Nuclear Science, NS-18, (1971), p.1066-1067.
[4] Udo Witzke, c't Computer Journal (in German), July 1991, p. 182-187.
Get Transport via Anonymous FTP Services (before downloading please read 00-index.txt and 1-readme.txt)

590 MeV High Intensity Proton Beam Lines: Home Page
Control System for Secondary Beam Lines: Available Programs
Proton Beam Therapy Application Examples

Last updated by Urs Rohrer on 20-April-2007

Author

Bob Savage <bobsavage@mac.com>

Python on a Macintosh running Mac OS X is in principle very similar to Python onany other Unix platform, but there are a number of additional features such asthe IDE and the Package Manager that are worth pointing out.

4.1. Getting and Installing MacPython¶

Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, youare invited to install the most recent version of Python 3 from the Pythonwebsite (https://www.python.org). A current “universal binary” build of Python,which runs natively on the Mac’s new Intel and legacy PPC CPU’s, is availablethere.

What you get after installing is a number of things:

  • A Python3.9 folder in your Applications folder. In hereyou find IDLE, the development environment that is a standard part of officialPython distributions; and PythonLauncher, which handles double-clicking Pythonscripts from the Finder.

  • A framework /Library/Frameworks/Python.framework, which includes thePython executable and libraries. The installer adds this location to your shellpath. To uninstall MacPython, you can simply remove these three things. Asymlink to the Python executable is placed in /usr/local/bin/.

The Apple-provided build of Python is installed in/System/Library/Frameworks/Python.framework and /usr/bin/python,respectively. You should never modify or delete these, as they areApple-controlled and are used by Apple- or third-party software. Remember thatif you choose to install a newer Python version from python.org, you will havetwo different but functional Python installations on your computer, so it willbe important that your paths and usages are consistent with what you want to do.

IDLE includes a help menu that allows you to access Python documentation. If youare completely new to Python you should start reading the tutorial introductionin that document.

A Turtle's Symphony Mac Os 8

If you are familiar with Python on other Unix platforms you should read thesection on running Python scripts from the Unix shell.

4.1.1. How to run a Python script¶

Your best way to get started with Python on Mac OS X is through the IDLEintegrated development environment, see section The IDE and use the Help menuwhen the IDE is running.

If you want to run Python scripts from the Terminal window command line or fromthe Finder you first need an editor to create your script. Mac OS X comes with anumber of standard Unix command line editors, vim andemacs among them. If you want a more Mac-like editor,BBEdit or TextWrangler from Bare Bones Software (seehttp://www.barebones.com/products/bbedit/index.html) are good choices, as isTextMate (see https://macromates.com/). Other editors includeGvim (http://macvim-dev.github.io/macvim/) and Aquamacs(http://aquamacs.org/).

To run your script from the Terminal window you must make sure that/usr/local/bin is in your shell search path.

To run your script from the Finder you have two options:

  • Drag it to PythonLauncher

  • Select PythonLauncher as the default application to open yourscript (or any .py script) through the finder Info window and double-click it.PythonLauncher has various preferences to control how your script islaunched. Option-dragging allows you to change these for one invocation, or useits Preferences menu to change things globally.

4.1.2. Running scripts with a GUI¶

With older versions of Python, there is one Mac OS X quirk that you need to beaware of: programs that talk to the Aqua window manager (in other words,anything that has a GUI) need to be run in a special way. Use pythonwinstead of python to start such scripts.

With Python 3.9, you can use either python or pythonw.

4.1.3. Configuration¶

A Turtle's Symphony Mac Os 11

Python on OS X honors all standard Unix environment variables such asPYTHONPATH, but setting these variables for programs started from theFinder is non-standard as the Finder does not read your .profile or.cshrc at startup. You need to create a file~/.MacOSX/environment.plist. See Apple’s Technical Document QA1067 fordetails.

For more information on installation Python packages in MacPython, see sectionInstalling Additional Python Packages.

4.2. The IDE¶

MacPython ships with the standard IDLE development environment. A goodintroduction to using IDLE can be found athttp://www.hashcollision.org/hkn/python/idle_intro/index.html.

4.3. Installing Additional Python Packages¶

There are several methods to install additional Python packages:

  • Packages can be installed via the standard Python distutils mode (pythonsetup.pyinstall).

  • Many packages can also be installed via the setuptools extensionor pip wrapper, see https://pip.pypa.io/.

4.4. GUI Programming on the Mac¶

There are several options for building GUI applications on the Mac with Python.

PyObjC is a Python binding to Apple’s Objective-C/Cocoa framework, which isthe foundation of most modern Mac development. Information on PyObjC isavailable from https://pypi.org/project/pyobjc/.

The standard Python GUI toolkit is tkinter, based on the cross-platformTk toolkit (https://www.tcl.tk). An Aqua-native version of Tk is bundled with OSX by Apple, and the latest version can be downloaded and installed fromhttps://www.activestate.com; it can also be built from source.

wxPython is another popular cross-platform GUI toolkit that runs natively onMac OS X. Packages and documentation are available from https://www.wxpython.org.

PyQt is another popular cross-platform GUI toolkit that runs natively on MacOS X. More information can be found athttps://riverbankcomputing.com/software/pyqt/intro.

4.5. Distributing Python Applications on the Mac¶

The standard tool for deploying standalone Python applications on the Mac ispy2app. More information on installing and using py2app can be foundat http://undefined.org/python/#py2app.

4.6. Other Resources¶

The MacPython mailing list is an excellent support resource for Python users anddevelopers on the Mac:

Another useful resource is the MacPython wiki: