2 @file tritrig_gen_to_beam_coords_job.py
4 Simulate tritrig events, add mother particle information and rotate events into beam coordinates.
7 from hpsmc.tools import Unzip, AddMotherFullTruth, BeamCoords
9 job.description =
'Generate tritrig events using MadGraph5 and convert to StdHep using EGS5'
12 mg =
MG5(name=
'tritrig')
15 unzip =
Unzip(inputs=mg.output_files())
21 mom =
AddMotherFullTruth(inputs=[cnv.output_files()[0], unzip.output_files()[0]], outputs=[
'tritrig_mom.stdhep'])
27 job.ptag(
'gen',
'tritrig_mom_rot.stdhep')
30 job.add([mg, unzip, cnv, mom, rot])
Run the MadGraph 5 event generator.
Convert LHE files to StdHep using EGS5.