From a47ec600cf279dc42529180e02435f7090692c9a Mon Sep 17 00:00:00 2001 From: Florian Uhlig Date: Wed, 15 Dec 2021 10:19:10 +0100 Subject: [PATCH] Add missing streamer The streamer is needed to write/read a map to/from a ROOT file. The structure is the input neded by the FairRoot AlignmemtHandler. --- alignment/AlignmentLinkDef.h | 18 ++++++++++++++++++ alignment/CMakeLists.txt | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 alignment/AlignmentLinkDef.h diff --git a/alignment/AlignmentLinkDef.h b/alignment/AlignmentLinkDef.h new file mode 100644 index 0000000000..3700dc8401 --- /dev/null +++ b/alignment/AlignmentLinkDef.h @@ -0,0 +1,18 @@ +/******************************************************************************** + * Copyright (C) 2021 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * + * * + * This software is distributed under the terms of the * + * GNU Lesser General Public Licence (LGPL) version 3, * + * copied verbatim in the file "LICENSE" * + ********************************************************************************/ +#ifdef __CINT__ + +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; + +/* clang-format off */ +#pragma link C++ class map+; +/* clang-format on */ + +#endif diff --git a/alignment/CMakeLists.txt b/alignment/CMakeLists.txt index 92cd31656f..38c513a5ec 100644 --- a/alignment/CMakeLists.txt +++ b/alignment/CMakeLists.txt @@ -36,5 +36,10 @@ target_link_libraries(${target} PUBLIC Geom ) +fairroot_target_root_dictionary(${target} + HEADERS ${headers} + LINKDEF AlignmentLinkDef.h +) + install(TARGETS ${target} LIBRARY DESTINATION ${PROJECT_INSTALL_LIBDIR}) install(FILES ${headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})