Commit 5e0106c6 authored by David Blyth's avatar David Blyth
Browse files

SiEIC Concept: added parameter to sieic_sim for pgun particle species

parent 063da93c
......@@ -91,9 +91,9 @@ def run(args):
gun = DDG4.GeneratorAction(kernel, 'Geant4ParticleGun/Gun')
gun.Standalone = False
gun.energy = 5 * GeV
gun.particle = 'mu-'
gun.particle = args.pgun_species
gun.isotrop = True
gun.Distribution = 'eta'
gun.Distribution = 'uniform'
gen_action.adopt(gun)
else:
params = {}
......@@ -166,6 +166,12 @@ def define_args(parser):
dest='run_ui',
help='run a UI'
)
parser.add_argument(
'-p', '--pgun',
dest='pgun_species',
default='mu-',
help='particle gun species'
)
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='sieic_sim')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment