User Tools

Site Tools


asc:promc:examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
asc:promc:examples [2015/03/20 01:16]
asc [Default data layouts]
asc:promc:examples [2015/05/10 21:08] (current)
asc
Line 332: Line 332:
 ===== Reading data using Jython ===== ===== Reading data using Jython =====
  
-You can make histograms on any platform (Windows/Linux/Mac) when using [[http://jwork.org/scavis/|SCaVis]].  Copy "browser_promc.jar" file  from  +You can make histograms on any platform (Windows/Linux/Mac) when using [[http://jwork.org/dmelt/|DataMelt]].  Copy "browser_promc.jar" file  from  
-"example/browser/"  of the installation directory to the directory "lib/user" of the ScaVis installation. +"example/browser/"  of the installation directory to the directory "lib/user" of the DatMelt installation. 
-To avoid a clash with the library shipped with Scavis, remove "promc-protobuf.jar" inside the Scavis installation directory. +To avoid a clash with the library shipped with DatMelt, remove "promc-protobuf.jar" inside the DatMelt installation directory. 
  
 <code bash> <code bash>
 rm   lib/system/promc-protobuf.jar rm   lib/system/promc-protobuf.jar
 </code> </code>
-(in Windows, go to this directory and remove this file) and restart the ScaVis. Then you can write a small Jython script like this:+(in Windows, go to this directory and remove this file) and restart the DatMelt. Then you can write a small Jython script like this:
  
 <code python promc.py> <code python promc.py>
-# Reading Pthia8 file in the ProMC format using ScaVis http://jwork.org/scavis+# Reading Pthia8 file in the ProMC format using [[http://jwork.org/dmelt | DataMelt]]
 # S.Chekanov (ANL) # S.Chekanov (ANL)
 from java.io import * from java.io import *
Line 348: Line 348:
 from promc.io import * from promc.io import *
 from proto import *   # import FileMC from proto import *   # import FileMC
-from jhplot import *  # import ScaVis graphics+from jhplot import *  # import DatMelt graphics
  
 file = FileMC("Pythia8.promc") file = FileMC("Pythia8.promc")
Line 384: Line 384:
 wget  http://atlaswww.hep.anl.gov/asc/promc/download/Pythia8.promc wget  http://atlaswww.hep.anl.gov/asc/promc/download/Pythia8.promc
 </code> </code>
-Start SCaVis and run this script. It will show the Px spectra for  all stored particles.  +Start DatMelt and run this script. It will show the Px spectra for  all stored particles.  
-(You can load this file as "scavis.sh promc.py"+(You can load this file as "dmelt.sh promc.py"
  
  
asc/promc/examples.1426814192.txt.gz · Last modified: 2015/03/20 01:16 by asc