TWiki
>
LinearCollider Web
>
Whizard
(2014-04-23,
AidanRobson
)
(raw view)
E
dit
A
ttach
---+ 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/ <verbatim>./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</verbatim> ---++ stdhep build <span style="font-size: small; color: #000000; font-weight: normal; line-height: normal;">Downloaded stdhep from http://cepa.fnal.gov/psm/stdhep/getStdHep.shtml</span> to compile stdhep in SL6 had to change src/stdhep_arch: <verbatim>F77=gfortran FFLAGS= $(DFLG) -fd-lines-as-comments -fno-second-underscore</verbatim> and to change mcfio/arch_mcfio: <verbatim>F77=gfortran</verbatim> then <verbatim>export STDHEP_DIR=/afs/phas.gla.ac.uk/user/r/robson/Stdhep/stdhep-5-06-01/lib/</verbatim> ---++++ ---+ 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. <verbatim>[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, "[.+]+");</verbatim> ---++++ To get beam spectra <verbatim>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</verbatim> For the beam spectra: <verbatim>svn export http://svnweb.cern.ch/guest/lcgentools/trunk/Whizard_1.95/whizard-src/user.f90</verbatim> - and split the lines in that file that were too long for f90. ---++++ a6f To get a6f: <verbatim>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</verbatim> ---++++ pythia wget http://home.fnal.gov/~rhatcher/build_pythia6.sh - currently not available; script attached to this wiki page. <verbatim>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</verbatim> ---++++ tauola <verbatim>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 ../..</verbatim> ---++++ 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: <verbatim>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</verbatim> -- %USERSIG{AidanRobson - 2014-04-23}% ---++ Comments <br />%COMMENT% * [[%PUBURLPATH%/%WEB%/%TOPIC%/build_pythia6.sh][build_pythia6.sh]]: Pythia build script from R Hatcher, currently not visible to visitors at his homepage
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
sh
build_pythia6.sh
r1
manage
19.7 K
2014-04-23 - 09:05
AidanRobson
Pythia build script from R Hatcher, currently not visible to visitors at his homepage
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2014-04-23
-
AidanRobson
LinearCollider
Log In
or
Register
LinearCollider Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
ATLAS
PUUKA
DetDev
Gridmon
IT
LHCb
LinearCollider
Main
NA62
Sandbox
TWiki
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback