~christopher-hunt08/maus/maus_DOE_review_version

« back to all changes in this revision

Viewing changes to Conf_LH2_multi_nominal_0.0001dpz.py

  • Committer: Christopher Hunt
  • Date: 2014-07-08 16:52:34 UTC
  • Revision ID: christopher.hunt08@imperial.ac.uk-20140708165234-8532hqmj36m8ll4r
Everything

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_test.root"
 
22
 
 
23
 
 
24
simulation_geometry_filename = "Stage4_new_LH2_vac_nominal.dat"
 
25
#simulation_geometry_filename = "Stage4_new_LH2_vac_noVirts.dat"
 
26
 
 
27
z_start_pos = -2900.0
 
28
 
 
29
simulation_reference_particle = { # used for setting particle phase
 
30
    "position":{"x":0.0, "y":0.0, "z":z_start_pos},
 
31
    "momentum":{"x":0.0, "y":0.0, "z":1.0},
 
32
    "particle_id":-13, "energy":232.1, "time":0.0, "random_seed":10
 
33
}
 
34
 
 
35
# geant4 visualisation (not event display)
 
36
geant4_visualisation = False
 
37
accumulate_tracks = 0
 
38
 
 
39
 
 
40
use_global_random_seed = 1
 
41
#global_random_seed = 123
 
42
 
 
43
 
 
44
spill_generator_number_of_spills = 20
 
45
# used by MapPyBeamMaker to generate input particle data
 
46
# This is a sample beam distribution based on guesses by Chris Rogers of what
 
47
# an optimised beam might look like
 
48
 
 
49
beam = {
 
50
    "particle_generator":"binomial", # routine for generating empty primaries
 
51
    "binomial_n":10, # number of coin tosses
 
52
    "binomial_p":1.0, # probability of making a particle on each toss
 
53
    "random_seed":5, # random seed for beam generation; controls also how the MC
 
54
                     # seeds are generated
 
55
    "definitions":[
 
56
    {
 
57
       "reference":simulation_reference_particle, # reference particle
 
58
       "random_seed_algorithm":"incrementing_random", # algorithm for seeding MC
 
59
       "weight":100., # probability of generating a particle
 
60
        "transverse":{
 
61
          "transverse_mode" : "penn", 
 
62
          "emittance_4d":6., 
 
63
          "beta_4d":336.9,
 
64
          "alpha_4d":0.,
 
65
          "normalised_angular_momentum":0.0,
 
66
          "bz":4.e-3
 
67
        },
 
68
        "longitudinal":{
 
69
          "longitudinal_mode":"sawtooth_time", # longitudinal distribution sawtooth in time
 
70
         "momentum_variable":"pz", # Gaussian in total momentum (options energy, pz)
 
71
         "sigma_pz":0.0001, # RMS total momentum
 
72
         "t_start":-1.e6, # start time of sawtooth
 
73
         "t_end":+1.e6}, # end time of sawtooth
 
74
         "coupling":{
 
75
           "coupling_mode":"none"
 
76
         } # no dispersion
 
77
    }
 
78
  ]
 
79
}
 
80
 
 
81
 
 
82
 
 
83
 
 
84
 
 
85
 
 
86
 
 
87
#beam = {
 
88
#    "particle_generator":"binomial", # routine for generating empty primaries
 
89
#    "binomial_n":20, # number of coin tosses
 
90
#    "binomial_p":1.0, # probability of making a particle on each toss
 
91
#    "random_seed":5, # random seed for beam generation; controls also how the MC
 
92
#                     # seeds are generated
 
93
#    "definitions":[
 
94
#    ##### MUONS #######
 
95
#    {
 
96
#       "reference":simulation_reference_particle, # reference particle
 
97
#       "random_seed_algorithm":"incrementing_random", # algorithm for seeding MC
 
98
#       "weight":100., # probability of generating a particle
 
99
#       "transverse":{
 
100
#          "transverse_mode":"constant_solenoid", # transverse distribution matched to constant solenoid field
 
101
#          "emittance_4d":6., # 4d emittance
 
102
#          "normalised_angular_momentum":0.1, # angular momentum from diffuser
 
103
#          "bz":4.e-3 # magnetic field strength for angular momentum calculation
 
104
#       },
 
105
#       "longitudinal":{"longitudinal_mode":"sawtooth_time", # longitudinal distribution sawtooth in time
 
106
#                   "momentum_variable":"p", # Gaussian in total momentum (options energy, pz)
 
107
#                   "sigma_p":5.0, # RMS total momentum
 
108
#                   "t_start":-1.e6, # start time of sawtooth
 
109
#                   "t_end":+1.e6}, # end time of sawtooth
 
110
#       "coupling":{"coupling_mode":"none"} # no dispersion
 
111
#    } ]
 
112
#}
 
113
#
 
114