2 @file beam_gen_sample_job.py
4 Generate beam events, transform them to beam coodinates and randomly sample them.
10 inputs = list(job.input_files.values())
12 if 'nevents' in job.params:
13 nevents = job.params[
'nevents']
18 egs5 =
EGS5(name=
"beam_v7_%s" % job.params[
'run_params'])
27 job.add([egs5, rot, sample])
Run the EGS5 event generator to produce a StdHep file.