From 0af6a27e9f4a003e93a1bcfbe24e2f0f2b04c88b Mon Sep 17 00:00:00 2001 From: Sandro Wenzel Date: Mon, 23 Nov 2026 17:12:26 +0100 Subject: [PATCH] Run AnalysisQC with the MC tag's O2Physics in 2-tag mode This fixes the AnalysisQC tasks of 2-tag anchored MC, which ran in the async software environment. - The Analysis tasks depend on the AOD tasks and so inherited the async environment. - The async tag's O2Physics lacks executables that the current analysis configuration uses, so the tasks failed with "command not found". - They are now marked to run in the default environment, as aodmerge already is. Co-Authored-By: Claude Opus 5.5 --- MC/bin/o2dpg_sim_workflow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MC/bin/o2dpg_sim_workflow.py b/MC/bin/o2dpg_sim_workflow.py index 32659cfa4..16b57bcf3 100755 --- a/MC/bin/o2dpg_sim_workflow.py +++ b/MC/bin/o2dpg_sim_workflow.py @@ -2280,6 +2280,10 @@ def remove_json_prefix(path): add_analysis_tasks(workflow["stages"], needs=[AOD_merge_task["name"]], is_mc=True, collision_system=COLTYPE) if QUALITYCONTROL_ROOT: add_analysis_qc_upload_tasks(workflow["stages"], args.productionTag, args.run, "passMC") + # analysis always uses the O2Physics of the MC tag, also in 2-tag mode + for task in workflow["stages"]: + if any(label.startswith("Analysis") for label in task["labels"]): + task["alternative_alienv_package"] = "None" else: wfneeds=['sgngen_' + str(tf) for tf in range(1, NTIMEFRAMES + 1)] tfpool=['tf' + str(tf) + '/genevents_Kine.root' for tf in range(1, NTIMEFRAMES + 1)]