Skip to content

Commit

Permalink
Set Cardinality to 1 in algorithms with mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Mar 15, 2024
1 parent fce8a72 commit 01b88ba
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 55 deletions.
1 change: 0 additions & 1 deletion test/k4FWCoreTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ add_test(NAME checkKeepDropSwitch
COMMAND python scripts/check_KeepDropSwitch.py)
set_test_env(checkKeepDropSwitch)
set_property(TEST checkKeepDropSwitch APPEND PROPERTY DEPENDS ReadExampleEventData)
add_test_with_env(TestDataHandleUniquePtr options/TestDataHandleUniquePtr.py)
add_test_with_env(TestUniqueIDGenSvc options/TestUniqueIDGenSvc.py)
add_test_with_env(TestEventHeaderFiller options/createEventHeader.py)
add_test_with_env(EventHeaderCheck options/runEventHeaderCheck.py PROPERTIES DEPENDS TestEventHeaderFiller)
Expand Down
54 changes: 0 additions & 54 deletions test/k4FWCoreTest/src/components/TestDataHandleUniquePtr.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ k4FWCoreTest_CheckExampleEventData::k4FWCoreTest_CheckExampleEventData(const std
: Gaudi::Algorithm(aName, aSvcLoc) {
declareProperty("mcparticles", m_mcParticleHandle, "Dummy Particle collection (output)");
declareProperty("vectorfloat", m_vectorFloatHandle, "Dummy collection (output)");
// Set Cardinality to 1 because this algorithm is not prepared to run in parallel
setProperty("Cardinality", 1).ignore();
}

StatusCode k4FWCoreTest_CheckExampleEventData::initialize() { return Gaudi::Algorithm::initialize(); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ k4FWCoreTest_CreateExampleEventData::k4FWCoreTest_CreateExampleEventData(const s
declareProperty("trackhits", m_TrackerHitHandle, "Dummy Hit collection (output)");
declareProperty("tracks", m_trackHandle, "Dummy track collection (output)");
declareProperty("vectorfloat", m_vectorFloatHandle, "Dummy collection (output)");
// Set Cardinality to 1 because this algorithm is not prepared to run in parallel
setProperty("Cardinality", 1).ignore();
}

k4FWCoreTest_CreateExampleEventData::~k4FWCoreTest_CreateExampleEventData() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ k4FWCoreTest_cellID_reader::k4FWCoreTest_cellID_reader(const std::string& aName,
: Gaudi::Algorithm(aName, aSvcLoc) {
;
declareProperty("simtrackhits_r", m_simTrackerHitReaderHandle, "Dummy Hit collection Reader");
// Set Cardinality to 1 because this algorithm is not prepared to run in parallel
setProperty("Cardinality", 1).ignore();
}

k4FWCoreTest_cellID_reader::~k4FWCoreTest_cellID_reader() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ k4FWCoreTest_cellID_writer::k4FWCoreTest_cellID_writer(const std::string& aName,
: Gaudi::Algorithm(aName, aSvcLoc) {
;
declareProperty("simtrackhits_w", m_simTrackerHitWriterHandle, "Dummy Hit collection Writer");
// Set Cardinality to 1 because this algorithm is not prepared to run in parallel
setProperty("Cardinality", 1).ignore();
}

k4FWCoreTest_cellID_writer::~k4FWCoreTest_cellID_writer() {}
Expand Down

0 comments on commit 01b88ba

Please sign in to comment.