From ce6077b40d1e4cd714f167a2dbd09f1823b8144c Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Fri, 4 Oct 2024 10:17:41 +0200 Subject: [PATCH 1/3] PWGHF: fix type for timestamp in MC TOF PID task --- PWGHF/TableProducer/mcPidTof.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGHF/TableProducer/mcPidTof.cxx b/PWGHF/TableProducer/mcPidTof.cxx index 2248e8f0bdc..9cc0d926140 100644 --- a/PWGHF/TableProducer/mcPidTof.cxx +++ b/PWGHF/TableProducer/mcPidTof.cxx @@ -228,7 +228,7 @@ struct mcPidTof { /// Retrieve MC postcalibration objects from CCDB /// \param timestamp timestamp - void retrieveMcPostCalibFromCcdb(int timestamp) + void retrieveMcPostCalibFromCcdb(int64_t timestamp) { std::map metadata; metadata["RecoPassName"] = mcRecalib.passName; From 13f264ce40c5e06dd892e156a8badc9e0d5703f0 Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Fri, 4 Oct 2024 11:40:03 +0200 Subject: [PATCH 2/3] Fix auto-enabling of tables --- PWGHF/TableProducer/mcPidTof.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/PWGHF/TableProducer/mcPidTof.cxx b/PWGHF/TableProducer/mcPidTof.cxx index 9cc0d926140..ac8db7d94f1 100644 --- a/PWGHF/TableProducer/mcPidTof.cxx +++ b/PWGHF/TableProducer/mcPidTof.cxx @@ -117,12 +117,15 @@ struct mcPidTof { std::array supportedSpecies = {2, 3, 4}; for (auto iSpecie{0u}; iSpecie < supportedSpecies.size(); ++iSpecie) { int flag = -1; - enableFlagIfTableRequired(initContext, "mcPidTof" + particleNames[supportedSpecies[iSpecie]], flag); + enableFlagIfTableRequired(initContext, "pidTOFFull" + particleNames[supportedSpecies[iSpecie]], flag); + if (flag == 1) { + mEnabledParticles.push_back(supportedSpecies[iSpecie]); + } } // Printing enabled tables LOG(info) << "++ Enabled tables:"; for (const int& pidId : mEnabledParticles) { - LOG(info) << "++ mcPidTof" << particleNames[pidId] << " is enabled"; + LOG(info) << "++ pidTOFFull" << particleNames[pidId] << " is enabled"; } // Getting the parametrization parameters @@ -275,6 +278,10 @@ struct mcPidTof { constexpr auto responseKa = ResponseImplementation(); constexpr auto responsePr = ResponseImplementation(); + for (auto const& pidId : mEnabledParticles) { + std::cout << pidId << std::endl; + } + for (auto const& pidId : mEnabledParticles) { reserveTable(pidId, tracks.size()); } From 54e6ff41674f013595b85f02278d0fc23a8380a2 Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Fri, 4 Oct 2024 11:40:58 +0200 Subject: [PATCH 3/3] Remove debug printout --- PWGHF/TableProducer/mcPidTof.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/PWGHF/TableProducer/mcPidTof.cxx b/PWGHF/TableProducer/mcPidTof.cxx index ac8db7d94f1..756906b4edb 100644 --- a/PWGHF/TableProducer/mcPidTof.cxx +++ b/PWGHF/TableProducer/mcPidTof.cxx @@ -278,10 +278,6 @@ struct mcPidTof { constexpr auto responseKa = ResponseImplementation(); constexpr auto responsePr = ResponseImplementation(); - for (auto const& pidId : mEnabledParticles) { - std::cout << pidId << std::endl; - } - for (auto const& pidId : mEnabledParticles) { reserveTable(pidId, tracks.size()); }