From c3d32c42fb289e6f29996e262ba94c7c0efff50c Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <frank.winklmeier@cern.ch>
Date: Fri, 18 Oct 2019 15:56:42 +0200
Subject: [PATCH] EventUtils: Replace beginRun() with start()

The `beginRun` method is deprecated. One-time initializations before the event loop
need to be done in `start`.
---
 .../EventUtils/src/ParticleSelectionAlg.cxx               | 4 ++--
 .../AnalysisCommon/EventUtils/src/ParticleSelectionAlg.h  | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSelectionAlg.cxx b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSelectionAlg.cxx
index 71aa8ee757f..e66c049af8e 100644
--- a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSelectionAlg.cxx
+++ b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSelectionAlg.cxx
@@ -176,9 +176,9 @@ StatusCode ParticleSelectionAlg::finalize()
 
 
 
-StatusCode ParticleSelectionAlg::beginRun()
+StatusCode ParticleSelectionAlg::start()
 {
-  ATH_MSG_DEBUG ("BeginRun " << name() << "...");
+  ATH_MSG_DEBUG ("start " << name() << "...");
 
   // Nothing to be done here, if cut-flow bookkeeping was not requested
   if (!m_doCutFlow){ return StatusCode::SUCCESS; }
diff --git a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSelectionAlg.h b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSelectionAlg.h
index bcc5633c1f6..3c17dd6afa9 100644
--- a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSelectionAlg.h
+++ b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSelectionAlg.h
@@ -52,17 +52,17 @@ class ParticleSelectionAlg
 
 
   /// Athena algorithm's initalize hook
-  virtual StatusCode  initialize();
+  virtual StatusCode  initialize() override;
 
   /// Athena algorithm's beginRun hook
   /// (called once before running over the events, after initialize)
-  virtual StatusCode  beginRun();
+  virtual StatusCode  start() override;
 
   /// Athena algorithm's execute hook
-  virtual StatusCode  execute();
+  virtual StatusCode  execute() override;
 
   /// Athena algorithm's finalize hook
-  virtual StatusCode  finalize();
+  virtual StatusCode  finalize() override;
 
 
  private:
-- 
GitLab