diff --git a/include/podio/utilities/RootHelpers.h b/include/podio/utilities/RootHelpers.h index 8e3118b4d..14b27876e 100644 --- a/include/podio/utilities/RootHelpers.h +++ b/include/podio/utilities/RootHelpers.h @@ -57,18 +57,20 @@ namespace root_utils { ParamStorage(const std::vector& ks, const std::vector>& vs) : keys(ks), values(vs) { } + /// Get a pointer to the stored keys for binding it to a TBranch auto keysPtr() { m_keysPtr = &keys; return &m_keysPtr; } + /// Get a pointer to the stored vectors for binding it to a TBranch auto valuesPtr() { m_valuesPtr = &values; return &m_valuesPtr; } - std::vector keys{}; - std::vector> values{}; + std::vector keys{}; ///< The keys for this type + std::vector> values{}; ///< The values for this type private: std::vector* m_keysPtr{nullptr};