4 Simulation of radiative events.
7 from hpsmc.tools import Unzip, BeamCoords, AddMotherFullTruth
9 job.description =
'rad generation'
12 inputs = list(job.input_files.values())
14 if 'nevents' in job.params:
15 nevents = job.params[
'nevents']
20 mg =
MG5(name=
'RAD', event_types=[
'unweighted'])
26 unzip =
Unzip(inputs=mg.output_files(), outputs=[
"rad.lhe"])
29 mom =
AddMotherFullTruth(inputs=[cnv.output_files()[0], unzip.output_files()[0]], outputs=[
"rad_mom.stdhep"])
32 rot =
BeamCoords(inputs=mom.output_files(), outputs=[
"rad_rot.stdhep"])
35 job.add([mg, cnv, unzip, mom, rot])
Run the MadGraph 5 event generator.
Convert LHE files to StdHep using EGS5.