xboa
|
Go to the source code of this file.
Namespaces | |
xboa.examples.Example_4 | |
Example code to read a file, apply a transformation and plot before and after. | |
Variables | |
int | target_beta = 800 |
float | target_alpha = 0.0 |
tuple | bunch_list = Bunch.new_list_from_read_builtin('icool_for003', sys.prefix+'/share/xboa/data/for003_test.dat') |
list | bunch = bunch_list[-1] |
tuple | emit_trans = bunch.get_emittance(['x']) |
tuple | target_ellipse = Bunch.build_ellipse_2d(target_beta, target_alpha, emit_trans, bunch.mean(['p'])['p'], Common.pdg_pid_to_mass[13], True) |