Differences

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

Link to this comparison view

Next revision
Previous revision
hepsim:pgun [2017/02/06 21:17]
127.0.0.1 external edit
hepsim:pgun [2020/06/19 17:25] (current)
hepsim17
Line 1: Line 1:
-[[hepsim|<< back to HepSim manual]] 
  
-====== Creating single particle samples ======+{{indexmenu_n>13}}
  
-Single particle samples are created using the ProMC Java package. +[[:|<< back to HepSim manual]]
-Here is an example how to make single particle sample using Jython {{:community:hepsim:particle_gun.py|particle_gun.py}}.+
  
 +====== Creating single particles ======
 +
 +Single particle samples are created using the ProMC Java package.
 +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 15: 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.