From 05455b2ef8e0e91d3117fb62e6f77ccde32db1b5 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:53:29 +0200 Subject: [PATCH] DPL: prototype for getting CCDB Metadata --- Framework/Core/include/Framework/InputRecord.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Framework/Core/include/Framework/InputRecord.h b/Framework/Core/include/Framework/InputRecord.h index 5f33d018e5950..825a724c91039 100644 --- a/Framework/Core/include/Framework/InputRecord.h +++ b/Framework/Core/include/Framework/InputRecord.h @@ -40,6 +40,9 @@ namespace o2::framework { +// Wrapper class to get CCDB metadata +struct CCDBMetadataExtractor{}; + struct InputSpec; class InputSpan; class CallbackService; @@ -461,6 +464,14 @@ class InputRecord } } + template + std::map &get(R binding, int part = 0) const + requires std::same_as + { + // 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 {