User Tools

Site Tools


community:refhepsim

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
Next revision Both sides next revision
community:refhepsim [2016/03/29 14:58]
asc [Physics and detector studies]
community:refhepsim [2016/03/31 00:42]
asc [Method III. Running in a GUI mode]
Line 25: Line 25:
   * [[vlhc:hcal|HCAL studies]] explains how to analyse ROOT data after fast detector simulations used for FCC studies   * [[vlhc:hcal|HCAL studies]] explains how to analyse ROOT data after fast detector simulations used for FCC studies
  
-Currently these studies are based on  [[https://atlaswww.hep.anl.gov/asc/jas4pp|Jas4pp data-analysis environment]]. +Currently these studies are based on  [[http://atlaswww.hep.anl.gov/asc/jas4pp|Jas4pp data-analysis environment]]. 
-Geometry files for full detector simulations can be found in the  [[https://atlaswww.hep.anl.gov/hepsim/soft/detectors/|detector repository]].+Geometry files for full detector simulations can be found in the  [[http://atlaswww.hep.anl.gov/hepsim/soft/detectors/|detector repository]].
  
 This manual describes how to work with truth-level samples posted on HepSim. This manual describes how to work with truth-level samples posted on HepSim.
Line 351: Line 351:
 hs-run ttbar_mg5.py hs-run ttbar_mg5.py
 </code> </code>
-Another approach is to use [[http://jwork.org/dmelt/ | DataMelt]] that gives more flexibility and more libraries for analysis. 
-In this example, we will run a Python script that downloads data from URL into the computer memory  and runs it in a batch mode. First, you will need an analysis code from HepSim. Look at ttbar sample from Madgraph: [[http://atlaswww.hep.anl.gov/hepsim/info.php?item=15 | ttbar_mg5]].  Find the URL location of the analysis script ("ttbar_mg5.py") located at the bottom of this page. Then copy the URL link of the file *.py using the right mouse button ("Copy URL Location"). Let us make a calculation of differential ttbar cross section: 
  
 +Another approach is to use [[http://atlaswww.hep.anl.gov/asc/jas4pp | Jas4pp]] or  [[http://jwork.org/dmelt/ | DataMelt]]. Such programs 
 +give more flexibility and more libraries for analysis.
 +In this example, we will run a Python script that downloads data from URL into the computer memory  and runs it in a batch mode. First, you will need an analysis code from HepSim. Look at ttbar sample from Madgraph: [[http://atlaswww.hep.anl.gov/hepsim/info.php?item=15 | ttbar_mg5]].  Find the URL location of the analysis script ("ttbar_mg5.py") located at the bottom of this page. Then copy the URL link of the file *.py using the right mouse button ("Copy URL Location"). Let us make a calculation of differential ttbar cross section. 
 +
 +Here is how to process the analysis using  [[http://atlaswww.hep.anl.gov/asc/jas4pp | Jas4pp]]:
 +
 +<code bash>
 +wget http://atlaswww.hep.anl.gov/asc/jas4pp/download/current.php -O jas4pp.tgz
 +tar -zvxf jas4pp.tgz
 +cd jas4pp
 +source ./setup.sh # takes 5 sec for first-time optimization
 +wget http://mc.hep.anl.gov/asc/hepsim/events/pp/100tev/ttbar_mg5/macros/ttbar_mg5.py # get the HepSim script
 +fpad ttbar_mg5.py # process it in a batch mode.
 +</code>
 +
 +
 +
 +Similarly, you can use a more complex [[http://jwork.org/dmelt/ | DataMelt]]:
 <code bash> <code bash>
 wget -O dmelt.zip http://jwork.org/dmelt/download/current.php                        # get DataMelt wget -O dmelt.zip http://jwork.org/dmelt/download/current.php                        # get DataMelt
Line 390: Line 406:
 </code> </code>
  
 +Similarly,  you can use  [[http://atlaswww.hep.anl.gov/asc/jas4pp | Jas4pp]].
 ===== Method III. Running in a GUI mode  ==== ===== Method III. Running in a GUI mode  ====
  
Line 399: Line 416:
 Run this code  by pressing "run". This approach uses a light-weight editor built-in inside the hs-tool package.   Run this code  by pressing "run". This approach uses a light-weight editor built-in inside the hs-tool package.  
  
-You can also bring up a full-featured GUI editor as this:+For Jas4pp, you can  start an editor, correct the script, and run it: 
 + 
 +<code bash> 
 +./jaspp ttbar_mg5.py # Open the script in the editor 
 +</code> 
 +Then, use the right mouse button and select "Run Python"You will see the output.  
 + 
 + 
 +For the DMelt IDE, you can also bring up a full-featured GUI editor as this:
  
 <code bash> <code bash>
Line 408: Line 433:
  
 ===== Method IV. Running in a GUI mode using URL dialog  ==== ===== Method IV. Running in a GUI mode using URL dialog  ====
 +
 +
  
 If you use DMelt, you can run this code using If you use DMelt, you can run this code using
community/refhepsim.txt · Last modified: 2016/04/28 18:23 by asc