R3BRoot Installation

Distribution

R3BRoot can be obtained from the central git repository. To clone it from GitHub:

git clone https://github.com/R3BRootGroup/R3BRoot.git
cd R3BRoot
git checkout dev
git clone https://github.com/R3BRootGroup/macros.git
cd macros
git checkout dev


Refer also to the Update page in order to keep your working copy up-to-date.


Installation procedure

Linking with UCESB (optional)

In case you want to run R3BRoot as analysis tool in combination with UCESB, you need to set UCESB_DIR environment variable (prior to execution of cmake in next section):

export UCESB_DIR=PATH_TO_UCESB_DIRECTORY


If the configuration was successful, you should see following string in the cmake output:
"-- Looking for ucesb... - found ucesb".
For details on how to obtain and install UCESB, you can refer to this readme.


On GSI Linux computer (with access to /cvmfs directory)

After checking out the source code from git:

  1. mkdir build
  2. cd build
  3. export SIMPATH=/cvmfs/fairroot.gsi.de/fairsoft/jun19p1
  4. export FAIRROOTPATH=/cvmfs/fairroot.gsi.de/fairroot/v18.2.1_fairsoft-jun19p1
  5. cmake PATH_TO_R3BROOT_SOURCE_CODE
  6. make

External computer

After installing FairSoft and FairRoot, and checking out the source code from svn, following steps are needed to compile R3BRoot:

  1. mkdir build
  2. cd build
  3. export SIMPATH=YOUR_PREFIX/FairSoft/build-FAIRSOFT_VERSION
  4. export FAIRROOTPATH=YOU_PREFIX/FairRoot/install-FAIRROOT_VERSION
  5. cmake PATH_TO_R3BROOT_SOURCE_CODE
  6. make


Login script

In order to run the simulation / analysis macros of R3BRoot, each Terminal session has to be configured by running the script from the build directory:

cd YOUR_PREFIX/build
. ./config.sh


This will automatically check, whether the same system version was used during the compilation and execution and will set all necessary environment variables.