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_ppmm_11.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 = 4580.0

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":339.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" : "energy",

73

"beta_l" : 14,

74

"alpha_l" : 1.,

75

"emittance_l" : 0.004

76

# "longitudinal_mode" : "gaussian",

77

# "momentum_variable":"pz", # Gaussian in total momentum (options energy, pz)

78

# "sigma_pz" : 2.0,

79

# "sigma_t" : 0.15

80

},

81

"coupling":{

82

"coupling_mode":"none"

83

} # no dispersion

84

}

85

]

86

}

87

