~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to bin/Global/datacard_200MeV_e_plus.py

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
Datacard to run with simulation of 200MeV/c positrons
 
3
"""
 
4
# pylint: disable=C0103, W0611
 
5
 
 
6
import os
 
7
 
 
8
output_json_file_name = "200MeV_e_plus_hypothesis.json"
 
9
output_json_file_type = "text"
 
10
 
 
11
# Used by MapPyRemoveTracks.
 
12
keep_only_muon_tracks = False
 
13
 
 
14
# Used by MapCppSimulation
 
15
keep_tracks = True # set to true to keep start and end point of every track
 
16
keep_steps = False # set to true to keep start and end point of every track and
 
17
                   # every step point
 
18
simulation_geometry_filename = "Stage4.dat" # geometry used by simulation
 
19
maximum_number_of_steps = 10000
 
20
simulation_reference_particle = {
 
21
    "position":{"x":0.0, "y":-0.0, "z":0.0},
 
22
    "momentum":{"x":0.0, "y":0.0, "z":1.0},
 
23
    "particle_id":-11, "energy":200.0, "time":0.0, "random_seed":10
 
24
}
 
25
 
 
26
 
 
27
# used by InputPySpillGenerator to determine the number of empty spills that
 
28
# will be generated by the simulation
 
29
spill_generator_number_of_spills = 10000
 
30
# used by MapPyBeamMaker to generate input particle data
 
31
# This is a sample beam distribution based on guesses by Chris Rogers of what
 
32
# an optimised beam might look like
 
33
beam = {
 
34
    "particle_generator":"binomial", # routine for generating empty primaries
 
35
    "binomial_n":1, # number of coin tosses
 
36
    "binomial_p":1.0, # probability of making a particle on each toss
 
37
    "random_seed":5, # random seed for beam generation; controls also how the MC
 
38
                     # seeds are generated
 
39
    "definitions":[
 
40
    {
 
41
       "reference":simulation_reference_particle, # reference particle
 
42
       "random_seed_algorithm":"incrementing_random", # algorithm for seeding MC
 
43
       "weight":100., # probability of generating a particle
 
44
       "transverse":{"transverse_mode":"pencil"},
 
45
       "longitudinal":{"longitudinal_mode":"pencil", # longitudinal distribution
 
46
                                                     # sawtooth in time
 
47
                       "momentum_variable":"p"}, # end time of sawtooth
 
48
       "coupling":{"coupling_mode":"none"} # no dispersion
 
49
    }]
 
50
}
 
51
 
 
52
particle_decay = False