Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hepsim:pgun [2017/02/06 23:05]
hepsim17
hepsim:pgun [2020/06/19 17:25] (current)
hepsim17
Line 4: Line 4:
 [[:|<< back to HepSim manual]] [[:|<< back to HepSim manual]]
  
-====== Creating single particle samples ======+====== Creating single particles ======
  
 Single particle samples are created using the ProMC Java package. Single particle samples are created using the ProMC Java package.
-Here is an example how to make single particle sample using Jython {{:community:hepsim:particle_gun.py|particle_gun.py}}. +Here is an example how to make single particle sample using Jython {{:hepsim:particle_gun.py|particle_gun.py}}.
 You can use [[https://atlaswww.hep.anl.gov/asc/jas4pp/|Jas4pp]] to run this script: You can use [[https://atlaswww.hep.anl.gov/asc/jas4pp/|Jas4pp]] to run this script:
  
 <code bash> <code bash>
-wget --no-check-certificate https://atlaswww.hep.anl.gov/asc/wikidoc/lib/exe/fetch.php?media=community:hepsim:particle_gun.py -O particle_gun.py 
 fpad particle_gun.py # run this script using Jas4pp fpad particle_gun.py # run this script using Jas4pp
 </code> </code>
Line 18: Line 16:
 You can modify this script to change pT, Eta etc. You can modify this script to change pT, Eta etc.
  
-An example implemented in Jython is also given in [[http://jwork.org/dmelt/code/index.php?keyword=particle_gun|Dmelt example]] page. You will need to run either DMelt or Jas4pp to create single-particle sample using the Jython script.+An example implemented in Jython is also given in [[https://datamelt.org/code/index.php?keyword=particle_gun|Datamelt example]] page. You will need to run either DataMelt or Jas4pp to create single-particle sample using the Jython script.