Skip to content

Commit

Permalink
Add documentation to ParamStorage members
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 12, 2024
1 parent 8566bab commit f213527
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/podio/utilities/RootHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,20 @@ namespace root_utils {
ParamStorage(const std::vector<std::string>& ks, const std::vector<std::vector<T>>& 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<std::string> keys{};
std::vector<std::vector<T>> values{};
std::vector<std::string> keys{}; ///< The keys for this type
std::vector<std::vector<T>> values{}; ///< The values for this type

private:
std::vector<std::string>* m_keysPtr{nullptr};
Expand Down

0 comments on commit f213527

Please sign in to comment.