Skip to content

Building EvioTool

Maurik Holtrop edited this page Jan 6, 2021 · 3 revisions

Building EvioTool

This tool uses a standard "cmake" build scheme. This includes a build of needed the EVIO and ET libraries.

Steps:

The libraries currently created are:

  • libevio
    • libeviocxx is no longer build, but can be turned on if you want. Edit the CMakeLists.txt.
  • libEvioTool
  • libHPSEvioReader

The executatble created are, amongst others:

  • EvioTool_Test
  • HPSEvioReader_Test
  • HPS_Trigger_Filter
  • evio2xml
  • eviocopy

Building your own code with EvioTool

By default a cmake install will put two packages in /lib/cmake, one for evio and one for both EvioTool and HPSEvioReader. To link to these pacakges in your own CMakeLists.txt file you want to include the following lines:

find_package(ROOT REQUIRED)
include(${ROOT_USE_FILE})
find_package(EvioTool CONFIG REQUIRED)

To make sure that cmake finds the packages when you run it on your own project, add CMAKE_PREFIX_PATH to point to your installation of EvioTool:

cmake -DCMAKE_PREFIX_PATH=<install-dir>/lib/cmake ..

Clone this wiki locally