User Tools

Site Tools


community:hepsim:dev_truth

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:dev_truth [2016/06/13 12:50]
asc
community:hepsim:dev_truth [2016/06/13 13:52] (current)
asc [Using converters]
Line 5: Line 5:
 HepSim is optimized to keep truth-level in the "archive" format called [[asc:promc|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. HepSim is optimized to keep truth-level in the "archive" format called [[asc:promc|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 +====== Using Pythia8====== 
 + 
 +ProMC files can be created directly by Pythia8. Look at the example "examples/main46.ccmain46.cc" inside the Pythi8 distribution. To compile it, 
 +please  install [[https://atlaswww.hep.anl.gov/asc/wikidoc/doku.php?id=asc:promc:installation|ProMC package]] first, before running configuration script 
 +of Pythia8. If the environmental variable "PROMC" was set, then you can compile "main46.cc" example. 
 + 
 + 
 +====== Using converters ====== 
 +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 the directory $PROMC/examples). The converters are: 
 + 
 +  * hepmc2promc  
   * lhe2promc    * lhe2promc 
   * stdhep2promc   * stdhep2promc
Line 16: Line 26:
  
 To run MG5 with ProMC, please  install [[https://atlaswww.hep.anl.gov/asc/wikidoc/doku.php?id=asc:promc:installation|ProMC package]] first. To run MG5 with ProMC, please  install [[https://atlaswww.hep.anl.gov/asc/wikidoc/doku.php?id=asc:promc:installation|ProMC package]] first.
-The download MG5 with preconfigured ProMC output from  [[https://atlaswww.hep.anl.gov/hepsim/soft/package_mg14tev.tgz|package_mg14tev.tgz]].+Then download MG5 package with preconfigured ProMC converter from  [[https://atlaswww.hep.anl.gov/hepsim/soft/package_mg14tev.tgz|package_mg14tev.tgz]].
  
 <code bash> <code bash>
Line 23: Line 33:
 </code> </code>
  
 +Now check that ProMC is correctly installed. You should be able to compile "stdhep2promc" converter.
 +
 +<code bash>
 +cd package/stdhep2promc
 +make
 +</code>
 +If successful, then you should see the binary file "stdhep2promc".
 +
 +Now let compile and run "MG5". Go to the directory "MG5_aMC_v2_3_2_2". This directory has the standard MG5 package, a few useful bash scripts, and a few preconfigured 
 +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
 +</code>
 +
 +To create multiple number of files in the ProMC format for "ttbar+jet", run this script:
 +
 +<code bash>
 +./A_RUN_ttbar_jet
 +</code>
 +
 +It does the following: It runs the script "RUN_ttbar_jet_14tev" which creates promc files inside "out" directory. It also reset the seed for each jobs,
 +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 "run_ttbar_jet_14tev". This is the standard MG5 directory. For example, the MG5 settings are given for this script are given in the directory "run_ttbar_jet_14tev/Cards"
 +
 +
 +To check the output ProMC file, look at the browser:
 +
 +<code bash>
 +wget  http://atlaswww.hep.anl.gov/asc/promc/download/browser_promc.jar  # get GUI browser
 +java -jar browser_promc.jar out/file.promc 
 +</code>
 +where "file" is the name of the file being created. Typically, it takes 3h to create one file with 10,000 events.
  
 +You can host these files on your data storage, or send an email to "[email protected]" to relocated them to the OSG-grid file storage.
 + 
 ====== Single-particle gun ====== ====== Single-particle gun ======
  
community/hepsim/dev_truth.1465822248.txt.gz · Last modified: 2016/06/13 12:50 by asc