2 Simulation of beam, beam signals in detector (using SLIC), and readout.
3 The simulation is followed by reconstruction of the events.
6 from hpsmc.tools import BeamCoords, RandomSample, SLIC, ExtractEventsWithHitAtHodoEcal, JobManager
8 job.description =
'beam from generation to slic'
11 inputs = list(job.input_files.values())
13 if 'nevents' in job.params:
14 nevents = job.params[
'nevents']
19 egs5 =
EGS5(name=
"beam_v7_%s" % job.params[
'run_params'])
28 slic =
SLIC(nevents=nevents + 1)
40 job.add([egs5, rot, sample, slic, space_events, readout, recon])
Run the EGS5 event generator to produce a StdHep file.