Skip to content

Commit

Permalink
Make sure that weights are stored in struct
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 committed Nov 19, 2024
1 parent 6a547a8 commit 20046b2
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 20046b2

Please sign in to comment.