@@ -384,7 +384,7 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
384384 " internal-dpl-aod-index-builder" ,
385385 {},
386386 {},
387- PluginManager::loadAlgorithmFromPlugin ( " O2FrameworkOnDemandTablesSupport " , " IndexTableBuilder " , ctx ), // readers::AODReaderHelpers::indexBuilderCallback(ctx),
387+ AlgorithmSpec::dummyAlgorithm ( ), // real algorithm will be set in adjustTopology
388388 {}};
389389 AnalysisSupportHelpers::addMissingOutputsToBuilder (dec.requestedIDXs , dec.requestedAODs , dec.requestedDYNs , indexBuilder);
390390
@@ -400,7 +400,7 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
400400 " internal-dpl-aod-spawner" ,
401401 {},
402402 {},
403- PluginManager::loadAlgorithmFromPlugin ( " O2FrameworkOnDemandTablesSupport " , " ExtendedTableSpawner " , ctx ), // readers::AODReaderHelpers::aodSpawnerCallback(ctx),
403+ AlgorithmSpec::dummyAlgorithm ( ), // real algorithm will be set in adjustTopology
404404 {}};
405405 AnalysisSupportHelpers::addMissingOutputsToSpawner ({}, dec.spawnerInputs , dec.requestedAODs , aodSpawner);
406406 AnalysisSupportHelpers::addMissingOutputsToReader (dec.providedAODs , dec.requestedAODs , aodReader);
@@ -431,13 +431,11 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
431431 auto mctracks2aod = std::find_if (workflow.begin (), workflow.end (), [](auto const & x) { return x.name == " mctracks-to-aod" ; });
432432 if (mctracks2aod == workflow.end ()) {
433433 // add normal reader
434- auto && algo = PluginManager::loadAlgorithmFromPlugin (" O2FrameworkAnalysisSupport" , " ROOTFileReader" , ctx);
435- aodReader.algorithm = CommonDataProcessors::wrapWithTimesliceConsumption (algo);
436434 aodReader.outputs .emplace_back (OutputSpec{" TFN" , " TFNumber" });
437435 aodReader.outputs .emplace_back (OutputSpec{" TFF" , " TFFilename" });
438436 } else {
439- // AODs are being injected on-the-fly, add dummy reader
440- auto algo = AlgorithmSpec{
437+ // AODs are being injected on-the-fly, add error-handler reader
438+ aodReader. algorithm = AlgorithmSpec{
441439 adaptStateful (
442440 [outputs = aodReader.outputs ](DeviceSpec const &) {
443441 LOGP (warn, " Workflow with injected AODs has unsatisfied inputs:" );
@@ -448,7 +446,6 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
448446 // to ensure the output type for adaptStateful
449447 return adaptStateless ([](DataAllocator&) {});
450448 })};
451- aodReader.algorithm = CommonDataProcessors::wrapWithTimesliceConsumption (algo);
452449 }
453450 auto concrete = DataSpecUtils::asConcreteDataMatcher (aodReader.inputs [0 ]);
454451 timer.outputs .emplace_back (concrete.origin , concrete.description , concrete.subSpec , Lifetime::Enumeration);
@@ -533,9 +530,6 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
533530
534531 // add the Analysys CCDB backend which reads CCDB objects using a provided table
535532 if (analysisCCDBBackend.outputs .empty () == false ) {
536- // add normal reader
537- auto && algo = PluginManager::loadAlgorithmFromPlugin (" O2FrameworkCCDBSupport" , " AnalysisCCDBFetcherPlugin" , ctx);
538- analysisCCDBBackend.algorithm = algo;
539533 extraSpecs.push_back (analysisCCDBBackend);
540534 }
541535
0 commit comments