2@file beam_prep_and_slic_job.py
4Transform events to beam coodinates, randomly sample them and simulating detector response using slic.
6from hpsmc.tools import BeamCoords, RandomSample, SLIC
8if 'nevents' in job.params:
9 nevents = job.params[
'nevents']
13if 'event_interval' in job.params:
14 event_interval = job.params[
'event_interval']
19inputs = list(job.input_files.values())
28slic =
SLIC(nevents=nevents * event_interval, ignore_job_params=[
'nevents'])
31job.add([rot, sample, slic])