@@ -304,19 +304,14 @@ 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
320315 constexpr const int numElements = nested_brace_constructible_size<false , std::decay_t <Task>>() / 10 ;
321316
322317 // set filtered tables for partitions with grouping
@@ -357,12 +352,10 @@ struct AnalysisDataProcessorBuilder {
357352 ...);
358353 },
359354 associatedTables);
360- #if (FAIRMQ_VERSION_DEC >= 111000)
361355 std::apply ([&pointerReconstructor](auto &... table) {
362356 (table.setPointerReconstructor (pointerReconstructor), ...);
363357 },
364358 associatedTables);
365- #endif
366359
367360 auto binder = [&task, &groupingTable, &associatedTables](auto & x) mutable {
368361 x.bindExternalIndices (&groupingTable, &std::get<std::decay_t <Associated>>(associatedTables)...);
@@ -393,12 +386,11 @@ struct AnalysisDataProcessorBuilder {
393386 auto slicer = GroupSlicer (groupingTable, associatedTables, slices, newOrigin);
394387 for (auto & slice : slicer) {
395388 auto associatedSlices = slice.associatedTables ();
396- #if (FAIRMQ_VERSION_DEC >= 111000)
397389 std::apply ([&pointerReconstructor](auto &... table) {
398390 (table.setPointerReconstructor (pointerReconstructor), ...);
399391 },
400392 associatedSlices);
401- # endif
393+
402394 overwriteInternalIndices (associatedSlices, associatedTables);
403395 std::apply (
404396 [&binder](auto &... x) mutable {
@@ -667,7 +659,6 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args)
667659 ic.services ().get <ArrowTableSlicingCacheDef>().setCaches (std::move (bindingsKeys));
668660 ic.services ().get <ArrowTableSlicingCacheDef>().setCachesUnsorted (std::move (bindingsKeysUnsorted));
669661 ic.services ().get <ArrowTableSlicingCacheDef>().setOrigin (newOrigin);
670- #if (FAIRMQ_VERSION_DEC >= 111000)
671662 PointerReconstructor pointerReconstructor (nullptr );
672663 bool hasCCDBTables = !ic.services ().get <DanglingEdgesContext>().requestedTIMs .empty ();
673664
@@ -677,9 +668,6 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args)
677668 auto & spec = pc.services ().get <DanglingEdgesContext>().requestedTIMs .front ();
678669 pointerReconstructor = proxy.getShmPointerReconstructor (spec, 0 );
679670 }
680- #else
681- return [task, expressionInfos, inputInfos, newOrigin](ProcessingContext& pc) mutable {
682- #endif
683671 // load the ccdb object from their cache
684672 homogeneous_apply_refs_sized<numElements>([&pc](auto & element) { return analysis_task_parsers::newDataframeCondition (pc.inputs (), element); }, *task.get ());
685673 // reset partitions once per dataframe
@@ -704,28 +692,16 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args)
704692 if constexpr (requires { &T::process; }) {
705693 auto loc = std::ranges::find_if (inputInfos, [](auto const & info) { return info.hash == o2::framework::TypeIdHelpers::uniqueId<decltype (&T::process)>(); });
706694 auto matchers = loc == inputInfos.end () ? std::vector<std::pair<int , ConcreteDataMatcher>>{} : loc->matchers ;
707- #if (FAIRMQ_VERSION_DEC >= 111000)
708695 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
712696 }
713697 // execute optional process()
714698 homogeneous_apply_refs_sized<numElements>(
715- #if (FAIRMQ_VERSION_DEC >= 111000)
716699 [&pc, &expressionInfos, &task, &slices, &inputInfos, &newOrigin, &pointerReconstructor](auto & x) {
717- #else
718- [&pc, &expressionInfos, &task, &slices, &inputInfos, &newOrigin](auto & x) {
719- #endif
720700 if constexpr (is_process_configurable<decltype (x)>) {
721701 if (x.value == true ) {
722702 auto loc = std::ranges::find_if (inputInfos, [](auto const & info) { return info.hash == o2::framework::TypeIdHelpers::uniqueId<decltype (x.process )>(); });
723703 auto matchers = loc == inputInfos.end () ? std::vector<std::pair<int , ConcreteDataMatcher>>{} : loc->matchers ;
724- #if (FAIRMQ_VERSION_DEC >= 111000)
725704 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
729705 return true ;
730706 }
731707 return false ;
0 commit comments