Skip to content
Snippets Groups Projects

SiEIC event visualization

Merged David Blyth requested to merge sieic_vis into master
5 files
+ 1075
1001
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -90,10 +90,10 @@ def run(args):
if args.input_file == None:
gun = DDG4.GeneratorAction(kernel, 'Geant4ParticleGun/Gun')
gun.Standalone = False
gun.energy = 10 * GeV
gun.particle = 'mu-'
gun.energy = 5 * GeV
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')
Loading