HPS-MC
idm_job.py
Go to the documentation of this file.
1 """!
2 @file idm_job.py
3 
4 Simulation of iDM, detector signals, and readout, followed by reconstruction.
5 """
6 from hpsmc.generators import MG5
7 from hpsmc.tools import SLIC, JobManager, FilterBunches, BeamCoords, Unzip, DisplaceUni
8 
9 job.description = 'iDM generation to recon'
10 
11 
12 mg = MG5(name='idm',
13  run_card='run_card.dat',
14  param_card='param_card.dat',
15  event_types=['unweighted'])
16 
17 
18 unzip = Unzip(inputs=['idm_unweighted_events.lhe.gz'], outputs=['idm.lhe'])
19 
20 
21 cnv = DisplaceUni(inputs=['idm.lhe'], outputs=['idm.stdhep'])
22 
23 
24 rot = BeamCoords()
25 
26 
27 slic = SLIC()
28 
29 
30 filter_bunches = FilterBunches()
31 
32 
33 readout = JobManager(steering='readout')
34 
35 
36 recon = JobManager(steering='recon')
37 
38 
39 job.add([mg, unzip, cnv, rot, slic, filter_bunches, readout, recon])
Run the MadGraph 5 event generator.
Definition: generators.py:399
Transform StdHep events into beam coordinates.
Definition: tools.py:516
Convert LHE files to StdHep, displacing the time by given ctau.
Definition: tools.py:695
Space MC events and apply energy filters to process before readout.
Definition: tools.py:1048
Run the hps-java JobManager class.
Definition: tools.py:160
Run the SLIC Geant4 simulation.
Definition: tools.py:15
Unzip the input files to outputs.
Definition: tools.py:1218
Tools that can be used in HPSMC jobs.
Definition: tools.py:1