aliBuild
can be used to setup the package. To obtain aliBuild
and related packages, please follow https://alice-doc.github.io/alice-analysis-tutorial/building/. To build from the master
branch, do
aliBuild init MCStepLogger@master --defaults o2
aliBuild build MCStepLogger --defaults o2
or use one of the available release tags.
After that, enter the environment with
alienv enter MCStepLogger/latest
and you are good to go.
Dependencies are ROOT
and Boost
as well as CMake
in order to build.
CMake
(version >= 3.15.0) is used to build this project. Please install ROOT and Boost. For both the versions that should allow the built can be derived from alidist. After that just set the environment variables ROOTSYS
and BOOST_ROOT
to the root directories of the ROOT
and Boost
installations, respectively. Finally, run
mkdir -p $BUILD_DIR $INSTALL_DIR; cd $BUILD_DIR
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR $MCSTEPLOGGER_SOURCE_DIR
make install
That leaves you with
- libraries at
$INSTALL_DIR/lib
- headers at
$INSTALL_DIR/include
- the executable
$INSTALL_DIR/bin/mcStepAnalysis
(usage explained here)
Additional options
- In order to disable the built of the
MCReplay
engine, pass-MCStepLogger_BUILD_MCReplay=OFF
at configure time. - To enable testing, pass
-MCStepLogger_BUILD_TESTS=ON
at configure time.