You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Preliminary

You can get the Java interface from pythiaJava.tar.gz here.
Put it somewhere and extract with tar -xvf <filename.tar.gz>
Please also make sure that you have a proper version of a Java compiler with the JNI interface and that the environment variable $JDK_ROOT points to it.

Make sure you have the pythia version you want

The distribution contains the file evtgenpythiaisajet/pythia6228.f. You can replace that file with your favourite version of Pythia.

Build the Program

gcc3

If you have an older version of gcc, you most likely need to link against the g2c library. If you have the library, execute
g++ -shared -I$JDK_ROOT/include -I$JDK_ROOT/include/linux *.cpp *.f -lg2c -o ../libpythiaevtgen.so

gcc4

Newer versions of gcc come with the gfortran library. You can build the program with
g++ -shared -I$JDK_ROOT/include -I$JDK_ROOT/include/linux *.cpp *.f -lgfortran -o ../libpythiaevtgen.so

  • No labels