From 66523287cc3355af984c7d25898239d70778d4c8 Mon Sep 17 00:00:00 2001 From: jikim1290 Date: Fri, 20 Feb 2026 18:54:52 +0900 Subject: [PATCH 1/4] fixing bug for efficiency correction --- PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx b/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx index 79c5c4e2df6..ea68d56ee5d 100644 --- a/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx +++ b/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx @@ -40,6 +40,7 @@ using namespace std; using MyCollisions = soa::Join; using MyTracks = soa::Join; + struct jEPFlowAnalysis { HistogramRegistry epFlowHistograms{"EPFlow", {}, OutputObjHandlingPolicy::AnalysisObject, true, true}; @@ -169,6 +170,8 @@ struct jEPFlowAnalysis { effVars[1] = eff->GetAxis(1)->FindBin(pt); effVars[2] = eff->GetAxis(2)->FindBin(multiplicity); effVars[3] = eff->GetAxis(3)->FindBin(posZ); + LOGF(info, "etabin: %d, ptbin: %d, centbin: %d, poszbin: %d", effVars[0], effVars[1], effVars[2], effVars[3]); + return eff->GetBinContent(effVars); } @@ -251,7 +254,12 @@ struct jEPFlowAnalysis { if (cfgEffCor) { auto bc = coll.bc_as(); - effMap = ccdb->getForTimeStamp>(cfgEffCorDir, bc.timestamp()); + currentRunNumber = bc.runNumber(); + if (currentRunNumber != lastRunNumber) { + effMap.clear(); + effMap = ccdb->getForTimeStamp>(cfgEffCorDir, bc.timestamp()); + lastRunNumber = currentRunNumber; + } } float cent = coll.cent(); @@ -350,7 +358,7 @@ struct jEPFlowAnalysis { continue; if (cfgEffCor) { - weight /= getEfficiencyCorrection(effMap, track.eta(), track.pt(), cent, coll.posZ()); + weight = getEfficiencyCorrection(effMap, track.eta(), track.pt(), cent, coll.posZ()); } float vn = std::cos((i + 2) * (track.phi() - eps[0])); @@ -365,6 +373,8 @@ struct jEPFlowAnalysis { } } PROCESS_SWITCH(jEPFlowAnalysis, processDefault, "default process", true); + + }; WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) From 2f73e5e54c26aa8dd12477a370bcfcd5ac07e67e Mon Sep 17 00:00:00 2001 From: jikim1290 Date: Fri, 20 Feb 2026 20:22:19 +0900 Subject: [PATCH 2/4] fixing bug for efficiency correction --- PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx b/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx index ea68d56ee5d..e63fad83ad7 100644 --- a/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx +++ b/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx @@ -170,7 +170,6 @@ struct jEPFlowAnalysis { effVars[1] = eff->GetAxis(1)->FindBin(pt); effVars[2] = eff->GetAxis(2)->FindBin(multiplicity); effVars[3] = eff->GetAxis(3)->FindBin(posZ); - LOGF(info, "etabin: %d, ptbin: %d, centbin: %d, poszbin: %d", effVars[0], effVars[1], effVars[2], effVars[3]); return eff->GetBinContent(effVars); } @@ -256,7 +255,7 @@ struct jEPFlowAnalysis { auto bc = coll.bc_as(); currentRunNumber = bc.runNumber(); if (currentRunNumber != lastRunNumber) { - effMap.clear(); + effMap->clear(); effMap = ccdb->getForTimeStamp>(cfgEffCorDir, bc.timestamp()); lastRunNumber = currentRunNumber; } From ac1e1464e5fea447d244399d76aef9d22749e9a4 Mon Sep 17 00:00:00 2001 From: jikim1290 Date: Sat, 21 Feb 2026 01:22:06 +0900 Subject: [PATCH 3/4] fixing bug for efficiency correction --- PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx b/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx index e63fad83ad7..d32ad49a70c 100644 --- a/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx +++ b/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx @@ -255,7 +255,6 @@ struct jEPFlowAnalysis { auto bc = coll.bc_as(); currentRunNumber = bc.runNumber(); if (currentRunNumber != lastRunNumber) { - effMap->clear(); effMap = ccdb->getForTimeStamp>(cfgEffCorDir, bc.timestamp()); lastRunNumber = currentRunNumber; } From f98c7511aa5655673d2b0d683fe09215036fc408 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 20 Feb 2026 16:22:42 +0000 Subject: [PATCH 4/4] Please consider the following formatting changes --- PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx b/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx index d32ad49a70c..13c2e3e72fc 100644 --- a/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx +++ b/PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx @@ -40,7 +40,6 @@ using namespace std; using MyCollisions = soa::Join; using MyTracks = soa::Join; - struct jEPFlowAnalysis { HistogramRegistry epFlowHistograms{"EPFlow", {}, OutputObjHandlingPolicy::AnalysisObject, true, true}; @@ -371,8 +370,6 @@ struct jEPFlowAnalysis { } } PROCESS_SWITCH(jEPFlowAnalysis, processDefault, "default process", true); - - }; WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)