1

# This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus

2

#

3

# MAUS is free software: you can redistribute it and/or modify

4

# it under the terms of the GNU General Public License as published by

5

# the Free Software Foundation, either version 3 of the License, or

6

# (at your option) any later version.

7

#

8

# MAUS is distributed in the hope that it will be useful,

9

# but WITHOUT ANY WARRANTY; without even the implied warranty of

10

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

11

# GNU General Public License for more details.

12

#

13

# You should have received a copy of the GNU General Public License

14

# along with MAUS. If not, see <http://www.gnu.org/licenses/>.

15


16

# NOTE: please use lower_case_and_underscores for new configuration cards

17


18

import os

19


20


21

#output_root_file_name = "maus_output_3pi2_alt_0.root"

22


23


24

simulation_geometry_filename = "files/geometry/custom/Step_3pi2_alt_5.dat"

25


26

random_seed_beam = int( os.getenv( "MAUS_RANDOM_SEED", 5 ) )

27

random_seed_reference = 2 * random_seed_beam

28


29

z_start_pos = 4717.7

30


31

simulation_reference_particle = { # used for setting particle phase

32

"position":{"x":0.0, "y":0.0, "z":z_start_pos},

33

"momentum":{"x":0.0, "y":0.0, "z":1.0},

34

"particle_id":13, "energy":228.0, "time":0.0, "random_seed":random_seed_reference

35

}

36


37

# geant4 visualisation (not event display)

38

geant4_visualisation = False

39

accumulate_tracks = 0

40


41

# Change the verbosity

42

#verbose_level = 0

43

verbose_level = 1

44

#verbose_level = 2

45


46

spill_generator_number_of_spills = 10

47

# used by MapPyBeamMaker to generate input particle data

48

# This is a sample beam distribution based on guesses by Chris Rogers of what

49

# an optimised beam might look like

50


51

beam = {

52

# "particle_generator":"binomial", # routine for generating empty primaries

53

# "binomial_n":10, # number of coin tosses

54

# "binomial_p":1.0, # probability of making a particle on each toss

55

"particle_generator" : "counter",

56

"random_seed":random_seed_beam,

57

"definitions":[

58

{

59

"reference":simulation_reference_particle, # reference particle

60

"random_seed_algorithm":"incrementing_random", # algorithm for seeding MC

61

"n_particles_per_spill" : 10,

62

"transverse":{

63

"transverse_mode" : "penn",

64

"emittance_4d":6.,

65

"beta_4d":329.0,

66

"alpha_4d":0.,

67

"normalised_angular_momentum":0.0,

68

"bz":4.e3

69

},

70

"longitudinal":{

71

"longitudinal_mode" : "twiss",

72

"momentum_variable" : "pz",

73

"beta_l" : 11.2,

74

"alpha_l" : 0.7,

75

"emittance_l" : 0.020

76


77

# "longitudinal_mode" : "gaussian",

78

# "momentum_variable":"energy",

79

# "sigma_energy":(2643.06853654*0.1)**0.5,

80

# "sigma_t":(4.28350440358*0.1)**0.5,

81

# "cov(t,energy)":12.2924168701 *0.1

82

},

83

"coupling":{

84

"coupling_mode":"none"

85

} # no dispersion

86

}

87

]

88

}

89

