hepsim:dev_truth
Differences
This shows you the differences between two versions of the page.
— | hepsim:dev_truth [2024/07/01 21:25] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | [[: | ||
+ | |||
+ | ====== Creating EVGEN ====== | ||
+ | |||
+ | HepSim is optimized to keep truth-level in the " | ||
+ | |||
+ | |||
+ | |||
+ | ====== Using Pythia8====== | ||
+ | |||
+ | Basic examples how to make ProMC and ProIO files from Pythia8 are given in | ||
+ | [[https:// | ||
+ | |||
+ | |||
+ | ====== Singularity containers====== | ||
+ | |||
+ | Generally, you do not need to install Pythia8 to create ProMC files. You can run Pythia8 using the HepSim singularity container. This topic is described in [[hepsim: | ||
+ | |||
+ | |||
+ | ProMC files can be created directly by Pythia8. Look at the example " | ||
+ | please | ||
+ | of Pythia8. If the environmental variable " | ||
+ | |||
+ | |||
+ | ====== Using converters ====== | ||
+ | You can convert files in the format " | ||
+ | |||
+ | * hepmc2promc | ||
+ | * lhe2promc | ||
+ | * stdhep2promc | ||
+ | * txt2promc | ||
+ | |||
+ | Look at the [[https:// | ||
+ | |||
+ | One useful example showing how to read a text file with Monte Carlo events and fill correct ProMC file is given by | ||
+ | the example " | ||
+ | |||
+ | ====== Using Madgraph5====== | ||
+ | |||
+ | To run MG5 with ProMC, please | ||
+ | Then download MG5 package with preconfigured ProMC converter from [[https:// | ||
+ | |||
+ | <code bash> | ||
+ | wget https:// | ||
+ | tar -zvxf package_mg14tev.tgz | ||
+ | </ | ||
+ | |||
+ | Now check that ProMC is correctly installed. You should be able to compile " | ||
+ | |||
+ | <code bash> | ||
+ | cd package/ | ||
+ | make | ||
+ | </ | ||
+ | If successful, then you should see the binary file " | ||
+ | |||
+ | Now let compile and run " | ||
+ | jobs for 14 TeV pp collision. We assume 64bit Scientific Linux 6.5 computer. Setup gcc47. In the case of ATLAS setup, use: | ||
+ | |||
+ | <code bash> | ||
+ | source setup_gcc47.sh | ||
+ | </ | ||
+ | |||
+ | To create multiple number of files in the ProMC format for " | ||
+ | |||
+ | <code bash> | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | It does the following: It runs the script " | ||
+ | and runs the promc converter. | ||
+ | The number of output files are given inside the script A_RUN_ttbar_jet. You should reduce this number if you want to stop earlier. | ||
+ | |||
+ | All MG5 settings for this particular run are in the directory " | ||
+ | |||
+ | |||
+ | To check the output ProMC file, look at the browser: | ||
+ | |||
+ | <code bash> | ||
+ | wget http:// | ||
+ | java -jar browser_promc.jar out/ | ||
+ | </ | ||
+ | where " | ||
+ | |||
+ | You can host these files on your data storage, or send an email to " | ||
+ | |||
+ | ====== Single-particle gun ====== | ||
+ | |||
+ | ProMC files with single particles can be created using the ProMC. Download the recent ProMC package and | ||
+ | look at the directory: | ||
+ | |||
+ | <code bash> | ||
+ | wget http:// | ||
+ | tar -zvxf ProMC.tgz | ||
+ | cd examples/ | ||
+ | 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 " | ||
+ | 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. | ||
+ | |||
+ | |||
+ | ====== Pileups mixing | ||
+ | |||
+ | One can mix events from a signal ProMC file with | ||
+ | inelastic (minbias) events using a " | ||
+ | The next example assumes that either the hs-tools package or Jas4pp is installed. | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | hs-pileup pN signal.promc minbias.promc output.promc | ||
+ | </ | ||
+ | Here " | ||
+ | If " | ||
+ | Use large number of events in minbias.promc to minimise reuse of the same events from the minbias.promc. | ||
+ | The barcode of particles inside output.promc indicates the event origin. | ||
+ | |||
+ | |||
+ | Here is an example to create events with pileup for the paper [[http:// | ||
+ | We mix h-> HH signal file with MinBias Pythia8 (A2 tune) sample using < | ||
+ | <code bash> | ||
+ | wget http:// | ||
+ | source hs-toolkit/ | ||
+ | wget http:// | ||
+ | wget http:// | ||
+ | hs-pileup p200 tev100_s0higgshiggs_alltau_0001.promc tev100_pythia8_MinBias_l3__A2_001.promc output.promc | ||
+ | </ | ||
+ | Look at the " | ||
+ | |||
+ | //Note:// pileup mixer is implemented in Java, therefore it uses 64bit zip. For C++ programs, please use ProMCBook(" | ||
+ | files (notice " | ||
+ | |||
+ | <code cpp> | ||
+ | inputFile = new ProMCBook(argv[i], | ||
+ | </ | ||
+ | in readers/ | ||
+ | <code cpp> | ||
+ | inputFile = new ProMCBook(argv[i], | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | --- // |