User Tools

Site Tools


hepsim:pgun

Differences

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


hepsim:pgun [2024/07/01 21:25] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +
 +{{indexmenu_n>13}}
 +
 +[[:|<< back to HepSim manual]]
 +
 +====== 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:
 +
 +<code bash>
 +fpad particle_gun.py # run this script using Jas4pp
 +</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.
 +
 +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.
 +
 +
 +
 + --- //[[[email protected]|Sergei Chekanov]] 2016/08/02 14:04//
  
hepsim/pgun.txt · Last modified: 2024/07/01 21:25 by 127.0.0.1