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 Jan 19, 2024
1 parent 9946714 commit 95d85b5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 153 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
42 changes: 0 additions & 42 deletions test/k4FWCoreTest/options/TestDataHandleUniquePtr.py

This file was deleted.

56 changes: 0 additions & 56 deletions test/k4FWCoreTest/src/components/TestDataHandleUniquePtr.cpp

This file was deleted.

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 @@ -31,6 +31,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 @@ -43,6 +43,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 95d85b5

Please sign in to comment.