Select a PDFset for pythia6 inside Root

VIVE L’AMOUR!
the simple way of building PYTHIA6, that you can find in the “Installing ROOT from Source” web page, produces a misbehaving library, I believe.

You should compile PYTHIA6 using Robert Hatcher’s “build_pythia6.sh” script (note that, in order to replace dummy PDFSET, STRUCTM and STRUCTP routines, you should have CERNLIB “pdflib[804]”, “mathlib” and “kernlib” libraries installed and set the “CERNLIB” or “CERNLIBS” or “CERN_DIR” or “CERN_ROOT” environment variable in advance):

home.fnal.gov/~rhatcher/build_pythia6.sh

home.fnal.gov/~rhatcher

It is also described here (see “PYTHIA6 and ROOT/PYTHIA thin wrapper library” and “ROOT Class Libraries” in the bottom of the following page):

projects.hepforge.org/genie/inst … n_ext.html

Note however that, the default PYTHIA6 version set in the “build_pythia6.sh” script is 6.4.22 or 6.4.12, while the newest code is 6.4.24 (don’t forget to call the script with an appropriate “6.4.24” parameter, then):

hepforge.org/downloads/pythia6

One final note. If you get an error saying …

[…] > sh build_pythia6.sh 6.4.24
version 6.4.24 major 6 minor 4 tiny 24
(…)
fsplit.c: In function ‘main’:
fsplit.c:144: error: too few arguments to function ‘getline’
fsplit.c: In function ‘getline’:
fsplit.c:234: error: number of arguments doesn’t match prototype
/usr/include/stdio.h:651: error: prototype declaration
(…)

… just edit the file “v6_424/src/fsplit.c” and replace two occurrences of “getline” with “get_line” and then re-run the “sh build_pythia6.sh 6.4.24” command.

I am stupid. No?
Pepe Le Pew.