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

Job script to convert A-prime events to StdHep, apply transformations, and resulting simulate signal events using SLIC. More...

Go to the source code of this file.

Namespaces

namespace  ap_slic_job
 

Variables

 logger = logging.getLogger('hpsmc.job')
 Initialize logger with default level.
 
 description
 
 inputs = list(job.input_files.values())
 Get job input file targets.
 
 nevents = job.params['nevents']
 
 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_displace.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.
 

Detailed Description

Job script to convert A-prime events to StdHep, apply transformations, and resulting simulate signal events using SLIC.

Definition in file ap_slic_job.py.