Skip to content

Commit c2798e9

Browse files
committed
use range adaptors for spawnerInputs
1 parent cfe60b9 commit c2798e9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Framework/Core/src/WorkflowHelpers.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,7 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
401401
AnalysisSupportHelpers::addMissingOutputsToAnalysisCCDBFetcher({}, ac.analysisCCDBInputs, ac.requestedAODs, ac.requestedTIMs, analysisCCDBBackend);
402402
}
403403

404-
for (auto& input : ac.requestedDYNs) {
405-
if (std::none_of(ac.providedDYNs.begin(), ac.providedDYNs.end(), [&input](auto const& x) { return DataSpecUtils::match(input, x); })) {
406-
ac.spawnerInputs.emplace_back(input);
407-
}
408-
}
404+
ac.requestedDYNs | views::filter_not_matching(ac.providedDYNs) | sinks::append_to{ac.spawnerInputs};
409405

410406
DataProcessorSpec aodSpawner{
411407
"internal-dpl-aod-spawner",

0 commit comments

Comments
 (0)