From 3bbef1ccc14765c5ab732886a05c804c6f4130e9 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Fri, 13 Oct 2023 10:35:03 +0200 Subject: [PATCH] Remove EventStore from UserDataCollection doc --- doc/userdata.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/userdata.md b/doc/userdata.md index 544c79c75..b2df04568 100644 --- a/doc/userdata.md +++ b/doc/userdata.md @@ -6,17 +6,18 @@ data* via the `podio::UserDataCollection`. It gives the user access to a the data stored in the EDM classes for each event. ## Example usage -Creating or getting a `UserDataCollection` via the `EventStore` works the same -as with any other collection of the EDM via the `create` or `get` functions: +Creating or getting a `UserDataCollection` via the `Frame` works the same +as with any other collection of the EDM via the `put` or `get` functions: ```cpp #include "podio/UserDataCollection.h" -// Create a collection -auto& userFloats = store.create>("userFloats"); +// Create a collection and put it into a Frame +userFloats = podio::UserDataCollection(); +frame.put(std::move(userFloats), "userFloats"); // get a collection -const auto& userData = store.get>("userFloats"); +const auto& userData = frame.get>("userFloats"); ``` The interface of the `UserDataCollection` is similar to a basic version of the