xboa
|
Go to the source code of this file.
Namespaces | |
namespace | xboa.examples.Example_4 |
Example code to read a file, apply a transformation and plot before and after. | |
Variables | |
int | target_beta = 420 |
float | target_alpha = 0.5 |
tuple | bunch_list = Bunch.new_list_from_read_builtin('g4mice_virtual_hit', sys.prefix+'/share/xboa/data/Sim.out.gz') |
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) |