Skip to content

FableQuentin/kaliveda

 
 

Repository files navigation

KaliVeda Data Analysis Toolkit {#index}

KaliVeda is an object-oriented toolkit based on ROOT for the analysis of heavy-ion collisions in the Fermi energy domain.

Build & Install

See http://indra.in2p3.fr/kaliveda

Use in ROOT interactive session

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 KaliVeda 1.12/05             github:kaliveda-dev/kaliveda |
| (c) 2002-2022, The KaliVeda development team                         |
|                                                                      |
| Built with ROOT 6.24.06 on 2022-03-18, 10:11:25                      |
| From heads/master@release-1.12.05-g209ab9c0                          |
| See http://indra.in2p3.fr/kaliveda for help                          |
\----------------------------------------------------------------------/

kaliveda [0] 

Compiling & linking with KaliVeda & ROOT libraries

$ g++ `kaliveda-config --cflags` -c MyCode.cxx
$ g++ MyCode.o `kaliveda-config --linklibs` 

Use in CMake-based project

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 3.5)
project(toto)
find_package(KaliVeda REQUIRED)
include(${KALIVEDA_USE_FILE})
find_package(ROOT REQUIRED)
include(SetUpROOTBuild)
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.

More information

See the website http://indra.in2p3.fr/kaliveda

About

KaliVeda is an object-oriented toolkit based on ROOT for the analysis of heavy-ion collisions in the Fermi energy domain.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 83.9%
  • Fortran 7.0%
  • Shell 4.4%
  • C 3.1%
  • CMake 1.5%
  • CSS 0.1%