@@ -304,19 +304,15 @@ struct AnalysisDataProcessorBuilder {
304304 }
305305
306306 template <typename Task, is_table_iterator_or_enumeration Grouping, std::ranges::input_range R, soa::is_table... Associated>
307- #if (FAIRMQ_VERSION_DEC >= 111000)
308307 static void invokeProcess (Task& task, InputRecord& inputs, R matchers, PointerReconstructor const & pointerReconstructor, void (Task::*processingFunction)(Grouping, Associated...), std::vector<ExpressionInfo>& infos, ArrowTableSlicingCache& slices, header::DataOrigin newOrigin = header::DataOrigin{" AOD" })
309- #else
310- static void invokeProcess (Task& task, InputRecord& inputs, R matchers, void (Task::*processingFunction)(Grouping, Associated...), std::vector<ExpressionInfo>& infos, ArrowTableSlicingCache& slices, header::DataOrigin newOrigin = header::DataOrigin{" AOD" })
311- #endif
312308 {
313309 using G = std::decay_t <Grouping>;
314310 auto groupingTable = AnalysisDataProcessorBuilder::bindGroupingTable (inputs, matchers, processingFunction, infos);
315- # if (FAIRMQ_VERSION_DEC >= 111000)
311+
316312 if constexpr (!is_enumeration<G>) {
317313 groupingTable.setPointerReconstructor (pointerReconstructor);
318314 }
319- # endif
315+
320316 constexpr const int numElements = homogeneous_apply_refs_size<false , std::decay_t <Task>>();
321317
322318 // set filtered tables for partitions with grouping
@@ -357,12 +353,10 @@ struct AnalysisDataProcessorBuilder {
357353 ...);
358354 },
359355 associatedTables);
360- #if (FAIRMQ_VERSION_DEC >= 111000)
361356 std::apply ([&pointerReconstructor](auto &... table) {
362357 (table.setPointerReconstructor (pointerReconstructor), ...);
363358 },
364359 associatedTables);
365- #endif
366360
367361 auto binder = [&task, &groupingTable, &associatedTables](auto & x) mutable {
368362 x.bindExternalIndices (&groupingTable, &std::get<std::decay_t <Associated>>(associatedTables)...);
@@ -393,12 +387,11 @@ struct AnalysisDataProcessorBuilder {
393387 auto slicer = GroupSlicer (groupingTable, associatedTables, slices, newOrigin);
394388 for (auto & slice : slicer) {
395389 auto associatedSlices = slice.associatedTables ();
396- #if (FAIRMQ_VERSION_DEC >= 111000)
397390 std::apply ([&pointerReconstructor](auto &... table) {
398391 (table.setPointerReconstructor (pointerReconstructor), ...);
399392 },
400393 associatedSlices);
401- # endif
394+
402395 overwriteInternalIndices (associatedSlices, associatedTables);
403396 std::apply (
404397 [&binder](auto &... x) mutable {
@@ -667,7 +660,6 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args)
667660 ic.services ().get <ArrowTableSlicingCacheDef>().setCaches (std::move (bindingsKeys));
668661 ic.services ().get <ArrowTableSlicingCacheDef>().setCachesUnsorted (std::move (bindingsKeysUnsorted));
669662 ic.services ().get <ArrowTableSlicingCacheDef>().setOrigin (newOrigin);
670- #if (FAIRMQ_VERSION_DEC >= 111000)
671663 PointerReconstructor pointerReconstructor (nullptr );
672664 bool hasCCDBTables = !ic.services ().get <DanglingEdgesContext>().requestedTIMs .empty ();
673665
@@ -677,9 +669,6 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args)
677669 auto & spec = pc.services ().get <DanglingEdgesContext>().requestedTIMs .front ();
678670 pointerReconstructor = proxy.getShmPointerReconstructor (spec, 0 );
679671 }
680- #else
681- return [task, expressionInfos, inputInfos, newOrigin](ProcessingContext& pc) mutable {
682- #endif
683672 // load the ccdb object from their cache
684673 homogeneous_apply_refs_sized<numElements>([&pc](auto & element) { return analysis_task_parsers::newDataframeCondition (pc.inputs (), element); }, *task.get ());
685674 // reset partitions once per dataframe
@@ -704,28 +693,16 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args)
704693 if constexpr (requires { &T::process; }) {
705694 auto loc = std::ranges::find_if (inputInfos, [](auto const & info) { return info.hash == o2::framework::TypeIdHelpers::uniqueId<decltype (&T::process)>(); });
706695 auto matchers = loc == inputInfos.end () ? std::vector<std::pair<int , ConcreteDataMatcher>>{} : loc->matchers ;
707- #if (FAIRMQ_VERSION_DEC >= 111000)
708696 AnalysisDataProcessorBuilder::invokeProcess (*(task.get ()), pc.inputs (), matchers, pointerReconstructor, &T::process, expressionInfos, slices, newOrigin);
709- #else
710- AnalysisDataProcessorBuilder::invokeProcess (*(task.get ()), pc.inputs (), matchers, &T::process, expressionInfos, slices, newOrigin);
711- #endif
712697 }
713698 // execute optional process()
714699 homogeneous_apply_refs_sized<numElements>(
715- #if (FAIRMQ_VERSION_DEC >= 111000)
716700 [&pc, &expressionInfos, &task, &slices, &inputInfos, &newOrigin, &pointerReconstructor](auto & x) {
717- #else
718- [&pc, &expressionInfos, &task, &slices, &inputInfos, &newOrigin](auto & x) {
719- #endif
720701 if constexpr (is_process_configurable<decltype (x)>) {
721702 if (x.value == true ) {
722703 auto loc = std::ranges::find_if (inputInfos, [](auto const & info) { return info.hash == o2::framework::TypeIdHelpers::uniqueId<decltype (x.process )>(); });
723704 auto matchers = loc == inputInfos.end () ? std::vector<std::pair<int , ConcreteDataMatcher>>{} : loc->matchers ;
724- #if (FAIRMQ_VERSION_DEC >= 111000)
725705 AnalysisDataProcessorBuilder::invokeProcess (*task.get (), pc.inputs (), matchers, pointerReconstructor, x.process , expressionInfos, slices, newOrigin);
726- #else
727- AnalysisDataProcessorBuilder::invokeProcess (*task.get (), pc.inputs (), matchers, x.process , expressionInfos, slices, newOrigin);
728- #endif
729706 return true ;
730707 }
731708 return false ;
0 commit comments