Skip to content

Commit 05455b2

Browse files
committed
DPL: prototype for getting CCDB Metadata
1 parent 7442ab6 commit 05455b2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Framework/Core/include/Framework/InputRecord.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
namespace o2::framework
4141
{
4242

43+
// Wrapper class to get CCDB metadata
44+
struct CCDBMetadataExtractor{};
45+
4346
struct InputSpec;
4447
class InputSpan;
4548
class CallbackService;
@@ -461,6 +464,14 @@ class InputRecord
461464
}
462465
}
463466

467+
template <typename T = DataRef, typename R>
468+
std::map<std::string, std::string> &get(R binding, int part = 0) const
469+
requires std::same_as<T, CCDBMetadataExtractor>
470+
{
471+
// FIXME: needs proper implementation by Ruben
472+
return getRef(binding, part);
473+
}
474+
464475
/// Helper method to be used to check if a given part of the InputRecord is present.
465476
[[nodiscard]] bool isValid(std::string const& s) const
466477
{

0 commit comments

Comments
 (0)