http://projects.hepforge.org/rivet/trac/wiki/GettingStarted
[lxplus307] ~/scratch0/Rivetlocal $ wget http://svn.hepforge.org/rivet/bootstrap/rivet-bootstrap
[lxplus307] ~/scratch0/Rivetlocal $ chmod +x rivet-bootstrap
[lxplus307] ~/scratch0/Rivetlocal $ echo $SHELL
/bin/tcsh
[lxplus307] ~/scratch0/Rivetlocal $
[lxplus307] ~/scratch0/Rivetlocal $ setenv PATH /afs/cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin:$PATH
[lxplus307] ~/scratch0/Rivetlocal $ source /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/setup.csh
[lxplus307] ~/scratch0/Rivetlocal $ echo $PATH
/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin:/afs/cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin:/afs/cern.ch/user/s/ssen/bin:/afs/cern.ch/user/s/ssen/scripts:/usr/sue/bin:/afs/cern.ch/cms/bin/amd64_linux26:/afs/cern.ch/cms/system/bin:/usr/local/bin:/usr/local/bin/X11:/usr/bin:/bin:/usr/bin/X11:/cern/pro/bin:/afs/cern.ch/cms/caf/scripts:/afs/cern.ch/cms/sw/common:/afs/cern.ch/cms/sw/bin:/afs/cern.ch/cms/utils:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/X11R6/bin:/afs/cern.ch/sw/lcg/external/root/5.18.00/slc4_amd64_gcc34/root/bin
[lxplus307] ~/scratch0/Rivetlocal $ ./rivet-bootstrap
Getting http://www.hepforge.org/archive/rivet/Rivet-1.2.1.tar.gz
Downloading http://www.hepforge.org/archive/rivet/Rivet-1.2.1.tar.gz
LCG area available: using LCG-built packages
Using LCG platform tag = x86_64-slc5-gcc43-opt
Configuring in /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/build/Rivet-1.2.1: ./configure --prefix=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local --with-lcgtag=x86_64-slc5-gcc43-opt --with-hepmc=/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt --with-boost=/afs/cern.ch/sw/lcg/external/Boost/1.42.0_python2.5/x86_64-slc5-gcc43-opt --with-boost-incpath=/afs/cern.ch/sw/lcg/external/Boost/1.42.0_python2.5/x86_64-slc5-gcc43-opt/include/boost-1_42 --with-fastjet=/afs/cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt --disable-pdfmanual --with-gsl=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt --with-gslcblas=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt
Building in /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/build/Rivet-1.2.1: make -j2 && make -j2 install
All done. Now set some variables in your shell:
In sh shell:
export PATH=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/bin:$PATH
export TEXMFHOME=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/texmf:$TEXMFHOME
export HOMETEXMF=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/texmf:$HOMETEXMF
export LD_LIBRARY_PATH=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib:/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt/lib:/afs/cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages:$PYTHONPATH
. /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/rivet-completion
In csh shell:
setenv PATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/bin:$PATH
setenv TEXMFHOME /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/texmf:$TEXMFHOME
setenv HOMETEXMF /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/texmf:$HOMETEXMF
setenv LD_LIBRARY_PATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib:/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt/lib:/afs/cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt/lib:$LD_LIBRARY_PATH
setenv PYTHONPATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages:$PYTHONPATH
These can be used by sourcing, e.g.
source rivetenv.sh
or
source rivetenv.csh
303.300u 72.584s 4:29.01 139.7% 0+0k 0+0io 2387pf+0w
[lxplus307] ~/scratch0/Rivetlocal $ source rivetenv.csh
TEXMFHOME: Undefined variable.
[lxplus307] ~/scratch0/Rivetlocal $ ./rivet-bootstrap --install-agile
Getting http://www.hepforge.org/archive/rivet/Rivet-1.2.1.tar.gz
Not overwriting tarball at /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/downloads/Rivet-1.2.1.tar.gz
Getting http://www.hepforge.org/archive/agile/AGILe-1.1.6.tar.gz
Downloading http://www.hepforge.org/archive/agile/AGILe-1.1.6.tar.gz
LCG area available: using LCG-built packages
Using LCG platform tag = x86_64-slc5-gcc43-opt
Configuring in /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/build/Rivet-1.2.1: ./configure --prefix=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local --with-lcgtag=x86_64-slc5-gcc43-opt --with-hepmc=/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt --with-boost=/afs/cern.ch/sw/lcg/external/Boost/1.42.0_python2.5/x86_64-slc5-gcc43-opt --with-boost-incpath=/afs/cern.ch/sw/lcg/external/Boost/1.42.0_python2.5/x86_64-slc5-gcc43-opt/include/boost-1_42 --with-fastjet=/afs/cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt --disable-pdfmanual --with-gsl=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt --with-gslcblas=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt
Building in /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/build/Rivet-1.2.1: make -j2 && make -j2 install
Configuring in /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/build/AGILe-1.1.6: ./configure --prefix=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local --with-lcgtag=x86_64-slc5-gcc43-opt --with-hepmc=/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt --with-boost=/afs/cern.ch/sw/lcg/external/Boost/1.42.0_python2.5/x86_64-slc5-gcc43-opt --with-boost-incpath=/afs/cern.ch/sw/lcg/external/Boost/1.42.0_python2.5/x86_64-slc5-gcc43-opt/include/boost-1_42
Building in /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/build/AGILe-1.1.6: make -j2 && make -j2 install
All done. Now set some variables in your shell:
In sh shell:
export PATH=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/bin:$PATH
export TEXMFHOME=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/texmf:$TEXMFHOME
export HOMETEXMF=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/texmf:$HOMETEXMF
export LD_LIBRARY_PATH=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib:/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt/lib:/afs/cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages:$PYTHONPATH
. /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/rivet-completion
. /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/AGILe/agile-completion
In csh shell:
setenv PATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/bin:$PATH
setenv TEXMFHOME /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/texmf:$TEXMFHOME
setenv HOMETEXMF /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/share/Rivet/texmf:$HOMETEXMF
setenv LD_LIBRARY_PATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib:/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt/lib:/afs/cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt/lib:$LD_LIBRARY_PATH
setenv PYTHONPATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages:$PYTHONPATH
These can be used by sourcing, e.g.
source rivetenv.sh
or
source rivetenv.csh
76.869u 32.490s 2:14.04 81.5% 0+0k 0+0io 2065pf+0w
[lxplus307] ~/scratch0/Rivetlocal $ rivet --help
usage: Run Rivet analyses on inputted events from file or Unix pipe
Examples:
rivet [options] <hepmcfile>
my_generator -o myfifo & \ rivet [options] myfifo
agile-runmc <genname> -n 100k | rivet [options]
ENVIRONMENT:
* RIVET_ANALYSIS_PATH: list of paths to be searched for plugin
analysis libraries at runtime
* RIVET_REF_PATH: list of paths to be searched for reference
data files
* RIVET_INFO_PATH: list of paths to be searched for analysis
metadata files
options:
--version show program's version number and exit
-h, --help show this help message and exit
-n NUM, --nevts=NUM max number of events to read.
-a ANA, --analysis=ANA
add an analysis to the processing list.
-A, --all-analyses add all analyses to the processing list.
--list-analyses show the list of available analyses' names. With -V,
it shows the descriptions, too
--list-used-analyses list the analyses used by this command (after
subtraction of inappropriate ones)
--show-analysis=SHOW_ANALYSES
show the details of an analysis
--runname=NAME give an optional run name, to be prepended as a 'top
level directory' in histo paths
-H HISTOFILE, --histo-file=HISTOFILE
specify the output histo file path
-x XS, --cross-section=XS
specify the signal process cross-section in pb
-l NATIVE_LOG_STRS set a log level in the Rivet library
Verbosity control:
-V, --verbose print debug (very verbose) messages
-Q, --quiet be very quiet
PROBLEM::
agile-runmc is available but not working.
[lxplus307] ~/scratch0/Rivetlocal $ agile-runmc --help
Traceback (most recent call last):
File "/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/bin/agile-runmc", line 95, in ?
import AGILe
ImportError: No module named AGILe
I guess, problem could be related with the Python env, because it seems not defined.
[lxplus307] ~/scratch0/Rivetlocal $ echo $PYTHONPATH
PYTHONPATH: Undefined variable.
It looks for the below directory;
setenv PYTHONPATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages:$PYTHONPATH
And actually all the necessary things are already there;
[lxplus307] ~/scratch0/Rivetlocal/local/lib64/python2.4/site-packages $ ll
total 3010
-rw-r--r-- 1 ssen 17044 May 11 13:27 AGILe.py
-rw-r--r-- 1 ssen 28280 Jul 26 15:59 AGILe.pyc
-rwxr-xr-x 1 ssen 1340138 Jul 26 15:59 _AGILe.so
-rw-r--r-- 1 ssen 17867 Jan 7 2010 lighthisto.py
-rw-r--r-- 1 ssen 18371 Jul 26 15:52 lighthisto.pyc
-rw-r--r-- 1 ssen 23274 Jul 26 15:51 rivet.py
-rw-r--r-- 1 ssen 37746 Jul 26 15:52 rivet.pyc
-rwxr-xr-x 1 ssen 1596785 Jul 26 15:52 _rivet.so