HPS-MC
tritrig_sim_full_chain_job.py
Go to the documentation of this file.
1 """!
2 Tritrig signal generation to recon using hps-sim with no beam backgrounds.
3 """
4 from hpsmc.generators import MG5, StdHepConverter
5 from hpsmc.tools import Sim, JobManager, FilterBunches, BeamCoords, AddMother, HPSTR
6 
7 job.description = 'tritrig signal generation to recon using hps-sim with no beam backgrounds'
8 
9 
10 mg = MG5(name='tritrig')
11 
12 
13 stdhep_cnv = StdHepConverter()
14 
15 
16 mom = AddMother()
17 
18 
19 rot = BeamCoords()
20 
21 
22 sim = Sim()
23 
24 
25 filter_bunches = FilterBunches()
26 
27 
28 readout = JobManager(steering='readout')
29 
30 
31 recon = JobManager(steering='recon')
32 
33 
34 root_cnv = HPSTR(cfg='recon')
35 
36 
37 ana = HPSTR(cfg='ana')
38 
39 
40 job.ptag('gen', 'tritrig_unweighted_events_mom_rot.stdhep')
41 job.ptag('sim', 'tritrig_unweighted_events_mom_rot.slcio')
42 job.ptag('readout', 'tritrig_unweighted_events_mom_rot_filt_readout.slcio')
43 job.ptag('recon', 'tritrig_unweighted_events_mom_rot_filt_readout_recon.slcio')
44 job.ptag('ana', 'tritrig_unweighted_events_mom_rot_filt_readout_recon_ana.root')
45 
46 
47 job.add([mg, stdhep_cnv, mom, rot, sim, filter_bunches, readout, recon, root_cnv, ana])
Run the MadGraph 5 event generator.
Definition: generators.py:399
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
Space MC events and apply energy filters to process before readout.
Definition: tools.py:1048
Run the hpstr analysis tool.
Definition: tools.py:344
Run the hps-java JobManager class.
Definition: tools.py:160
Tools that can be used in HPSMC jobs.
Definition: tools.py:1