Project

General

Profile

Bug #1640 » emr_and_polarised_decay_config.py

Rogers, Chris, 10 March 2015 11:29

 
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
"""
17
Configuration to generate a beam distribution with binomial distribution in
18
the spill and various distributions for difference particle types
19
"""
20

    
21
import os
22

    
23
#pylint: disable = C0103, R0801
24
spill_generator_number_of_spills = 100
25
verbose_level = 1
26
keep_tracks = True
27
decay = True
28
polarised_decay = False
29

    
30
#output_root_file_name = "data/maus_mc_output.root"
31
simulation_geometry_filename = os.path.expandvars("EMRGeometry.dat")
32
muon_half_life = -1. # negative -> default lifetime
33
kinetic_cutoff = 0.001
34
kinetic_energy_threshold = 0.001
35

    
36
keep_or_kill_particles = {"e+":True, "mu+":True}
37

    
38
header_and_footer_mode = "dont_append" # suppress headers
39

    
40
simulation_reference_particle = {
41
    "position":{"x":0.0, "y":-0.0, "z":0.0},
42
    "momentum":{"x":0.0, "y":0.0, "z":1.0},
43
    "particle_id":-13, "energy":200.0, "time":0.0, "random_seed":0
44
}
45
beam = {
46
    "particle_generator":"counter",
47
    "random_seed":0,
48
    "definitions":[{
49
         "reference":simulation_reference_particle,
50
         "n_particles_per_spill":1,
51
         "random_seed_algorithm":"incrementing_random",
52
         "transverse":{"transverse_mode":"pencil"},
53
          "longitudinal":{"longitudinal_mode":"pencil","momentum_variable":"p"},
54
         "coupling":{"coupling_mode":"none"},
55
         "beam_polarisation":{
56
             "polarisation_mode":"gaussian_unit_vectors",
57
             "beam_mean_x":0.,
58
             "beam_mean_y":0.,
59
             "beam_mean_z":1.e6,
60
             "beam_sigma_x":1.,
61
             "beam_sigma_y":1.,
62
             "beam_sigma_z":1.,
63
         }
64
    }],
65
}
66

    
67
# geant4_visualisation = True
68

    
(2-2/6)