1
|
folder = "tmp/output_++--_FC=40.0_p=200.0_10"
|
2
|
emittance_trans = 9
|
3
|
emittance_long = 0.0
|
4
|
n_spills = 1000
|
5
|
n_per_spill = 10
|
6
|
momentum = 200.0
|
7
|
physics = "standard"
|
8
|
energy = (momentum**2.+105.658**2)**0.5
|
9
|
|
10
|
if emittance_trans < 1e-9:
|
11
|
transverse = {"transverse_mode":"pencil"}
|
12
|
else:
|
13
|
transverse = {
|
14
|
"transverse_mode":"constant_solenoid",
|
15
|
"emittance_4d":emittance_trans,
|
16
|
"normalised_angular_momentum":0.0,
|
17
|
"bz":4.e-3,
|
18
|
}
|
19
|
|
20
|
if emittance_long < 1e-6:
|
21
|
longitudinal = {
|
22
|
"longitudinal_mode":"pencil",
|
23
|
"momentum_variable":"p",
|
24
|
}
|
25
|
else:
|
26
|
longitudinal = {
|
27
|
"longitudinal_mode":"twiss",
|
28
|
"momentum_variable":"p",
|
29
|
"beta_l":10.,
|
30
|
"alpha_l":-1.,
|
31
|
"emittance_l":emittance_long,
|
32
|
}
|
33
|
|
34
|
simulation_reference_particle = {
|
35
|
"random_seed": 0,
|
36
|
"energy":226.,
|
37
|
"particle_id":-13,
|
38
|
"time": 0.0,
|
39
|
"position":{"x":0.0, "y":0.0, "z":-4050.001},
|
40
|
"momentum":{"x":0.0, "y":0.0, "z":1.0}
|
41
|
}
|
42
|
simulation_geometry_filename = "StepPi.dat"
|
43
|
verbose_level = 1
|
44
|
|
45
|
spill_generator_number_of_spills = n_spills
|
46
|
|
47
|
beam = {
|
48
|
"particle_generator":"counter",
|
49
|
"random_seed":0,
|
50
|
"definitions":[{
|
51
|
"reference":simulation_reference_particle,
|
52
|
"random_seed_algorithm":"incrementing_random",
|
53
|
"n_particles_per_spill":n_per_spill,
|
54
|
"transverse":transverse,
|
55
|
"longitudinal":longitudinal,
|
56
|
"coupling":{"coupling_mode":"none"}
|
57
|
#"spin":{"x":0.0, "y":0.0, "z":1.0}
|
58
|
},]
|
59
|
}
|
60
|
physics_processes = physics
|
61
|
particle_decay = False
|
62
|
|
63
|
output_root_file_name = "maus_output_et="+str(emittance_trans)+"_el="+str(emittance_long)+"_"+str(n_spills*n_per_spill)+"_"+physics+".root"
|
64
|
|
65
|
|