Skip to content

Commit

Permalink
Make sure that weights are stored in struct (#710)
Browse files Browse the repository at this point in the history
Otherwise ROOT does something clever and simply stores the float without
the struct. Which makes the switch over a bit less transparent.
  • Loading branch information
tmadlener authored Dec 2, 2024
1 parent 9942d56 commit 497b1be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/podio/detail/LinkCollectionImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions src/selection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@
<class name="podio::UserDataCollection<uint32_t>"/>
<class name="podio::UserDataCollection<uint64_t>"/>

<class name="podio::LinkData"/>
<class name="std::vector<podio::LinkData>"/>

</selection>
</lcgdict>

0 comments on commit 497b1be

Please sign in to comment.