This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
asc:promc:examples [2014/10/14 19:52] asc [Benchmark summary] |
asc:promc:examples [2015/05/10 21:08] (current) asc |
||
---|---|---|---|
Line 6: | Line 6: | ||
(written by S.Chekanov, ANL) | (written by S.Chekanov, ANL) | ||
- | ProMC binary | + | ProMC files are compact and self-describing |
to ProMC files. More information is in the [[asc: | to ProMC files. More information is in the [[asc: | ||
Line 33: | Line 33: | ||
Look at the Python examples discussed bellow how to use a random access via the network. | Look at the Python examples discussed bellow how to use a random access via the network. | ||
+ | |||
+ | Note that the browser can open ProMC files of any size, since it loads only a fraction of data. This is especially useful compared to limitations | ||
+ | of some formats that cannot be viewed in text editors if their sizes are too large. | ||
Line 239: | Line 242: | ||
</ | </ | ||
- | An example program which fills ProMC file record is given here | + | An example program which fills ProMC file record is given in |
- | [[http://atlaswww.hep.anl.gov/asc/WebSVN/ | + | [[https://github.com/Argonne-National-Laboratory/ProMC/blob/master/examples/pythia/|Pythia8 to ProMC example]] |
Line 329: | Line 332: | ||
===== Reading data using Jython ===== | ===== Reading data using Jython ===== | ||
- | You can make histograms on any platform (Windows/ | + | You can make histograms on any platform (Windows/ |
- | " | + | " |
- | To avoid a clash with the library shipped with Scavis, remove " | + | To avoid a clash with the library shipped with DatMelt, remove " |
<code bash> | <code bash> | ||
rm | rm | ||
</ | </ | ||
- | (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 | + | # Reading Pthia8 file in the ProMC format using [[http:// |
# S.Chekanov (ANL) | # S.Chekanov (ANL) | ||
from java.io import * | from java.io import * | ||
Line 345: | Line 348: | ||
from promc.io import * | from promc.io import * | ||
from proto import * # import FileMC | from proto import * # import FileMC | ||
- | from jhplot import * # import | + | from jhplot import * # import |
file = FileMC(" | file = FileMC(" | ||
Line 381: | Line 384: | ||
wget http:// | wget http:// | ||
</ | </ | ||
- | Start SCaVis | + | Start DatMelt |
- | (You can load this file as "scavis.sh promc.py" | + | (You can load this file as "dmelt.sh promc.py" |
Line 461: | Line 464: | ||
- | - [[http://atlaswww.hep.anl.gov/asc/WebSVN/filedetails.php? | + | - [[https://github.com/ |
- | - [[http://atlaswww.hep.anl.gov/asc/WebSVN/filedetails.php? | + | - [[https://github.com/Argonne-National-Laboratory/ProMC/ |
- [[http:// | - [[http:// | ||
+ | - [[https:// | ||
+ | |||
+ | |||
More complex layout files (for example, foe Delphes fast simulation) can be found | More complex layout files (for example, foe Delphes fast simulation) can be found | ||
inside the directory " | inside the directory " |