HPS-MC
 
Loading...
Searching...
No Matches
wab_gen_to_slic_job.py
Go to the documentation of this file.
1"""!
2wab from generation to slic
3"""
4from hpsmc.generators import MG5, StdHepConverter
5from hpsmc.tools import BeamCoords, AddMother, SLIC
6
7job.description = 'wab from generation to slic'
8
9
10inputs = list(job.input_files.values())
11
12if 'nevents' in job.params:
13 nevents = job.params['nevents']
14else:
15 nevents = 10000
16
17
18mg = MG5(name='WAB', event_types=['unweighted'])
19
20
22
23
24mom = AddMother()
25
26
28
29
30slic = SLIC(nevents=nevents + 1)
31
32
33job.add([mg, cnv, mom, rot, slic])
Run the MadGraph 5 event generator.
Target processing and conversion of LHE files to StdHep using EGS5.
Add mother particles for physics samples.
Definition tools.py:730
Transform StdHep events into beam coordinates.
Definition tools.py:516
Run the SLIC Geant4 simulation.
Definition tools.py:15
Tools that can be used in HPSMC jobs.
Definition tools.py:1