~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to tests/integration/test_simulation/test_physics_model/physics_model_config.py

reverse merge from trunk

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
"""
 
17
Configuration to generate a beam distribution with binomial distribution in
 
18
the spill and various distributions for difference particle types
 
19
"""
 
20
 
 
21
#pylint: disable = C0103, R0801
 
22
 
 
23
import os
 
24
mrd = os.environ["MAUS_ROOT_DIR"]
 
25
 
 
26
simulation_geometry_filename = os.path.join(
 
27
  mrd, "tests", "integration", "test_simulation", "test_physics_model", 
 
28
  "PhysicsModelTest.dat"
 
29
)
 
30
spill_generator_number_of_spills = 2
 
31
verbose_level = 0
 
32
keep_tracks = True
 
33
 
 
34
simulation_reference_particle = { # used for setting particle phase
 
35
    "position":{"x":0.0, "y":-0.0, "z":0.0},
 
36
    "momentum":{"x":0.0, "y":0.0, "z":1.0},
 
37
    "particle_id":211, "energy":300.0, "time":0.0, "random_seed":0
 
38
}
 
39
 
 
40
beam = {
 
41
    "particle_generator":"counter", # routine for generating empty primaries
 
42
    "random_seed":0, # random seed for beam generation; controls also how the MC
 
43
                     # seeds are generated
 
44
    "definitions":[
 
45
    {
 
46
       "reference":{
 
47
            "position":{"x":0.0, "y":0.0, "z":0.0},
 
48
            "momentum":{"x":0.0, "y":0.0, "z":1.0},
 
49
            "particle_id":211,
 
50
            "energy":300.0,
 
51
            "time":0.,
 
52
            "random_seed":0
 
53
        }, # reference particle
 
54
       "n_particles_per_spill":1,
 
55
       "random_seed_algorithm":"incrementing_random", # algorithm for seeding MC
 
56
       "transverse":{"transverse_mode":"pencil"},
 
57
        "longitudinal":{"longitudinal_mode":"pencil","momentum_variable":"p"},
 
58
       "coupling":{"coupling_mode":"none"}
 
59
    },
 
60
    {
 
61
       "reference":{
 
62
            "position":{"x":0.0, "y":0.0, "z":0.0},
 
63
            "momentum":{"x":0.0, "y":0.0, "z":1.0},
 
64
            "particle_id":-13,
 
65
            "energy":226.0,
 
66
            "time":0.,
 
67
            "random_seed":0
 
68
        }, # reference particle
 
69
       "n_particles_per_spill":1,
 
70
       "random_seed_algorithm":"incrementing_random", # algorithm for seeding MC
 
71
       "transverse":{"transverse_mode":"pencil"},
 
72
        "longitudinal":{"longitudinal_mode":"pencil","momentum_variable":"p"},
 
73
       "coupling":{"coupling_mode":"none"}
 
74
    },
 
75
    ],
 
76
}