From 3d5fa4270a9ec0237b1d841d0405eb6de3c363c5 Mon Sep 17 00:00:00 2001 From: Francesco Mazzaschi Date: Fri, 11 Oct 2024 11:08:11 +0200 Subject: [PATCH 1/2] [PWGLF] Nuclei task: select with zorro after initialisation --- PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx b/PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx index 97967ac4fbd..82f04e05915 100644 --- a/PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx +++ b/PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx @@ -489,6 +489,9 @@ struct nucleiSpectra { o2::pid::tof::Beta responseBeta; auto bc = collision.template bc_as(); initCCDB(bc); + if (cfgSkimmedProcessing) { + zorro.isSelected(collision.bc_as().globalBC()); /// Just let Zorro do the accounting + } gRandom->SetSeed(bc.timestamp()); spectra.fill(HIST("hRecVtxZData"), collision.posZ()); @@ -704,9 +707,6 @@ struct nucleiSpectra { if (!eventSelection(collision)) { return; } - if (cfgSkimmedProcessing) { - zorro.isSelected(collision.bc_as().globalBC()); /// Just let Zorro do the accounting - } fillDataInfo(collision, tracks); for (auto& c : nuclei::candidates) { From 2cf95fadce816144c5b879fa7edd0e9051fc8115 Mon Sep 17 00:00:00 2001 From: Francesco Mazzaschi <43742195+fmazzasc@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:54:30 +0200 Subject: [PATCH 2/2] Update nucleiSpectra.cxx --- PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx b/PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx index 82f04e05915..7d6a6e1e3ce 100644 --- a/PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx +++ b/PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx @@ -490,7 +490,7 @@ struct nucleiSpectra { auto bc = collision.template bc_as(); initCCDB(bc); if (cfgSkimmedProcessing) { - zorro.isSelected(collision.bc_as().globalBC()); /// Just let Zorro do the accounting + zorro.isSelected(bc.globalBC()); /// Just let Zorro do the accounting } gRandom->SetSeed(bc.timestamp());