Skip to content

Commit fc952f4

Browse files
add example loading an entire RNTuple into a LLAMA view
1 parent 2c89742 commit fc952f4

File tree

3 files changed

+3109
-0
lines changed

3 files changed

+3109
-0
lines changed

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ if (LLAMA_BUILD_EXAMPLES)
6868
message(WARNING "Could not find alpaka. Alpaka examples are disabled.")
6969
endif()
7070

71+
# ROOT examples
72+
find_package(ROOT QUIET)
73+
if (ROOT_FOUND)
74+
add_subdirectory("examples/hep_rntuple")
75+
endif()
76+
7177
# CUDA examples
7278
include(CheckLanguage)
7379
check_language(CUDA)

examples/hep_rntuple/CMakeLists.txt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cmake_minimum_required (VERSION 3.15)
2+
project(llama-hep_rntuple)
3+
4+
set(CMAKE_CXX_STANDARD 17)
5+
6+
find_package(ROOT REQUIRED)
7+
if (NOT TARGET llama::llama)
8+
find_package(llama REQUIRED)
9+
endif()
10+
add_executable(${PROJECT_NAME} hep_rntuple.cpp)
11+
target_link_libraries(${PROJECT_NAME} PRIVATE ROOT::Hist ROOT::Graf ROOT::Gpad ROOT::ROOTNTuple llama::llama)

0 commit comments

Comments
 (0)