HPS-MC
wab_gen_to_slic_job.py
Go to the documentation of this file.
1 """!
2 wab from generation to slic
3 """
4 from hpsmc.generators import MG4, StdHepConverter
5 from hpsmc.tools import BeamCoords, AddMother, SLIC
6 
7 job.description = 'wab from generation to slic'
8 
9 
10 inputs = list(job.input_files.values())
11 
12 if 'nevents' in job.params:
13  nevents = job.params['nevents']
14 else:
15  nevents = 10000
16 
17 
18 mg = MG4(name='wab', event_types=['unweighted'])
19 
20 
22 
23 
24 mom = AddMother()
25 
26 
27 rot = BeamCoords()
28 
29 
30 slic = SLIC(nevents=nevents + 1)
31 
32 
33 job.add([mg, cnv, mom, rot, slic])
Run the MadGraph 4 event generator.
Definition: generators.py:329
Convert LHE files to StdHep using EGS5.
Definition: generators.py:135
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