From 92c26687ef5ca313073a977a4da85ba849b6d3c8 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Tue, 19 Nov 2024 20:54:30 +0100 Subject: [PATCH] Make sure that weights are stored in struct Otherwise ROOT does something clever and simply stores the float without the struct. Which makes the switch over a bit less transparent. --- include/podio/detail/LinkCollectionImpl.h | 2 +- src/selection.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/podio/detail/LinkCollectionImpl.h b/include/podio/detail/LinkCollectionImpl.h index fe1a61ace..de62b2c4f 100644 --- a/include/podio/detail/LinkCollectionImpl.h +++ b/include/podio/detail/LinkCollectionImpl.h @@ -188,7 +188,7 @@ class LinkCollection : public podio::CollectionBase { } const std::string_view getDataTypeName() const override { - return "float"; + return "podio::LinkData"; } bool isSubsetCollection() const override { diff --git a/src/selection.xml b/src/selection.xml index 82acdc661..477c9f7fa 100644 --- a/src/selection.xml +++ b/src/selection.xml @@ -43,5 +43,8 @@ + + +