Using Whizard at Glasgow
The Monte Carlo event generator Whizard needs O'Caml to be available, and needs to be set up with several other packages in order to simulate linear collider beam spectra. Though Whizard v2 is now available, v1.9.7 was used for consistency with previous datasets.
Whizard required gcc greater than 4.3 to build so as much as possible was done on an SL6 machine.
Below is a brain dump.
Late in the process I found a helpful script which is probably the best place to start:
http://svnweb.cern.ch/guest/lcgentools/trunk/scripts/installation/
Here is a helpful talk about the beam spectra from Tim Barklow:
http://agenda.linearcollider.org/getFile.py/access?contribId=0&resId=1&materialId=slides&confId=4549
O'caml build
O'caml built happily in our SL5 release (eg ppepc103) but found a missing library when trying to build in our SL6 release. Stayed with SL5.
Downloaded tarball from
http://caml.inria.fr/ocaml/
./configure -prefix /afs/phas.gla.ac.uk/user/r/robson/Ocaml
make world > loglocal.world 2>&1
make bootstrap > loglocal.bootstrap 2>&1
make opt > loglocal.opt 2>&1
make opt.opt > loglocal.opt.opt 2>&1
make install > loglocal.install 2>&1
make installopt > loglocal.installopt 2>&1
make installoptopt > loglocal.installoptopt 2>&1
export PATH=$PATH:/afs/phas.gla.ac.uk/user/r/robson/Ocaml/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/afs/phas.gla.ac.uk/user/r/robson/Ocaml/lib
stdhep build
Downloaded stdhep from http://cepa.fnal.gov/psm/stdhep/getStdHep.shtml
to compile stdhep in SL6 had to change src/stdhep_arch:
F77=gfortran
FFLAGS= $(DFLG) -fd-lines-as-comments -fno-second-underscore
and to change mcfio/arch_mcfio:
F77=gfortran
then
export STDHEP_DIR=/afs/phas.gla.ac.uk/user/r/robson/Stdhep/stdhep-5-06-01/lib/
Whizard build
Downloaded tarball from
https://whizard.hepforge.org
Whizard needed gcc 4.3 or above to compile and in practice locally this meant SL6 (eg ppepc147).
A minor modification was required to the Whizard configure file because an apparent change to --version output in Ocaml led to parsing failure when checking Ocaml version.
[robson@ppepc145 Whizard197_SL6]$ diff configure configure_mod
7379,7380c7379,7380
< $AWK 'NR==1 && $5 ~ /version/ {
< split ($6, version, "[.+]+");
---
> $AWK 'NR==1 && $4 ~ /version/ {
> split ($5, version, "[.+]+");
To get beam spectra
svn export http://svnweb.cern.ch/guest/lcgentools/trunk/energy_spread
export energy_spread=$PWD/energy_spread
export LUMI_LINKER=${energy_spread}/lumi_linker_000
export PHOTONS_B1=${energy_spread}/photons_beam1_linker_000
export PHOTONS_B2=${energy_spread}/photons_beam2_linker_000
export EBEAM=${energy_spread}/ebeam_in_linker_000
export PBEAM=${energy_spread}/pbeam_in_linker_000
export LUMI_EE_LINKER=${energy_spread}/lumi_ee_linker_000
export LUMI_EG_LINKER=${energy_spread}/lumi_eg_linker_000
export LUMI_GE_LINKER=${energy_spread}/lumi_ge_linker_000
export LUMI_GG_LINKER=${energy_spread}/lumi_gg_linker_000
For the beam spectra:
svn export http://svnweb.cern.ch/guest/lcgentools/trunk/Whizard_1.95/whizard-src/user.f90
- and split the lines in that file that were too long for f90.
a6f
To get a6f:
svn export http://svnweb.cern.ch/guest/lcgentools/trunk/Whizard_1.95/a6f/
cd kinds-src
make install
cd ../vamp-src/
make install
cd ../whizard-src/
gfortran -I../include -c mpi90.f90 limits.f90 diagnostics.f90
cd ..
make -C a6f/include/ A6F=.. WHIZ=../.. WH195=../.. SHELL=/bin/bash
pythia
wget
http://home.fnal.gov/~rhatcher/build_pythia6.sh
- currently not available; script attached to this wiki page.
bash build_pythia6.sh 6.4.22 gfortran
cd v6_422/src/
mv upinit.f upinit.f-orig
mv pydecy.f pydecy.f-orig
svn export http://svnweb.cern.ch/guest/lcgentools/trunk/updates_to_foreign/upinit.f
svn export http://svnweb.cern.ch/guest/lcgentools/trunk/updates_to_foreign/pydecy.f
touch upinit.f
touch pydecy.f
make
cd ../lib/
mv liblund.a libpythia6422.a
export PYTHIA_LIB=/afs/phas.gla.ac.uk/user/r/robson/Whizard197_SL6/v6_422/lib
export PYTHIA_DIR=/afs/phas.gla.ac.uk/user/r/robson/Whizard197_SL6/v6_422/lib
tauola
svn export http://svnweb.cern.ch/guest/lcgentools/trunk/updates_to_foreign/tauola_desy.tar.gz
tar zxvf tauola_desy.tar.gz
cd tauola_desy/TAUOLA
export WHZ=/afs/phas.gla.ac.uk/user/r/robson/Whizard197_SL6/tauola_desy/TAUOLA/../..
cd photos-F/
make 4kD-all
bash make_tauola_script
cd tauola
make
mv glib.a libtauola.a
cd ..
cd photos
mv glib.a libphotos.a
cd ..
export TAUOLALIB=/afs/phas.gla.ac.uk/user/r/robson/Whizard197_SL6/tauola_desy/TAUOLA/tauola
export PHOTOSLIB=/afs/phas.gla.ac.uk/user/r/robson/Whizard197_SL6/tauola_desy/TAUOLA/photos
cd ../..
whizard itself:
FMCFIO=/afs/phas.gla.ac.uk/user/r/robson/Stdhep/stdhep-5-06-01/lib/libFmcfio.a STDHEP=/afs/phas.gla.ac.uk/user/r/robson/Stdhep/stdhep-5-06-01/lib/libstdhep.a ./configure_mod --enable-stdhep --prefix=/afs/phas.gla.ac.uk/user/r/robson/Whizard197_SL6 USERLIBS="/afs/phas.gla.ac.uk/user/r/robson/Whizard197_SL6/a6f/include/pytaud.o /afs/phas.gla.ac.uk/user/r/robson/Whizard197_SL6/a6f/lib/libinclude.a $TAUOLALIB/libtauola.a $PHOTOSLIB/libphotos.a" F77=gfortran > log.configure 2>&1
To look at Whizard diagrams:
needed:
manpics.mp
feynmp.mp
feynmp.sty
feynmf.sty
mpost whizard-channels.fmf.mp
latex whizard-channels.tex
dvips whizard-channels.dvi -o whizard-channels.ps
evince whizard-channels.ps
--
Aidan Robson - 2014-04-23
Comments
- build_pythia6.sh: Pythia build script from R Hatcher, currently not visible to visitors at his homepage