Skip to content

Commit

Permalink
add example loading an entire RNTuple into a LLAMA view
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed May 17, 2021
1 parent 2c89742 commit fc952f4
Show file tree
Hide file tree
Showing 3 changed files with 3,109 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ if (LLAMA_BUILD_EXAMPLES)
message(WARNING "Could not find alpaka. Alpaka examples are disabled.")
endif()

# ROOT examples
find_package(ROOT QUIET)
if (ROOT_FOUND)
add_subdirectory("examples/hep_rntuple")
endif()

# CUDA examples
include(CheckLanguage)
check_language(CUDA)
Expand Down
11 changes: 11 additions & 0 deletions examples/hep_rntuple/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cmake_minimum_required (VERSION 3.15)
project(llama-hep_rntuple)

set(CMAKE_CXX_STANDARD 17)

find_package(ROOT REQUIRED)
if (NOT TARGET llama::llama)
find_package(llama REQUIRED)
endif()
add_executable(${PROJECT_NAME} hep_rntuple.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE ROOT::Hist ROOT::Graf ROOT::Gpad ROOT::ROOTNTuple llama::llama)
Loading

0 comments on commit fc952f4

Please sign in to comment.