User Tools

Site Tools


community:hepsim:pgun

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
community:hepsim:pgun [2016/11/03 13:43]
asc [Creating single particle samples]
community:hepsim:pgun [2016/11/15 17:48] (current)
asc
Line 1: Line 1:
  
-[[community:hepsim|<< back]]+[[community:hepsim|<< back to HepSim manual]]
  
 ====== Creating single particle samples ====== ====== Creating single particle samples ======
Line 6: Line 6:
 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 {{:community:hepsim:particle_gun.py|particle_gun.py}}.
-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 https://atlaswww.hep.anl.gov/asc/wikidoc/lib/exe/fetch.php?media=community:hepsim:particle_gun.py -O particle_gun.py+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>
 +The last  command creates 1000 single-pion events with random Eta, Phi and momenta. 
 You can modify this script to change pT, Eta etc. You can modify this script to change pT, Eta etc.
  
community/hepsim/pgun.1478180614.txt.gz · Last modified: 2016/11/03 13:43 by asc