HPS-MC
slic_to_ana_job.py
Go to the documentation of this file.
1 """!
2 @file slic_to_ana_job.py
3 
4 Run slic to analysis on stdhep file.
5 """
6 import os
7 from hpsmc.tools import SLIC, JobManager, FilterBunches, HPSTR
8 
9 job.description = 'Run slic with preexisting tritrig stdhep files'
10 
11 
12 sim = SLIC()
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
Run the SLIC Geant4 simulation.
Definition: tools.py:15
Tools that can be used in HPSMC jobs.
Definition: tools.py:1