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
hepsim:dev_singularity [2019/10/30 20:40]
hepsim17 [HepSim Docker image]
hepsim:dev_singularity [2019/10/30 20:59] (current)
hepsim17 [Setting up Jas4pp]
Line 24: Line 24:
 </code> </code>
  
-<note important>This docker image may have problems in accessing XML files, therefore, it  may not work in all situations</note>+<note important>We recommend the "singularity" instead. This docker image may have problems in accessing XML files</note>
  
 The HepSim image is based on a minimalistic version  CentOS7 x64 with the basic C++ development environments. It includes: The HepSim image is based on a minimalistic version  CentOS7 x64 with the basic C++ development environments. It includes:
Line 59: Line 59:
  
 Section [[hepsim:dev_fpadsim]] explains how to use this image to create full simulations using detector tags. Section [[hepsim:dev_fpadsim]] explains how to use this image to create full simulations using detector tags.
 +
 +
 +====== Setting up Jas4pp ======
 +
 +One can setup a recent Jas4pp (with hs-tools) as
 +<code bash>
 +singularity exec centos7hepsim.img  bash -l
 +source /opt/jas4pp.sh
 +</code>
 +
 +and then type "jaspp". Please forward X11 to see the GUI.
 +All other HepSim commands, such as "hs-ls", "hs-run" should be available.
 +
 +
  
  
 ====== HepSim tests ====== ====== HepSim tests ======
 +
 +To setup simulation and reconstruction software from HepSim, you can use this commend:
 +
 +<code bash>
 +singularity exec centos7hepsim.img  bash -l
 +source /opt/hepsim.sh
 +</code>
 +
  
 The docker container has a few basic tests that checks that everything works as expected. The docker container has a few basic tests that checks that everything works as expected.
Line 92: Line 114:
 This code compiles a Pythia8 program with ProMC output. This code compiles a Pythia8 program with ProMC output.
 You will see several ProMC files inside the directory "out". The input for Pythia is given by the control card inside the directory "cards". To recompile the Pythia8 program, type "make". You will see several ProMC files inside the directory "out". The input for Pythia is given by the control card inside the directory "cards". To recompile the Pythia8 program, type "make".
 +
  
 ===== Fast simulation ===== ===== Fast simulation =====
Line 116: Line 139:
 ./TEST.sh ./TEST.sh
 </code> </code>
 +
 +This example uses the input file "pgun_pi10gev_001.promc" with 10 GeV single pions, converts to LCIO, and than creates fully simulated and reconstructed files inside "output".
 +The final file is output/pgun_pi10gev_001_pandora.slcio with all tracking and PFO information. The detector itself is located inside "sidcc3/compact.xml".
 +
 +If you make modifications inside "sidcc3/compact.xml", you will need to convert this file to other formats to run "TEST.sh".
 +To do this, run
 +
 +<code bash>
 +cd tests/rfull102
 +./A_RUN_GEOMETRY
 +</code>
 +
  
 More about the full simulations can be found in Sect. [[hepsim:dev_fpadsim|Full simulations with FPadSim]]. Note that, in addition to the singularity container, you need a "tag" file with the detector description. More about the full simulations can be found in Sect. [[hepsim:dev_fpadsim|Full simulations with FPadSim]]. Note that, in addition to the singularity container, you need a "tag" file with the detector description.
Line 178: Line 213:
  
  
-David Blyth created a much lighter version of FPadSim image for EIC work described in Sec. [[fcs:eic:singularity|Singularity image for EIC]]. It is based on Arch Linux, and does not contain the usual Linux environment included inside centos7hepsim image.+David Blyth created a lighter version of FPadSim image for EIC work described in Sec. [[fcs:eic:singularity|Singularity image for EIC]]. It is based on Arch Linux, and does not contain the usual Linux environment included inside centos7hepsim image.
  
  --- //[[[email protected]|Sergei Chekanov]] 2017/09/24 17:49//  --- //[[[email protected]|Sergei Chekanov]] 2017/09/24 17:49//