HPS-MC
 
Loading...
Searching...
No Matches
ap_gen_to_slic_mg4_job.py File Reference

Go to the source code of this file.

Namespaces

namespace  ap_gen_to_slic_mg4_job
 

Variables

 description
 
 inputs = list(job.input_files.values())
 Get job input file targets.
 
 nevents = job.params['nevents']
 
 mg = MG4(name='ap', event_types=['unweighted'])
 Generate rad in MG4.
 
 ap_decay_dist = job.params['ap_decay_dist']
 
 unzip = Unzip(inputs=["ap_unweighted_events.lhe.gz"], outputs=["ap_unweighted_events.lhe"])
 Unzip the LHE events to a local file.
 
 cnv = StdHepConverter(name="lhe_uniform", inputs=["ap_unweighted_events.lhe"])
 Convert LHE output to stdhep for uniform signal.
 
 mom = AddMotherFullTruth(inputs=["ap_unweighted_events.stdhep", unzip.output_files()[0]], outputs=["ap_mom.stdhep"])
 Add mother particle to tag trident particles.
 
 rot = BeamCoords(inputs=mom.output_files(), outputs=["ap_rot.stdhep"])
 Rotate events into beam coords.
 
 slic = SLIC(nevents=nevents + 1, inputs=rot.output_files(), outputs=["ap.slcio"])
 Simulate signal events.