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