asc:jas4pp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
asc:jas4pp [2021/02/17 00:32] – [Analysis of Delphes ROOT files] asc | asc:jas4pp [2021/08/06 12:57] – [People] asc | ||
---|---|---|---|
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:// | * [[http:// | ||
- | * Many file formats used in HEP, including | + | * Many file formats used in HEP, including |
- | * [[https:// | + | * [[https:// |
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
Line 62: | Line 62: | ||
bash> jaspp | bash> jaspp | ||
</ | </ | ||
- | The last command starts Jas4PP GUI. | + | The last command starts Jas4PP GUI: |
+ | |||
+ | |||
+ | {{: | ||
+ | |||
+ | 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: | ||
+ | |||
+ | {{: | ||
If you run Jython/ | If you run Jython/ | ||
Line 348: | Line 357: | ||
reader = RootFileReader(xf) | reader = RootFileReader(xf) | ||
- | |||
tree = reader.get(" | tree = reader.get(" | ||
- | maxevents=tree.getEntries() | ||
branches=tree.getBranches() | branches=tree.getBranches() | ||
print "Nr of events=", | print "Nr of events=", | ||
Line 397: | Line 404: | ||
reader = RootFileReader(" | reader = RootFileReader(" | ||
- | tree = reader.get(" | + | tree = reader.get(" |
- | maxevents=tree.getEntries() | + | |
branches=tree.getBranches() | branches=tree.getBranches() | ||
print "Nr of events=", | print "Nr of events=", | ||
print "Nr of branches=", | print "Nr of branches=", | ||
print " | print " | ||
- | for l in xrange( branches.size() | + | for l in xrange( branches.size() ): |
print " | print " | ||
- | particles=tree.getBranch(" | + | particles=tree.getBranch(" |
ptEvents=Delphes.getFloat(particles," | ptEvents=Delphes.getFloat(particles," | ||
etaEvents=Delphes.getFloat(particles," | etaEvents=Delphes.getFloat(particles," | ||
Line 434: | Line 439: | ||
<note warning> | <note warning> | ||
+ | ====== | ||
+ | |||
+ | 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:// | ||
+ | |||
+ | <hidden Click to show the Python code> | ||
+ | <code python> | ||
+ | from jhplot | ||
+ | from jhplot.io import * | ||
+ | |||
+ | hb = CFBook() | ||
+ | hb.read(" | ||
+ | print hb.listAll() | ||
+ | print hb.getKeysH1D() # list keys | ||
+ | h1=hb.getH1D(1) | ||
+ | c1=HPlot(" | ||
+ | c1.setGTitle(" | ||
+ | c1.visible(1) | ||
+ | c1.setAutoRange() | ||
+ | c1.draw(h1) | ||
+ | |||
+ | </ | ||
+ | </ | ||
====== Reading LCIO files ====== | ====== Reading LCIO files ====== | ||
Line 767: | Line 794: | ||
* N.Nikiforou | * N.Nikiforou | ||
* G.Gavalian (JLab) | * G.Gavalian (JLab) | ||
+ | * Khushi Taori (ANL SULI 2021 student). ROOT6 validation | ||
asc/jas4pp.txt · Last modified: 2024/01/30 15:50 by asc