Skip to content

Commit 92c2668

Browse files
committed
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.
1 parent 9501655 commit 92c2668

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

include/podio/detail/LinkCollectionImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class LinkCollection : public podio::CollectionBase {
188188
}
189189

190190
const std::string_view getDataTypeName() const override {
191-
return "float";
191+
return "podio::LinkData";
192192
}
193193

194194
bool isSubsetCollection() const override {

src/selection.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@
4343
<class name="podio::UserDataCollection<uint32_t>"/>
4444
<class name="podio::UserDataCollection<uint64_t>"/>
4545

46+
<class name="podio::LinkData"/>
47+
<class name="std::vector<podio::LinkData>"/>
48+
4649
</selection>
4750
</lcgdict>

0 commit comments

Comments
 (0)