From 4b5c0a7cc6473ac278787f0471c188470d729bc6 Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Sat, 21 Sep 2024 00:25:19 -0400 Subject: [PATCH] Bring back JFactorySet::GetFactory We bring it back only in a minimal, deprecated form. We only do this because of some test cases in EICrecon that use this feature. --- src/libraries/JANA/JFactorySet.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libraries/JANA/JFactorySet.h b/src/libraries/JANA/JFactorySet.h index f4f80499e..ce96db52d 100644 --- a/src/libraries/JANA/JFactorySet.h +++ b/src/libraries/JANA/JFactorySet.h @@ -5,6 +5,7 @@ #pragma once #include +#include #include #include @@ -52,6 +53,13 @@ class JFactorySet { JEventLevel GetLevel() const { return mLevel; } void SetLevel(JEventLevel level) { mLevel = level; } + + template + [[deprecated]] + JFactory* GetFactory(const std::string& tag) const { + auto object_name = JTypeInfo::demangle(); + return GetFactory(object_name, tag); + } };