2@file tritrig_gen_to_beam_coords_job.py
4Simulate tritrig events, add mother particle information and rotate events into beam coordinates.
7from hpsmc.tools import Unzip, AddMotherFullTruth, BeamCoords, SLIC
9job.description =
'Generate tritrig events and simulate passage through detector'
11if 'nevents' in job.params:
12 nevents = job.params[
'nevents']
17mg =
MG5(name=
'tritrig')
20unzip =
Unzip(inputs=mg.output_files())
24 outputs=[
'tritrig.stdhep'])
28 outputs=[
'tritrig_mom.stdhep'])
32 outputs=[
'tritrig_mom_rot.stdhep'])
35job.ptag(
'gen',
'tritrig_mom_rot.stdhep')
38slic =
SLIC(inputs=[
'tritrig_mom_rot.stdhep'],
39 outputs=[
'tritrig_mom_rot.slcio'],
43job.add([mg, unzip, cnv, mom, rot, slic])
Run the MadGraph 5 event generator.
Target processing and conversion of LHE files to StdHep using EGS5.