User Tools

Site Tools


community:hepsim:dev_truth

This is an old revision of the document!


<< back to HepSim manual

Creating truth-level samples

HepSim is optimized to keep truth-level in the “archive” format called ProMC. It allows to keep data in a compact form optimized for data streaming over the network, together with logfiles which will help to identify the MC settings.

ProMC files can be created directly by Pythi8 (the example “main46.cc” in the Pythi8). Or, you can convert files in the format “HEPMC”, “LHE”, “STDHEP” to ProMC as shown in the “example” directory of the installed ProMC package (look at $PROMC/examples). The converters are:

  • hepmc2promc
  • lhe2promc
  • stdhep2promc

Look at the ProMC manual for more examples.

Single-particle gun

ProMC files with single particles can be created using the ProMC. Download the recent ProMC package and look at the directory:

wget http://atlaswww.hep.anl.gov/asc/promc/download/current.php -O ProMC.tgz
tar -zvxf ProMC.tgz
cd examples/particle_gun
source setup.sh
javac promc_gun.java
java promc_gun pions.promc 100 211 1000 # E=0-100 GeV, PID=211, events=1000

This creates file “pions.promc” with 2 particles per event, with the maximum energy of 100 GeV (randomly distributed from 0 to 100). The particles are pions (pi+, pid=211). The total number of events 1000. The phi and theta distributions are flat After file creation, look at the events using the file browser. You can also modify the java code to change the single-particle events.

Sergei Chekanov 2016/04/27 09:24

community/hepsim/dev_truth.1461857269.txt.gz · Last modified: 2016/04/28 15:27 by asc