You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Installing the DST Tools

Preliminaries

The DST maker and HpsEvent API require the following packages before they can be built: 

Installing CMake

It is likely your system already has a recent enough version of CMake installed on it.

If not then follow the Installing CMake guide to build it.

Installing LCIO

cd workdir
svn co svn://svn.freehep.org/lcio/trunk lcio-trunk
cd lcio-trunk
mkdir build
cd build
cmake -DINSTALL_DOC=OFF -DINSTALL_JAR=OFF ..
make
cd ..
export LCIO=$PWD

Installing ROOT

Follow the instructions at the ROOT website to install it.  Then you will want to source the setup script which will set the ROOTSYS variable.

. bin/thisroot.sh

Installing GBL

cd workdir
svn checkout http://svnsrv.desy.de/public/GeneralBrokenLines/tags/V01-16-02 GeneralBrokenLines
cd GeneralBrokenLines/cpp
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=../.. ..
make
cd ../..
export GBL_DIR=$PWD

Getting the Source Code

The project is stored in a public github repository. The code can be "cloned" i.e. copied to a users local machine by issuing the following commands from a terminal.

cd /path/to/workdir
git clone https://github.com/omar-moreno/hps-dst.git

A github account is not required to clone the source code.

 Building the Project

Before the project is built, the following environment variables need to be set.

ROOTSYS=/path/to/root
GBL_DIR=/path/to/gbl/cpp
LCIO=/path/to/lcio

Then the project should be built as follows.

cd hps-dst/ 
mkdir build; cd build
cmake ../
make

This will create the binaries in the build/bin directory along with the shared library HpsEvent.so in the build/lib directory, which contains the ROOT dictionary and HPS Event API.  

The API documentation can be generated as follows: 

make doc

This will generate both LaTeX and html documentation in the directory hps-dst/doc.

  • No labels