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