2 @file tritrig_prep_and_slic_job.py
4 Add mother particle information to tritrig events and rotate them into beam coordinates before simulating detector response using slic.
7 from hpsmc.tools import Unzip, AddMotherFullTruth, BeamCoords, SLIC
9 job.description =
'Convert tritrig events to StdHep and simulate detector response'
12 inputs = list(job.input_files.values())
15 unzip =
Unzip(inputs=inputs, outputs=[
"tritrig.lhe"])
21 mom =
AddMotherFullTruth(inputs=[cnv.output_files()[0], unzip.output_files()[0]], outputs=[
'tritrig_mom.stdhep'])
27 slic =
SLIC(inputs=rot.output_files())
30 job.add([unzip, cnv, mom, rot, slic])
Convert LHE files to StdHep using EGS5.