FedraVMC Installation Notes Version 2.1

From AstroNuWiki
Jump to: navigation, search

FedraVMC depends on the following number of software packages:

  • CLHEP version 2.0.3.2 (or higher)
  • Geant4 version 9.1.p03 (or higher)
  • PYTHIA version 6 4.09
  • ROOT version 5.21.04 (or higher)
  • VGM version 3.01
  • Geant4 VMC version trunk
  • FLUKA VMC version 0.3
  • FLUKA version 2008.3.2
  • Geant3 VMC version 1.9
  • Fedra version trunk

Order and Tips to install the software.

CLHEP

 For the latest versions of CLHEP you should install 'cmake' program
    • Tips:
cd /cern/
tar zxvf clhep-<version>.tgz
mkdir clhep_build
cd clhep_build
cmake -DCMAKE_INSTALL_PREFIX=/cern/CLHEP-<version> <source_code_dir>
make
make install
cd ../; rm -rf clhep_build

Geant4

  • Get source file from [1]
    • Tips
cd /cern/sources/
tar zxvf geant4.<version>.tar.gz
mkdir geant4_build
cd geant4_build
cmake -DCMAKE_INSTALL_PREFIX=/cern/geant4.<version> -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_G3TOG4=ON \
-DCLHEP_ROOT_DIR=/cern/CLHEP-<version>/ -DGEANT4_INSTALL_DATA_TIMEOUT=150000 \
/cern/sources/geant4.<version>

for using visualisation:

cmake -DCMAKE_INSTALL_PREFIX=/cern/geant4.<version> -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_G3TOG4=ON \
-DCLHEP_ROOT_DIR=/cern/CLHEP-<version>/ -DGEANT4_INSTALL_DATA_TIMEOUT=150000 -DGEANT4_USE_GDML=ON \
-DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_BUILD_EXAMPLES=ON \
-DGEANT4_BUILD_MULTITHREADED=ON /cern/sources/geant4.<version>
make
make install
cd ../; rm -rf geant4_build

you may have a look on an example of questions/answers we proceeded here

PYTHIA

To build the event generator interfaces for Pythia6, you first have to get the pythia libraries. You can import Pythia6 and the makefiles to build the Pythia6 shared library on several platforms from:

  ftp://root.cern.ch/root/pythia6.tar.gz

The original sources (Pythia6409) can be found via Lund FTP server. Note that even in the case when you use your own version of Pythia6 you still need to use the following 2 small files to build the shared library. For more details on the build procedure, see an example in the file makePythia6.linux.

  pythia6_common_address.c
  tpythia6_called_from_cc.F

More information about Pythia itself is available from:

  [http://www.thep.lu.se/~torbjorn/Pythia.html

We assume in what follows you install pythia into /cern/pythia6

ROOT

If you are using Debian Linux, you should install additional packages with the help of aptitude or dselect programs:

libjpeg8-dev
libpng12-dev
libtiff5-dev
libgif-dev
libglu1-mesa-dev
libxext-dev
libxpm-dev
libxft-dev
libc6-dev-i386 (for 64 bits OS)
    • Tips:
cd /cern
tar zxf root_<version>.source.tar.gz
mv root root_<vervsion>
cd /cern/root_<version>
csh: setenv ROOTSYS /cern/root_<version>
sh:  export ROOTSYS=/cern/root_<version>
./configure linux|linuxx8664gcc --enable-unuran --enable-table --disable-builtin-pcre \
--enable-qtgsi --enable-explicitlink --enable-qt \
--enable-minuit2 --enable-roofit \
--with-pythia6-libdir=/cern/pythia6
make
make install

Using cmake:

cd /cern/sources/
tar zxf root.<version>.tar.gz
mkdir root_build
cd root_build
cmake -DCMAKE_INSTALL_PREFIX=/cern/root-<version> -DCMAKE_BUILD_TYPE=Release \
-DPYTHIA6_LIBRARY=/cern/pythia6/libPythia6.so -Dbuiltin_freetype=ON -Dminuit2=ON -Droofit=ON \
/cern/sources/root
make
make install
cd ../; rm -rf root_build

VGM

  • Download with
svn co https://vgm.svn.sourceforge.net/svnroot/vgm/trunk/vgm
  • Tips:
cd /cern/vgm

The following environment variables have to be set by user:

  VGM_INSTALL     - path to the VGM installation
  VGM_SYSTEM      - platform (Linux-g++, SunOS, DEC-cxx, HP-aCC)
  CLHEP_BASE_DIR  - path to the CLHEP installation

PATH & LD_LIBRARY_PATH add paths to your root

Then

  cd $VGM_INSTALL/packages
  make

Geant4 VMC

  • Download trunk version
 svn co https://root.cern.ch/svn/geant4_vmc/trunk geant4_vmc 

The following environment variables that defines the paths to used systems have to be set:

 ROOTSYS         - Path to Root
 CLHEP_BASE_DIR  - Path to CLHEP
 G4INSTALL       - Path to Geant4
 VGM_INSTALL     - Path to VGM (optional)
 USE_VGM         - Set to 1 to build VGM dependent code

Install geant4_vmc:

 cd geant4_vmc/
 make

FLUKA VMC

  • Download from [2] (register and get)
  • put it to /cern
  • Download Fluka VMC with
svn co https://alisoft.cern.ch/fluka_vmc/tags/v0-3 fluka_vmc 

The following environment variables that defines the paths to used systems have to be set:

ROOTSYS Path to Root
FLUPRO  Path to FLUKA
FLUVMC  Path to Fluka VMC
cd fluka_vmc/source
make

Geant3 VMC

Development version (svn trunk):

svn co https://root.cern.ch/svn/geant3/trunk geant3 
cd geant3
gmake

Fedra

Follow FEDRA (password protected) for instructions

FedraVMC

  • get current version
  • setup all paths including LD_LIBRARY_PATH (see source_me.csh_example provided)
make