From 2876b45be64fcf8bb820f247d6c385608ac498aa Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Wed, 3 Jul 2024 16:34:54 -0400 Subject: [PATCH] Fixes for backwards compatibility --- .gitignore | 1 + src/libraries/JANA/JEventSource.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 14d5f69f6..09a7b4bb5 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,7 @@ docs/latex/* *.swp cmake-build*/ .idea/* +.cache # PODIO generated artifacts src/examples/PodioExample/datamodel/* diff --git a/src/libraries/JANA/JEventSource.h b/src/libraries/JANA/JEventSource.h index 457929896..569c7ba13 100644 --- a/src/libraries/JANA/JEventSource.h +++ b/src/libraries/JANA/JEventSource.h @@ -127,6 +127,11 @@ class JEventSource : public jana::omni::JComponent, public jana::omni::JHasOutpu } } + [[deprecated("Replaced by JEventSource::DoOpen()")]] + virtual void DoInitialize() { + DoOpen(); + } + virtual void DoOpen(bool with_lock=true) { if (with_lock) { std::lock_guard lock(m_mutex);