Project

General

Profile

Wiki » History » Version 11

Rogers, Chris, 17 March 2011 07:14

1 1 Rogers, Chris
h1. XBOA
2
3 2 Rogers, Chris
A multiparticle tracking postprocessor library for accelerator physicsists. You've got GPT running, or your favourite tracking code, what now? This package is a post-processor for taking beam data to calculate beam emittance, Twiss functions, etc. Also includes bindings to plotting packages ROOT and matplotlib, and a whole lot more!
4 1 Rogers, Chris
5
h2. Download and Installation
6
7 3 Rogers, Chris
You can download the latest version from the code repository hosted on "sourceforge":http://sourceforge.net/projects/xboa/. 
8 1 Rogers, Chris
9
Installation instructions are in the README file, but you probably have to do something like:
10
11
<pre>
12
tar -xzf xboa-<version>.tar.gz
13 4 Rogers, Chris
cd xboa-<version>
14 1 Rogers, Chris
python setup.py build
15
sudo python setup.py install
16
</pre>
17
18 11 Rogers, Chris
At the moment only Linux is supported, but windows support would be pretty easy to implement if there was demand.
19
20 1 Rogers, Chris
h2. Running
21
22 9 Rogers, Chris
When doing any physics analysis beyond the most basic, one really wants to be able to manipulate the analysis in various ways. For any detailed analysis, physicists will want to make cuts and calculate different variables in different ways. For this reason x-boa really provides just a library of physics analysis functions. Examples of how to use it are provided, but once physicists get going they can really push the analysis however they like.
23
24 6 Rogers, Chris
There are several example scripts in the directory xboa-<version>/xboa/examples that are good to start with. They take you through the steps required to load particle tracking data, access it, make plots and manipulate it in various ways. Reference documentation is in the directory xboa-<version>/doc. Browse the example script code at:
25
26
"Example 1":http://micewww.pp.rl.ac.uk/projects/x-boa/repository/entry/xboa/examples/Example_1.py
27 7 Rogers, Chris
"Example 2":http://micewww.pp.rl.ac.uk/projects/x-boa/repository/entry/xboa/examples/Example_2.py
28
"Example 3":http://micewww.pp.rl.ac.uk/projects/x-boa/repository/entry/xboa/examples/Example_3.py
29
"Example 4":http://micewww.pp.rl.ac.uk/projects/x-boa/repository/entry/xboa/examples/Example_4.py
30 9 Rogers, Chris
31
There is also a script that _almost_ clones the functionality of the ecalc9f code developed by Greg Penn and Rick Fernow:
32
33 10 Rogers, Chris
"XBOA9f":http://micewww.pp.rl.ac.uk/projects/x-boa/repository/entry/xboa/examples/XBOA9f
34 8 Rogers, Chris
35
h2. Documentation
36
37
Documentation is generated by the installation process, or available inline from the python command line by doing
38
<pre>
39
import xboa.Bunch
40
help(xboa.Bunch)
41
</pre>