HPS-MC
tritrig_slic_full_chain_job.py
Go to the documentation of this file.
1 """!
2 @file tritrig_slic_full_chain_job.py
3 
4 Tritrig signal generation using SLIC to recon using hps-sim with no beam background.
5 """
6 from hpsmc.generators import MG5, StdHepConverter
7 from hpsmc.tools import SLIC, JobManager, FilterBunches, BeamCoords, AddMother, HPSTR
8 
9 job.description = 'tritrig signal generation to recon using hps-sim with no beam backgrounds'
10 
11 
12 mg = MG5(name='tritrig')
13 
14 
15 stdhep_cnv = StdHepConverter()
16 
17 
18 mom = AddMother()
19 
20 
21 rot = BeamCoords()
22 
23 
24 sim = SLIC()
25 
26 
27 filter_bunches = FilterBunches()
28 
29 
30 readout = JobManager(steering='readout')
31 
32 
33 recon = JobManager(steering='recon')
34 
35 
36 root_cnv = HPSTR(cfg='recon')
37 
38 
39 ana = HPSTR(cfg='ana')
40 
41 
42 job.ptag('gen', 'tritrig_unweighted_events_mom_rot.stdhep')
43 job.ptag('sim', 'tritrig_unweighted_events_mom_rot.slcio')
44 job.ptag('readout', 'tritrig_unweighted_events_mom_rot_filt_readout.slcio')
45 job.ptag('recon', 'tritrig_unweighted_events_mom_rot_filt_readout_recon.slcio')
46 job.ptag('ana', 'tritrig_unweighted_events_mom_rot_filt_readout_recon_ana.root')
47 
48 
49 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
Run the SLIC Geant4 simulation.
Definition: tools.py:15
Tools that can be used in HPSMC jobs.
Definition: tools.py:1