Software installation

Barrel DIRC prototype installation

git clone https://github.com/rdom/prtdirc
git clone https://github.com/rdom/prttools

cd prtdirc
mkdir build
cd build
cmake ..
make -j4

EIC DIRC prototype installation

git clone https://github.com/rdom/eicdirc.git

cd eicdirc
mkdir build
cd build
cmake -DGeant4_DIR=/path/to/geant4/installation ..
make -j4

geant4 installation

wget  http://cern.ch/geant4-data/releases/geant4.10.06.p03.tar.gz
tar zxvf geant4.10.06.p03.tar.gz
cd geant4.10.06.p03
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/path/to/geant4/installation -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON ..

make -j4
make install

QT4 installation

wget https://download.qt.io/official_releases/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.tar.xz

...
./configure -prefix /path/to/qt/installation -opensource -confirm-license
make -j4
make install
...

GSI "specialties" (for lx-pool)

export OGLHOME=/usr/X11R6
export G4VIS_BUILD_OPENGLX_DRIVER=1
export G4VIS_USE_OPENGLX=1
export G4VIS_BUILD_OPENGLXM_DRIVER=1
export G4VIS_USE_OPENGLXM=1