From 9b7ae42fbde95ad39267d55ab937b55c1de17838 Mon Sep 17 00:00:00 2001 From: wiechula Date: Thu, 3 Jul 2025 10:23:00 +0200 Subject: [PATCH] Force TPC common mode correction This is done to avoid issues the CMk values stored in the CCDB. Data before 30/06/2023, 16:41:42 (first good run should be 539008 LHZ23ze) are affected --- MC/bin/o2dpg_sim_workflow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MC/bin/o2dpg_sim_workflow.py b/MC/bin/o2dpg_sim_workflow.py index e218c03a9..c04b28fac 100755 --- a/MC/bin/o2dpg_sim_workflow.py +++ b/MC/bin/o2dpg_sim_workflow.py @@ -994,6 +994,9 @@ def putConfigValues(listOfMainKeys=[], localCF = {}): tpcLocalCF={"DigiParams.maxOrbitsToDigitize" : str(orbitsPerTF), "DigiParams.seed" : str(TFSEED)} + # force TPC common mode correction in all cases to avoid issues the CMk values stored in the CCDB + tpcLocalCF['TPCEleParam.DigiMode'] = str(2) # 2 = o2::tpc::DigitzationMode::ZeroSuppressionCMCorr from TPCBase/ParameterElectronics.h + # handle distortions and scaling using MC maps # this assumes the lumi inside the maps is stored in FT0 (pp) scalers # in case of PbPb the conversion factor ZDC ->FT0 (pp) must be taken into account in the scalers