HPS-MC
 
Loading...
Searching...
No Matches
tritrig_gen_to_beam_coords_job.py
Go to the documentation of this file.
1"""!
2@file tritrig_gen_to_beam_coords_job.py
3
4Simulate tritrig events, add mother particle information and rotate events into beam coordinates.
5"""
6from hpsmc.generators import MG5, StdHepConverter
7from hpsmc.tools import Unzip, AddMotherFullTruth, BeamCoords
8
9job.description = 'Generate tritrig events using MadGraph5 and convert to StdHep using EGS5'
10
11
12mg = MG5(name='tritrig')
13
14
15unzip = Unzip(inputs=mg.output_files())
16
17
18cnv = StdHepConverter(inputs=mg.output_files(), outputs=['tritrig.stdhep'])
19
20
21mom = AddMotherFullTruth(inputs=[cnv.output_files()[0], unzip.output_files()[0]], outputs=['tritrig_mom.stdhep'])
22
23
25
26
27job.ptag('gen', 'tritrig_mom_rot.stdhep')
28
29
30job.add([mg, unzip, cnv, mom, rot])
Run the MadGraph 5 event generator.
Target processing and conversion of LHE files to StdHep using EGS5.
Add full truth mother particles for physics samples.
Definition tools.py:742
Transform StdHep events into beam coordinates.
Definition tools.py:516
Unzip the input files to outputs.
Definition tools.py:1218
Tools that can be used in HPSMC jobs.
Definition tools.py:1