User Tools

Site Tools


community:hepsim:pgun

<< back to HepSim manual

Creating single particle samples

Single particle samples are created using the ProMC Java package. Here is an example how to make single particle sample using Jython particle_gun.py.

You can use Jas4pp to run this script:

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

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 Dmelt example page. You will need to run either DMelt or Jas4pp to create single-particle sample using the Jython script.

Sergei Chekanov 2016/08/02 14:04

community/hepsim/pgun.txt · Last modified: 2016/11/15 17:48 by asc