From cd812373bed932c73afb503e82d2de01cb84b44b Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 15 Mar 2024 09:39:30 +0100 Subject: [PATCH] Set cardinality to 1 in a few algorithms --- test/k4FWCoreTest/src/components/TestUniqueIDGenSvc.cpp | 4 +++- .../src/components/k4FWCoreTest_AlgorithmWithTFile.cpp | 2 ++ .../src/components/k4FWCoreTest_HelloWorldAlg.cpp | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/test/k4FWCoreTest/src/components/TestUniqueIDGenSvc.cpp b/test/k4FWCoreTest/src/components/TestUniqueIDGenSvc.cpp index 00d5b677..3bc07bb8 100644 --- a/test/k4FWCoreTest/src/components/TestUniqueIDGenSvc.cpp +++ b/test/k4FWCoreTest/src/components/TestUniqueIDGenSvc.cpp @@ -21,7 +21,9 @@ DECLARE_COMPONENT(TestUniqueIDGenSvc) TestUniqueIDGenSvc::TestUniqueIDGenSvc(const std::string& aName, ISvcLocator* aSvcLoc) - : Gaudi::Algorithm(aName, aSvcLoc) {} + : Gaudi::Algorithm(aName, aSvcLoc) { + +} TestUniqueIDGenSvc::~TestUniqueIDGenSvc() {} diff --git a/test/k4FWCoreTest/src/components/k4FWCoreTest_AlgorithmWithTFile.cpp b/test/k4FWCoreTest/src/components/k4FWCoreTest_AlgorithmWithTFile.cpp index 8448e060..d93b2347 100644 --- a/test/k4FWCoreTest/src/components/k4FWCoreTest_AlgorithmWithTFile.cpp +++ b/test/k4FWCoreTest/src/components/k4FWCoreTest_AlgorithmWithTFile.cpp @@ -28,6 +28,8 @@ k4FWCoreTest_AlgorithmWithTFile::k4FWCoreTest_AlgorithmWithTFile(const std::stri : Gaudi::Algorithm(aName, aSvcLoc) { declareProperty("mcparticles", m_mcParticleHandle, "Dummy Particle collection (output)"); declareProperty("trackhits", m_simTrackerHitHandle, "Dummy Hit collection (output)"); + // Set Cardinality to 1 because this algorithm is not prepared to run in parallel + setProperty("Cardinality", 1).ignore(); } k4FWCoreTest_AlgorithmWithTFile::~k4FWCoreTest_AlgorithmWithTFile() {} diff --git a/test/k4FWCoreTest/src/components/k4FWCoreTest_HelloWorldAlg.cpp b/test/k4FWCoreTest/src/components/k4FWCoreTest_HelloWorldAlg.cpp index 380a4bec..a576a298 100644 --- a/test/k4FWCoreTest/src/components/k4FWCoreTest_HelloWorldAlg.cpp +++ b/test/k4FWCoreTest/src/components/k4FWCoreTest_HelloWorldAlg.cpp @@ -22,7 +22,10 @@ DECLARE_COMPONENT(k4FWCoreTest_HelloWorldAlg) k4FWCoreTest_HelloWorldAlg::k4FWCoreTest_HelloWorldAlg(const std::string& aName, ISvcLocator* aSvcLoc) - : Gaudi::Algorithm(aName, aSvcLoc) {} + : Gaudi::Algorithm(aName, aSvcLoc) { + // Set Cardinality to 1 because this algorithm is not prepared to run in parallel + setProperty("Cardinality", 1).ignore(); +} k4FWCoreTest_HelloWorldAlg::~k4FWCoreTest_HelloWorldAlg() {}