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
hepsim:usage_analysis [2017/07/15 23:10]
hepsim17
hepsim:usage_analysis [2018/07/28 13:43]
hepsim17 [Using ProIO files]
Line 21: Line 21:
  
   *  Using Java web start from the browser.   *  Using Java web start from the browser.
-  * "hs-ide file.py" command to launch the editor (from the hs-tools package) +  * "hs-ide file.py" command to launch the editor (from [[http://atlaswww.hep.anl.gov/hepsim/doc/doku.php?id=hepsim:hs-tools|hs-tools]] package) 
-  * "hs-run file.py" command to run using a command-line ("batch mode", from the hs-tools package)+  * "hs-run file.py" command to run using a command-line ("batch mode", from the [[http://atlaswww.hep.anl.gov/hepsim/doc/doku.php?id=hepsim:hs-tools|hs-tools]] package)
   * [[http://atlaswww.hep.anl.gov/asc/jas4pp/| Jas4pp]]   * [[http://atlaswww.hep.anl.gov/asc/jas4pp/| Jas4pp]]
   * [[http://jwork.org/dmelt/ |DMelt  IDE]]    * [[http://jwork.org/dmelt/ |DMelt  IDE]] 
Line 76: Line 76:
 </code> </code>
 This methods takes file list, and identify pT ranges given between the strings "_pt" and "_". In the above example, the output list will be [1000,5000]. This methods takes file list, and identify pT ranges given between the strings "_pt" and "_". In the above example, the output list will be [1000,5000].
-====== Reading the file header ======+ 
 +====== Using ProMC files ====== 
 + 
 + 
 +===== Reading the file header =====
  
 To read data from a ProMC file, you will need these statements: To read data from a ProMC file, you will need these statements:
Line 98: Line 102:
  
  
-====== Reading the event records ======+===== Reading the event records =====
  
  
Line 198: Line 202:
  
 In this example, we fill a list with all stable particles (status "1"), without any pT cut ("-1") and maximum absolute value of pseudo-rapidity 1000. In this example, we fill a list with all stable particles (status "1"), without any pT cut ("-1") and maximum absolute value of pseudo-rapidity 1000.
-The object "par" is a list with [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/hephysics/jet/ParticleD,html|ParticleD]].+The object "par" is a list with [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/hephysics/jet/ParticleD.html|ParticleD]].
  
 Finality, let us extend the above example: we will create anti-kT jets using the list "par": Finality, let us extend the above example: we will create anti-kT jets using the list "par":
Line 228: Line 232:
 Look at a typical example of jet clustering in the [[http://atlaswww.hep.anl.gov/hepsim/code.php?item=88&code=qcd_pythia8_ptbins_jets.py| qcd_pythia8_ptbins_jets.py code]]. Look at a typical example of jet clustering in the [[http://atlaswww.hep.anl.gov/hepsim/code.php?item=88&code=qcd_pythia8_ptbins_jets.py| qcd_pythia8_ptbins_jets.py code]].
  
-====== Event statistics ======+===== Event statistics =====
  
 Before closing ProMC file, you may need to access event statistics, cross sections and errors on cross sections.  Before closing ProMC file, you may need to access event statistics, cross sections and errors on cross sections. 
Line 246: Line 250:
   * [[http://atlaswww.hep.anl.gov/asc/promc/doc/api/promc/io/ProMCStatFile.ProMCStat.html | ProMCStat]] for MC   * [[http://atlaswww.hep.anl.gov/asc/promc/doc/api/promc/io/ProMCStatFile.ProMCStat.html | ProMCStat]] for MC
   * [[http://atlaswww.hep.anl.gov/asc/promc/doc/api/pronlo/io/ProMCStatFile.ProMCStat.html | ProMCStat]] for NLO   * [[http://atlaswww.hep.anl.gov/asc/promc/doc/api/pronlo/io/ProMCStatFile.ProMCStat.html | ProMCStat]] for NLO
 +
 +
 +
 +====== Using ProIO files ======
 +
 +
 +ProIO files have their own API (https://github.com/decibelcooper/proio).
 +It is at early stage of development. You can look at example of how to use ProIO here [http://atlaswww.hep.anl.gov/hepsim/info.php?item=325)
 +
  
 ====== Plots and histograms ====== ====== Plots and histograms ======
Line 277: Line 290:
 </code> </code>
 The object p1 belongs to the class [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/jhplot/P1D.html|P1D]]. Analogously, one can store histograms etc. The object p1 belongs to the class [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/jhplot/P1D.html|P1D]]. Analogously, one can store histograms etc.
- 
-====== GROOT API ====== 
- 
-In addition, this tool supports GRoot histograms and canvases (see [[https://github.com/gavalian/groot/wiki| GRoot poject]]). 
-The syntax for histogram creation and plotting  is similar to the PyROOT commands. 
-You can find the Java API of this package in [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/|here]]. 
  
  
Line 300: Line 307:
  
 See also other math and graphics classes in the [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/jhplot/package-summary.html | jhplot package]].  See also other math and graphics classes in the [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/jhplot/package-summary.html | jhplot package]]. 
 +
 ===== Lorentz particles and Jets ===== ===== Lorentz particles and Jets =====
  
Line 331: Line 339:
  
 The project uses the community edition of [[http://jwork.org/dmelt/|DMelt]] project and  the FreeHEP Java Libraries. The project uses the community edition of [[http://jwork.org/dmelt/|DMelt]] project and  the FreeHEP Java Libraries.
 +
 +
 +
 +====== GROOT API ======
 +
 +In addition, this tool supports GRoot histograms and canvases (see [[https://github.com/gavalian/groot/wiki| GRoot poject]]). The syntax for histogram creation and plotting  is similar to the PyROOT commands, thus it is easier
 +to use this package for PyROOT users.
 +You can find the Java API of this package in [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/|here]].
 +
 +
 +The following histograms are available:
 +
 +  * [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/org/jlab/groot/data/H1F.html|H1F 1D histogram]]
 +  * [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/org/jlab/groot/data/H1F.html|H2F 2D histogram]]
 +
 +They can be plotted on the [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/org/jlab/groot/graphics/EmbeddedCanvas.html|EmbeddedCanvas]].
 +
  
  --- //[[[email protected]|Sergei Chekanov]] 2015/03/06 08:49//  --- //[[[email protected]|Sergei Chekanov]] 2015/03/06 08:49//