2 @file signal_pulser_overlay_to_recon_job.py
4 No idea what this is supposed to do.
7 from hpsmc.tools import ExtractEventsWithHitAtHodoEcal, EvioToLcio, JobManager, FilterBunches, LCIOCount
9 job.description =
'signal-pulse from overlay to recon'
12 inputs = list(job.input_files.values())
22 signal_file_name.append(input)
24 pulser_file_name.append(input)
27 if len(signal_file_name) == 0:
28 raise Exception(
"Missing required input file(s) for signal")
29 if len(pulser_file_name) == 0:
30 raise Exception(
"Missing required input file(s) for pulser data")
33 signal_name =
'signal'
36 pulser_name =
'pulser'
39 signal_pulser_name =
'signal_pulser'
43 outputs=[
'%s_filt.slcio' % signal_name],
44 event_interval=0, num_hodo_hits=1)
47 count_filter =
LCIOCount(inputs=filter_events.output_files())
50 evio_to_lcio =
EvioToLcio(steering=
'evio_to_lcio', inputs=pulser_file_name, output=[
'%s.slcio' % pulser_name])
53 count_pulser =
LCIOCount(inputs=evio_to_lcio.output_files())
57 inputs=filter_events.output_files(),
58 overlay_file=evio_to_lcio.output_files()[0],
59 outputs=[
'%s.slcio' % signal_pulser_name])
64 outputs=[
'%s_spaced.slcio' % signal_pulser_name],
65 filter_event_interval=250)
68 count_space_overlay =
LCIOCount(inputs=space_overlay.output_files())
72 inputs=space_overlay.output_files(),
73 outputs=[
'%s_readout.slcio' % signal_pulser_name])
76 count_readout =
LCIOCount(inputs=readout.output_files())
80 inputs=readout.output_files(),
81 outputs=[
'%s_recon.slcio' % signal_pulser_name])
84 count_recon =
LCIOCount(inputs=recon.output_files())
87 job.add([filter_events, count_filter, evio_to_lcio, count_pulser, overlay, space_overlay,
88 count_space_overlay, readout, count_readout, recon, count_recon])