HPS-MC
 
Loading...
Searching...
No Matches
wab_gen_mg4_job.py
Go to the documentation of this file.
1"""!
2@file wab_gen_sample_job.py
3Python script for generating sampled WAB events in StdHep format from an input LHE file.
4The output events can be used as input to 'merge_job.py' with a beam StdHep file to for creating a
5wab-beam sample file.
6"""
7
8from hpsmc.generators import MG4
9from hpsmc.tools import BeamCoords
10from hpsmc.generators import StdHepConverter
11
12job.description = 'WAB gen and sampling'
13
14
15mg = MG4(name="wab")
16
17
18cnv = StdHepConverter(inputs=mg.output_files(), outputs=['wab_events.stdhep'])
19
20
22
23
24job.add([mg, cnv, rot])
Run the MadGraph 4 event generator.
Target processing and conversion of LHE files to StdHep using EGS5.
Transform StdHep events into beam coordinates.
Definition tools.py:516
Tools that can be used in HPSMC jobs.
Definition tools.py:1