Skip to content

Commit

Permalink
DPL: prototype for getting CCDB Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Oct 7, 2024
1 parent 7442ab6 commit 05455b2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Framework/Core/include/Framework/InputRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
namespace o2::framework
{

// Wrapper class to get CCDB metadata
struct CCDBMetadataExtractor{};

struct InputSpec;
class InputSpan;
class CallbackService;
Expand Down Expand Up @@ -461,6 +464,14 @@ class InputRecord
}
}

template <typename T = DataRef, typename R>
std::map<std::string, std::string> &get(R binding, int part = 0) const
requires std::same_as<T, CCDBMetadataExtractor>
{
// FIXME: needs proper implementation by Ruben
return getRef(binding, part);
}

/// Helper method to be used to check if a given part of the InputRecord is present.
[[nodiscard]] bool isValid(std::string const& s) const
{
Expand Down

0 comments on commit 05455b2

Please sign in to comment.