HPS-MC
beam_gen_job.py
Go to the documentation of this file.
1 """!
2 @file beam_gen_job.py
3 
4 Generate beam events.
5 """
6 from hpsmc.generators import EGS5
7 
8 job.description = 'beam generation'
9 
10 if 'nevents' in job.params:
11  nevents = job.params['nevents']
12 else:
13  nevents = 250000
14 
15 
16 egs5 = EGS5(name="beam_v7_%s" % job.params['run_params'])
17 
18 
19 job.add([egs5])
Run the EGS5 event generator to produce a StdHep file.
Definition: generators.py:28