HPS-MC
sim_to_ana_job.py
Go to the documentation of this file.
1 """!
2 @file sim_to_ana_job.py
3 
4 Run hps-sim with preexisting tritrig stdhep files.
5 """
6 import os
7 from hpsmc.tools import Sim, JobManager, FilterBunches, HPSTR
8 
9 job.description = 'Run hps-sim with preexisting tritrig stdhep files'
10 
11 
12 sim = Sim()
13 
14 
15 filter_bunches = FilterBunches()
16 
17 
18 readout = JobManager(steering='readout')
19 
20 
21 recon = JobManager(steering='recon')
22 
23 
24 root_cnv = HPSTR(cfg='recon')
25 
26 
27 ana = HPSTR(cfg='ana')
28 
29 
30 base_name, ext = os.path.splitext(list(job.input_files.values())[0])
31 job.ptag('recon', '{}_filt_readout_recon.slcio'.format(base_name))
32 job.ptag('ana', '{}_filt_readout_recon_ana.root'.format(base_name))
33 
34 
35 job.add([sim, filter_bunches, readout, recon, root_cnv, ana])
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