Skip to content

Commit

Permalink
Add missing streamer
Browse files Browse the repository at this point in the history
The streamer is needed to write/read a map<string, TGeoHMatrix> to/from a ROOT
file. The structure is the input neded by the FairRoot AlignmemtHandler.
  • Loading branch information
fuhlig1 authored and dennisklein committed Dec 17, 2021
1 parent 42a8ef6 commit a47ec60
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions alignment/AlignmentLinkDef.h
Original file line number Diff line number Diff line change
@@ -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<string, TGeoHMatrix>+;
/* clang-format on */

#endif
5 changes: 5 additions & 0 deletions alignment/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit a47ec60

Please sign in to comment.