HPS-MC
moller_gen_job.py
Go to the documentation of this file.
1 """!
2 @file moller_gen_job.py
3 
4 Simulation of Moller scattering events.
5 """
6 from hpsmc.generators import EGS5
7 from hpsmc.tools import BeamCoords
8 
9 job.description = 'Moller generation'
10 
11 
12 inputs = list(job.input_files.values())
13 
14 if 'nevents' in job.params:
15  nevents = job.params['nevents']
16 else:
17  nevents = 250000
18 
19 
20 egs5 = EGS5(name="moller_v3")
21 
22 
23 rot = BeamCoords()
24 
25 
26 job.add([egs5, rot])
Run the EGS5 event generator to produce a StdHep file.
Definition: generators.py:28
Transform StdHep events into beam coordinates.
Definition: tools.py:516
Tools that can be used in HPSMC jobs.
Definition: tools.py:1