2 @file readout_recon_job.py
4 Simulate pile-up, run readout, hps-java recon, and analysis.
8 from hpsmc.tools import JobManager, FilterBunches, LCIOCount, HPSTR
11 logger = logging.getLogger(
'hpsmc.job')
13 job.description =
'Simulate pile-up, run readout, hps-java recon, and analysis'
15 if 'filter_bunches' in job.params:
16 filter_bunches = job.params[
'filter_bunches']
18 filter_bunches =
False
21 input_files = list(job.input_files.values())
22 if len(input_files) > 1:
23 raise Exception(
'This script accepts only one input file.')
24 output_base = os.path.splitext(os.path.basename(input_files[0]))[0]
25 job.ptag(
'filt',
'%s_filt.slcio' % output_base)
26 job.ptag(
'readout',
'%s_filt_readout.slcio' % output_base)
27 job.ptag(
'lcio_recon',
'%s_filt_readout_recon.slcio' % output_base)
28 job.ptag(
'hpstr_recon',
'%s_filt_readout_recon.root' % output_base)
29 job.ptag(
'hpstr_ana',
'%s_filt_readout_recon_ana.root' % output_base)
52 job.add([readout, count_readout, reco, count_reco, cnv])