Skip to content

Commit

Permalink
More verbose docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Apr 19, 2024
1 parent 32fe8af commit 978b0bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions utils/include/edm4hep/utils/ParticleIDUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,22 @@ class PIDHandler {
/// Retrieve the algoType for a given algorithm name
std::optional<int32_t> getAlgoType(const std::string& algoName) const;

/// Set the metadata information for the passed collection in the metadata Frame.
///
/// This also sets the algorithmType of all elements in the collection to the
/// one that is found in the meta information.
static void setAlgoInfo(podio::Frame& metadata, edm4hep::ParticleIDCollection& pidcoll, const std::string& collname,
const edm4hep::utils::ParticleIDMeta& pidMetaInfo);

/// Set the metadata information for a given collection name in the metadata Frame.
///
/// @note It is user responsibility to ensure that the meta information that
/// is passed here and the one that is present in the collection with the
/// given name is consisent
static void setAlgoInfo(podio::Frame& metadata, const std::string& collname,
const edm4hep::utils::ParticleIDMeta& pidMetaInfo);

/// Get the ParticleID meta information for a given collection name from the metadata Frame.
static std::optional<edm4hep::utils::ParticleIDMeta> getAlgoInfo(const podio::Frame& metadata,
const std::string& collName);
};
Expand Down

0 comments on commit 978b0bb

Please sign in to comment.