KaliVeda is an object-oriented toolkit based on ROOT for the analysis of heavy-ion collisions in the Fermi energy domain.
See INSTALL file for details. CMake (v2.8.11 or greater) is required.
Available from Launchpad package repository. To use:
$ sudo apt-add-repository ppa:kaliveda-dev/ppa-kaliveda
$ sudo apt-get update
The 'kaliveda' command launches a ROOT session with dynamic shared library paths set up so that all classes will be loaded as & when needed by the ROOT interpreter (either Cint or Cling). Example of use:
$ kaliveda
------------------------------------------------------------------------
| Welcome to ROOT 6.02/05 http://root.cern.ch |
| (c) 1995-2014, The ROOT Team |
| Built for linuxx8664gcc |
| From heads/v6-02-00-patches@v6-02-05-9-gb9b9ba2, Feb 16 2015, 17:35:00 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------------
Info in <KVBase::InitEnvironment>: Initialising KaliVeda environment...
Info in <KVBase::InitEnvironment>: Using KaliVeda version 1.10/00 built on 2015-02-24
Info in <KVBase::InitEnvironment>: (git : bzr/1.10/heads/master@feba2a0)
root [0]
$ g++ `root-config --cflags` -I`kaliveda-config --incdir` -c MyCode.cxx
$ g++ `root-config --ldflags` MyCode.o -L`kaliveda-config --libdir` `kaliveda-config --libs` `root-config --glibs`
Given a C++ file using KaliVeda classes such as toto.cpp:
#include "KVBase.h"
int main()
{
KVBase::InitEnvironment();
return 0;
}
You can compile and link this executable with the following CMakeLists.txt file:
cmake_minimum_required(VERSION 2.8.11)
project(toto)
find_package(KaliVeda REQUIRED)
include(${KALIVEDA_USE_FILE})
find_package(ROOT REQUIRED)
include(${ROOT_USE_FILE})
add_executable(toto toto.cpp)
target_link_libraries(toto ${KALIVEDA_LIBRARIES})
Build the executable 'toto' by doing:
$ mkdir build && cd build
$ cmake ..
$ make
See the wiki page https://github.com/kaliveda-dev/kaliveda/wiki/Using-KaliVeda-in-a-CMake-based-project for more detailed information.
See the website http://indra.in2p3.fr/kaliveda