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, SLIC
9 job.description =
'Generate tritrig events and simulate passage through detector'
11 if 'nevents' in job.params:
12 nevents = job.params[
'nevents']
17 mg =
MG5(name=
'tritrig')
20 unzip =
Unzip(inputs=mg.output_files())
24 outputs=[
'tritrig.stdhep'])
28 outputs=[
'tritrig_mom.stdhep'])
32 outputs=[
'tritrig_mom_rot.stdhep'])
35 job.ptag(
'gen',
'tritrig_mom_rot.stdhep')
38 slic =
SLIC(inputs=[
'tritrig_mom_rot.stdhep'],
39 outputs=[
'tritrig_mom_rot.slcio'],
43 job.add([mg, unzip, cnv, mom, rot, slic])
Run the MadGraph 5 event generator.
Target processing and conversion of LHE files to StdHep using EGS5.