Skip to content

Commit

Permalink
Set cardinality to 1 in a few algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Mar 15, 2024
1 parent 099972b commit cd81237
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/k4FWCoreTest/src/components/TestUniqueIDGenSvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

Expand Down

0 comments on commit cd81237

Please sign in to comment.