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); + } };