Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
hepsim:usage_analysis [2017/02/06 23:21] hepsim17 |
hepsim:usage_analysis [2018/07/28 13:43] hepsim17 [Using ProIO files] |
||
---|---|---|---|
Line 7: | Line 7: | ||
This analysis tutorial covers Python codding on the Java platform (Jython). Look at the [[http:// | This analysis tutorial covers Python codding on the Java platform (Jython). Look at the [[http:// | ||
- | For C++/ROOT, please refer [[asc:promc| ProMC web page]]. | + | For C++/ROOT, please refer [[https:// |
To ensure platform independence and a possibility to run programs using web browsers [(Cross-platform validation and analysis environment for particle physics, S.V. Chekanov, I. Pogrebnyak, D. Wilbern, arXiv: | To ensure platform independence and a possibility to run programs using web browsers [(Cross-platform validation and analysis environment for particle physics, S.V. Chekanov, I. Pogrebnyak, D. Wilbern, arXiv: | ||
Line 13: | Line 13: | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | + | * [[http:// |
+ | * [[https:// | ||
+ | See [[http:// | ||
The example codes on this page can be run using several options: | The example codes on this page can be run using several options: | ||
* Using Java web start from the browser. | * Using Java web start from the browser. | ||
- | * " | + | * " |
- | * " | + | * " |
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Line 48: | Line 50: | ||
<code python> | <code python> | ||
- | name="tev100_pythia8_minbias_a14" | + | name="tev100pp_pythia8_minbias_a14" |
hepsim_server=" | hepsim_server=" | ||
import urllib2 | import urllib2 | ||
Line 74: | Line 76: | ||
</ | </ | ||
This methods takes file list, and identify pT ranges given between the strings " | This methods takes file list, and identify pT ranges given between the strings " | ||
- | ====== 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 96: | Line 102: | ||
- | ====== Reading the event records | + | ===== Reading the event records ===== |
Line 156: | Line 162: | ||
Look at the API of the Lorentz-particle class: | Look at the API of the Lorentz-particle class: | ||
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
- | In addition, you can build an ArrayList with particles using a convenient class [[http://jwork.org/dmelt/api/doc.php/ | + | In addition, you can build an ArrayList with particles using a convenient class [[http://atlaswww.hep.anl.gov/hepsim/ |
- | Also, when possible, use the method " | + | Also, when possible, use the method " |
<code python> | <code python> | ||
Line 177: | Line 183: | ||
The above example fills a list with all stable particles, without any cuts on pT and Eta (2 second arguments). | The above example fills a list with all stable particles, without any cuts on pT and Eta (2 second arguments). | ||
- | The next example creates [[http://jwork.org/dmelt/api/doc.php/ | + | The next example creates [[http://atlaswww.hep.anl.gov/hepsim/ |
<code python> | <code python> | ||
from proto import FileMC | from proto import FileMC | ||
Line 196: | Line 202: | ||
In this example, we fill a list with all stable particles (status " | In this example, we fill a list with all stable particles (status " | ||
- | The object " | + | The object " |
Finality, let us extend the above example: we will create anti-kT jets using the list " | Finality, let us extend the above example: we will create anti-kT jets using the list " | ||
Line 220: | Line 226: | ||
print "pT of a leading jet =", | print "pT of a leading jet =", | ||
</ | </ | ||
- | To build anti-kT jets, we use [[http:// | + | To build anti-kT jets, we use [[http:// |
The description of this algorithm is given in [[http:// | The description of this algorithm is given in [[http:// | ||
It is a similar to FastJet N*N algorithm and typically shows | It is a similar to FastJet N*N algorithm and typically shows | ||
Line 226: | Line 232: | ||
Look at a typical example of jet clustering in the [[http:// | Look at a typical example of jet clustering in the [[http:// | ||
- | ====== 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 244: | Line 250: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | |||
+ | |||
+ | ====== Using ProIO files ====== | ||
+ | |||
+ | |||
+ | ProIO files have their own API (https:// | ||
+ | It is at early stage of development. You can look at example of how to use ProIO here [http:// | ||
+ | |||
====== Plots and histograms ====== | ====== Plots and histograms ====== | ||
Line 251: | Line 266: | ||
Here are a few most common classes: | Here are a few most common classes: | ||
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
- | The main canvas to show histograms [[http://jwork.org/dmelt/api/doc.php/ | + | The main canvas to show histograms [[http://atlaswww.hep.anl.gov/hepsim/ |
Usually, plots are saved in the vector-graphics SVG format. They can be converted on Linux to EPS as: | Usually, plots are saved in the vector-graphics SVG format. They can be converted on Linux to EPS as: | ||
Line 264: | Line 279: | ||
However, one can also save images in PDF or EPS using the corresponding file extensions for the " | However, one can also save images in PDF or EPS using the corresponding file extensions for the " | ||
- | In addition, data are saved in the form of XML (with the extension " | + | In addition, data are saved in the form of XML (with the extension " |
For example, one can read such files and create histograms or data objects as: | For example, one can read such files and create histograms or data objects as: | ||
Line 274: | Line 289: | ||
print p1.toString() | print p1.toString() | ||
</ | </ | ||
- | The object p1 belongs to the class [[http://jwork.org/dmelt/api/doc.php/ | + | The object p1 belongs to the class [[http://atlaswww.hep.anl.gov/hepsim/ |
+ | |||
====== HepSim API ====== | ====== HepSim API ====== | ||
Line 283: | Line 300: | ||
===== Histograms and plots ===== | ===== Histograms and plots ===== | ||
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/jhplot/P1D.html|P1D]] - X-Y container with support of 2-level errors |
+ | |||
+ | See also other math and graphics classes in the [[http:// | ||
- | See also other math and graphics classes in the [[http:// | ||
===== Lorentz particles and Jets ===== | ===== Lorentz particles and Jets ===== | ||
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
* [[http:// | * [[http:// | ||
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/hepsimjar/api/ |
- | * [[http://jwork.org/dmelt/api/doc.php/ | + | * [[http://atlaswww.hep.anl.gov/hepsim/ |
* [[http:// | * [[http:// | ||
| | ||
Line 304: | Line 322: | ||
- | You can build the standard kt-jets using [[http://jwork.org/dmelt/api/doc.php/ | + | You can build the standard kt-jets using [[http://atlaswww.hep.anl.gov/hepsim/ |
- | [[http://jwork.org/dmelt/api/doc.php/ | + | [[http://atlaswww.hep.anl.gov/hepsim/ |
===== Working with ProMC files ===== | ===== Working with ProMC files ===== | ||
Line 321: | Line 339: | ||
The project uses the community edition of [[http:// | The project uses the community edition of [[http:// | ||
+ | |||
+ | |||
+ | |||
+ | ====== GROOT API ====== | ||
+ | |||
+ | In addition, this tool supports GRoot histograms and canvases (see [[https:// | ||
+ | to use this package for PyROOT users. | ||
+ | You can find the Java API of this package in [[http:// | ||
+ | |||
+ | |||
+ | The following histograms are available: | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | They can be plotted on the [[http:// | ||
+ | |||
--- // | --- // |