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