User Tools

Site Tools


asc:jas4pp

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
asc:jas4pp [2021/02/19 20:04]
asc
asc:jas4pp [2024/01/30 15:50] (current)
asc [Reading LCIO files]
Line 27: Line 27:
 a data-analysis environment for detector and physics studies of future circular colliders. Jas4PP is a merge of several open-source Java projects, such as  a data-analysis environment for detector and physics studies of future circular colliders. Jas4PP is a merge of several open-source Java projects, such as 
   * [[http://www.lcsim.org|lcsim.org]] developed at SLAC   * [[http://www.lcsim.org|lcsim.org]] developed at SLAC
-  * Many file formats used in HEP, including ROOT6.  See Section [[asc:jas4pp#supported_file_formats|supported file formats]]. +  * Many file formats used in HEP, including ROOT5 / 6(partially).  See Section [[asc:jas4pp#supported_file_formats|supported file formats]]. 
-  * [[https://github.com/gavalian/groot/wiki|GROOT]] abd XROOTD -  data visualization and I/O used at JLab+  * [[https://github.com/gavalian/groot/wiki|GROOT]] and XROOTD -  data visualization and I/O used at JLab
   * [[https://github.com/gavalian/j4np |j4np-physics]] - Physics vectors from JLab   * [[https://github.com/gavalian/j4np |j4np-physics]] - Physics vectors from JLab
   * [[http://java.freehep.org/|FreeHep]] developed at SLAC   * [[http://java.freehep.org/|FreeHep]] developed at SLAC
Line 43: Line 43:
  
  
 +====== Installation  ======
 The installation does not have external dependencies.  To run Jas4pp, you need to install Java. To check you Java installation, run "java -version" The installation does not have external dependencies.  To run Jas4pp, you need to install Java. To check you Java installation, run "java -version"
 One can find Oracle JDK or JRE versions from the [[http://www.oracle.com/technetwork/java/javase/downloads/index.html|Oracle download link]]. OpenJDK can be downloaded  from [[https://openjdk.java.net/]]. One can find Oracle JDK or JRE versions from the [[http://www.oracle.com/technetwork/java/javase/downloads/index.html|Oracle download link]]. OpenJDK can be downloaded  from [[https://openjdk.java.net/]].
Line 48: Line 49:
  
  
-<note tip>Although Jas4pp works on JDK8, we strongly recommend to use JDK9 (or OpenJDK9) and above. This will significantly increase the speed for  numeric computations.+<note tip>We strongly recommend to use JDK18 (or OpenJDK18) and above. This will significantly increase the speed for  numeric computations.
 </note> </note>
  
  
 You can download the Jas4pp program using the [[http://atlaswww.hep.anl.gov/asc/jas4pp/download/|download page]]. You can download the Jas4pp program using the [[http://atlaswww.hep.anl.gov/asc/jas4pp/download/|download page]].
-Then run these commands to install the package using Linux/Mac with the "bash" shell:+ 
 +You can use Jas4pp installer program (jas4pp-[VERSION]-installer.jar). 
 +It asks several questions and creates an icon on a desktop. It is recommended to install the program in "C:\Jas4pp" (for Wnindows) to avoid permission problems.  
 + 
 +Alternatively, one can use untar the program in any directory. 
 +Run these commands to install the package using Linux/Mac with the "bash" shell:
  
 <code bash> <code bash>
Line 67: Line 73:
 {{:asc:jas4pp.png?350|}} {{:asc:jas4pp.png?350|}}
  
-Use this GUI to explore examples with data visualisation.+====== How to run  ====== 
 + 
 +Use this GUI to explore examples with data visualisation shown in the main window: 
 +[JAS4PP examples]-[Python examples] and then [F2] (or use the mouse menu) to execute: 
 + 
 +{{:asc:jas4pp1.png?350|}}
  
  
Line 436: Line 447:
 <note warning>Reading Delphes trees is an experimental feature. Under study </note> <note warning>Reading Delphes trees is an experimental feature. Under study </note>
  
 +======  Histograms from Fortran and C++ ======
 +
 +Jas4pp can visualize histograms created by Fortran or C++ code (but without using ROOT). For this, use a light stand-alone library called CFBook (See [[https://datamelt.org/?id=cfbook-library|CFBook]]). You can compile it using gcc (for C++ programs) or gfortran (for Fortran program). This library creates XML file with 1D and 2D histograms, that can be read by Jas4pp. Here is an example of reading 1D histogram from fortran.xml file:
 +
 +<hidden Click to show the Python code>
 +<code python>
 +from jhplot  import *
 +from jhplot.io import *
 +
 +hb = CFBook()
 +hb.read("fortran.xml")
 +print hb.listAll()
 +print hb.getKeysH1D() # list keys
 +h1=hb.getH1D(1)        # use the key 1 to retrive H1D
 +c1=HPlot("Test")
 +c1.setGTitle("Histograms from a file");
 +c1.visible(1)
 +c1.setAutoRange()
 +c1.draw(h1)
 +
 +</code>
 +</hidden>
  
 ====== Reading LCIO files ====== ====== Reading LCIO files ======
Line 517: Line 550:
 See [[http://atlaswww.hep.anl.gov/hepsim/macrolist_lcio.php|LCIO validation page]] for more examples. See [[http://atlaswww.hep.anl.gov/hepsim/macrolist_lcio.php|LCIO validation page]] for more examples.
  
 +====== Reading LCIO files from Delphes ======
 +
 +The Delphes program has somewhat different containers, but they alos can be processed by Jas4pp using Python code. You can find Delphes LCIO files in [[https://atlaswww.hep.anl.gov/hepsim/info.php?item=368]] (created for Snowmass21). See rfast052 tag. To process such LCIO files, look at the example Python scripts in the directory "examples/delphes".
 + 
  
  
Line 769: Line 806:
   * N.Nikiforou   * N.Nikiforou
   * G.Gavalian (JLab)   * G.Gavalian (JLab)
 +  * Khushi Taori (ANL SULI 2021 student). ROOT6 support  validation
  
  
asc/jas4pp.1613765074.txt.gz · Last modified: 2021/02/19 20:04 by asc