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