FedraVMC Installion Notes Version 1.9

From AstroNuWiki
Jump to: navigation, search

Order to install the software.

CLHEP

cd /cern/
tar zxvf clhep-2.0.3.2-src.tgz
mv 2.0.3.2/CLHEP /cern/CLHEP-2.0.3.2
cd /cern/CLHEP-2.0.3.2
./configure --prefix=/cern/CLHEP-2.0.3.2
make
make install

Geant4

  • Get source file from [1]
    • Tips
cd /cern/
tar zxvf geant4.9.1.p01.gtar.gz
cd geant4.9.1.p01
mkdir data
cd data

Download data files from [2] and unpack them into data directory

cd /cern/geant4.9.1.p01
./Configure -build

Answer yes to

G3toG4
Shared object library creation (default static)
All Geant4 header files in the include directory
cp .config/bin/Linux-g++/env.csh /cern/geant4.9.1.p01
source env.csh
cd /cern/geant4.9.1.p01/source
make includes
cd /cern/geant4.9.1.p01

ROOT

cd /cern
tar zxf root_v5.18.00.source.tar.gz
mkdir root_v5.18.00
mv root root_v5.18.00/source
cd /cern/root_v5.18.00/source
csh: setenv ROOTSYS /cern/root_v5.18.00
sh:  export ROOTSYS=/cern/root_v5.18.00
./configure linux --enable-unuran --enable-table --disable-builtin-pcre \
--disable-builtin-freetype --enable-qtgsi --enable-mysql  --enable-python \
--enable-explicitlink --enable-qt --enable-mathcore --enable-mathmore --enable-reflex \
--enable-cintex --enable-minuit2 --enable-roofit --enable-g4root --enable-pythia6 \
--with-g4-incdir=/cern/geant4.9.1.p01/include \
--with-g4-libdir=/cern/geant4.9.1.p01/lib/Linux-g++ \
--with-pythia6-libdir=/cern/pythia6 \
--with-clhep-incdir=/cern/CLHEP-2.0.3.2/include
make
make install

VGM

  • Download with
svn co https://vgm.svn.sourceforge.net/svnroot/vgm/tags/v3-00/vgm vgm.3.00 
    • Tips:
cd /cern/vgm.3.00

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

Then

  cd $VGM_INSTALL/packages
  make

Geant4 VMC

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

Follow instructions at VirtualMC.html

FLUKA VMC

  • Download from [3] (register and get)

or simply take from astronu:/cern/fluka2006.3b.tgz

  • put it to /cern
  • Download Fluka VMC with
svn co https://alisoft.cern.ch/fluka_vmc/tags/v0-1 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

FedraVMC

  • get v_dev version
  • setup all paths including LD_LIBRARY_PATH
make

edit the script /cern/geant4_vmc.trunk/examples/macro/run_fluka.sh removing cd $WORKDIR line and run it. After that you can run ./VMCSim --setup=flConfig.C