This example shows how to fill histograms and arrays using PYTHIA 8 Monte Carlo and reconstruct photon cross sections using Jython/Java.
- Install Pythia 8.1. Go to the "example" directory and make sure that the example "main02.cc" can be compiled. Install Protocol Buffers library and untar CBook in the "example" directory. Compile CBook library (cd CBook/cmd; make). This creates a library CBook/lib/libcbook.a inside the "example" directory. Link this library in the "Makefile" of PYTHIA examples and make modifications in the file main02.cc as shown below. In addition, one should specify several include directories as in the example Makefile linked below.
- After compilation, run the executable "main02.exe". This creates a file main02.pbu with two histograms.
- Read the histogram file using the Jython script read_pfile.py. This will pop up a Java histogram browser for plotting on the HPlot canvas.
Warning: Undefined variable $list in /home4/jworkorg/public_html/scavis/examplesHEP/pythia_xcross/download.php on line 41
Download examples
Example file | size (KB) | Date |
---|---|---|
read_pfile.py | 0.84 KB | 09/05/2013 22:52:53 |
main02.pbu | 2.12 KB | 09/05/2013 22:52:53 |
main02.cc | 2.41 KB | 09/05/2013 22:52:53 |
Makefile | 2.73 KB | 09/05/2013 22:52:53 |