From c96cd41c775baa4e763c1048485cd3f3a8761f30 Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Thu, 25 Apr 2024 11:10:56 +0200 Subject: [PATCH 1/5] PWGHF: add selection on generated PV z position in creators --- .../TableProducer/candidateCreator2Prong.cxx | 24 +++++++++++++++++- .../TableProducer/candidateCreator3Prong.cxx | 12 ++++++++- .../TableProducer/candidateCreatorCascade.cxx | 25 +++++++++++++++++++ PWGHF/TableProducer/candidateCreatorDstar.cxx | 25 ++++++++++++++++++- .../candidateCreatorSigmac0plusplus.cxx | 23 ++++++++++++++++- 5 files changed, 105 insertions(+), 4 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreator2Prong.cxx b/PWGHF/TableProducer/candidateCreator2Prong.cxx index e80fbf366d4..209d74f9ad2 100644 --- a/PWGHF/TableProducer/candidateCreator2Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator2Prong.cxx @@ -33,6 +33,7 @@ #include "Framework/AnalysisTask.h" #include "Framework/HistogramRegistry.h" #include "Framework/runDataProcessing.h" +#include "Framework/RunningWorkflowInfo.h" #include "ReconstructionDataFormats/DCA.h" #include "Common/Core/trackUtilities.h" @@ -665,7 +666,21 @@ struct HfCandidateCreator2ProngExpressions { Produces rowMcMatchRec; Produces rowMcMatchGen; - void init(InitContext const&) {} + float zPvPosMax{1000.f}; + + // inspect for which zPvPosMax cut was set for reconstructed + void init(InitContext& initContext) { + auto& workflows = initContext.services().get(); + for (const DeviceSpec& device : workflows.devices) { + if (device.name.compare("hf-candidate-creator-2prong") == 0) { + for (const auto& option : device.options) { + if (option.name.compare("zPvPosMax") == 0) { + zPvPosMax = option.defaultValue.get(); + } + } + } + } + } /// Performs MC matching. void processMc(aod::TracksWMc const& tracks, @@ -721,6 +736,13 @@ struct HfCandidateCreator2ProngExpressions { flag = 0; origin = 0; + auto mcCollision = particle.mcCollision(); + float zPv = mcCollision.posZ(); + if (zPv < -zPvPosMax || zPv > zPvPosMax) { // to avoid counting particles in collisions with Zvtx larger than the maximum, we do not match them + rowMcMatchGen(flag, origin); + continue; + } + // D0(bar) → π± K∓ if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kD0, std::array{+kPiPlus, -kKPlus}, true, &sign)) { flag = sign * (1 << DecayType::D0ToPiK); diff --git a/PWGHF/TableProducer/candidateCreator3Prong.cxx b/PWGHF/TableProducer/candidateCreator3Prong.cxx index d14b3a8f46f..4bb1aa1fcb2 100644 --- a/PWGHF/TableProducer/candidateCreator3Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator3Prong.cxx @@ -470,11 +470,12 @@ struct HfCandidateCreator3ProngExpressions { bool createDs{false}; bool createLc{false}; bool createXic{false}; + float zPvPosMax{1000.f}; void init(InitContext& initContext) { - // inspect for which particle species the candidates were created + // inspect for which particle species the candidates were created and which zPvPosMax cut was set for reconstructed auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-3prong") == 0) { @@ -487,6 +488,8 @@ struct HfCandidateCreator3ProngExpressions { createLc = option.defaultValue.get(); } else if (option.name.compare("createXic") == 0) { createXic = option.defaultValue.get(); + } else if (option.name.compare("zPvPosMax") == 0) { + zPvPosMax = option.defaultValue.get(); } } } @@ -618,6 +621,13 @@ struct HfCandidateCreator3ProngExpressions { channel = 0; arrDaughIndex.clear(); + auto mcCollision = particle.mcCollision(); + float zPv = mcCollision.posZ(); + if (zPv < -zPvPosMax || zPv > zPvPosMax) { // to avoid counting particles in collisions with Zvtx larger than the maximum, we do not match them + rowMcMatchGen(flag, origin, channel); + continue; + } + // D± → π± K∓ π± if (createDplus) { if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kDPlus, std::array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2)) { diff --git a/PWGHF/TableProducer/candidateCreatorCascade.cxx b/PWGHF/TableProducer/candidateCreatorCascade.cxx index f3bb5526750..b019e06fa15 100644 --- a/PWGHF/TableProducer/candidateCreatorCascade.cxx +++ b/PWGHF/TableProducer/candidateCreatorCascade.cxx @@ -22,6 +22,7 @@ #include "Framework/AnalysisTask.h" #include "Framework/HistogramRegistry.h" #include "Framework/runDataProcessing.h" +#include "Framework/RunningWorkflowInfo.h" #include "ReconstructionDataFormats/DCA.h" #include "ReconstructionDataFormats/V0.h" @@ -445,6 +446,22 @@ struct HfCandidateCreatorCascadeMc { using MyTracksWMc = soa::Join; + float zPvPosMax{1000.f}; + + // inspect for which zPvPosMax cut was set for reconstructed + void init(InitContext& initContext) { + auto& workflows = initContext.services().get(); + for (const DeviceSpec& device : workflows.devices) { + if (device.name.compare("hf-candidate-creator-cascade") == 0) { + for (const auto& option : device.options) { + if (option.name.compare("zPvPosMax") == 0) { + zPvPosMax = option.defaultValue.get(); + } + } + } + } + } + void processMc(MyTracksWMc const& tracks, aod::McParticles const& mcParticles) { @@ -493,6 +510,14 @@ struct HfCandidateCreatorCascadeMc { // Match generated particles. for (const auto& particle : mcParticles) { origin = 0; + + auto mcCollision = particle.mcCollision(); + float zPv = mcCollision.posZ(); + if (zPv < -zPvPosMax || zPv > zPvPosMax) { // to avoid counting particles in collisions with Zvtx larger than the maximum, we do not match them + rowMcMatchGen(sign, origin); + continue; + } + // checking if I have a Lc --> K0S + p RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kLambdaCPlus, std::array{+kProton, +kK0Short}, false, &sign, 2); if (sign == 0) { // now check for anti-Lc diff --git a/PWGHF/TableProducer/candidateCreatorDstar.cxx b/PWGHF/TableProducer/candidateCreatorDstar.cxx index 524d7982884..8010e4b6a17 100644 --- a/PWGHF/TableProducer/candidateCreatorDstar.cxx +++ b/PWGHF/TableProducer/candidateCreatorDstar.cxx @@ -24,6 +24,7 @@ #include "Framework/AnalysisDataModel.h" #include "Framework/AnalysisTask.h" #include "Framework/runDataProcessing.h" +#include "Framework/RunningWorkflowInfo.h" // O2Physics #include "Common/Core/trackUtilities.h" // PWGHF @@ -516,7 +517,21 @@ struct HfCandidateCreatorDstarExpressions { Produces rowsMcMatchRecDstar; Produces rowsMcMatchGenDstar; - void init(InitContext const&) {} + float zPvPosMax{1000.f}; + + // inspect for which zPvPosMax cut was set for reconstructed + void init(InitContext& initContext) { + auto& workflows = initContext.services().get(); + for (const DeviceSpec& device : workflows.devices) { + if (device.name.compare("hf-candidate-creator-dstar") == 0) { + for (const auto& option : device.options) { + if (option.name.compare("zPvPosMax") == 0) { + zPvPosMax = option.defaultValue.get(); + } + } + } + } + } /// Perform MC Matching. void processMc(aod::TracksWMc const& tracks, @@ -576,6 +591,14 @@ struct HfCandidateCreatorDstarExpressions { originDstar = 0; originD0 = 0; + auto mcCollision = particle.mcCollision(); + float zPv = mcCollision.posZ(); + if (zPv < -zPvPosMax || zPv > zPvPosMax) { // to avoid counting particles in collisions with Zvtx larger than the maximum, we do not match them + rowsMcMatchGenDstar(flagDstar, originDstar); + rowsMcMatchGenD0(flagD0, originD0); + continue; + } + // D*± → D0(bar) π± if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kDStar, std::array{+kPiPlus, +kPiPlus, -kKPlus}, true, &signDstar, 2)) { flagDstar = signDstar * (BIT(aod::hf_cand_dstar::DecayType::DstarToD0Pi)); diff --git a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx index e9957d61886..a51a44d294f 100644 --- a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx +++ b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx @@ -24,6 +24,7 @@ #include "DetectorsVertexing/PVertexer.h" // for dca recalculation #include "Framework/AnalysisTask.h" #include "Framework/runDataProcessing.h" +#include "Framework/RunningWorkflowInfo.h" #include "Common/Core/TrackSelection.h" #include "Common/Core/trackUtilities.h" @@ -385,8 +386,21 @@ struct HfCandidateSigmac0plusplusMc { using LambdacMc = soa::Join; // using LambdacMcGen = soa::Join; + float zPvPosMax{1000.f}; + /// @brief init function - void init(InitContext const&) {} + void init(InitContext& initContext) { + auto& workflows = initContext.services().get(); + for (const DeviceSpec& device : workflows.devices) { + if (device.name.compare("hf-candidate-creator-3prong") == 0) { // here we assume that the hf-candidate-creator-3prong is in the workflow + for (const auto& option : device.options) { + if (option.name.compare("zPvPosMax") == 0) { + zPvPosMax = option.defaultValue.get(); + } + } + } + } + } /// @brief dummy process function, to be run on data /// @param @@ -469,6 +483,13 @@ struct HfCandidateSigmac0plusplusMc { flag = 0; origin = 0; + auto mcCollision = particle.mcCollision(); + float zPv = mcCollision.posZ(); + if (zPv < -zPvPosMax || zPv > zPvPosMax) { // to avoid counting particles in collisions with Zvtx larger than the maximum, we do not match them + rowMCMatchScGen(flag, origin); + continue; + } + /// 3 levels: /// 1. Σc0 → Λc+ π-,+ /// 2. Λc+ → pK-π+ direct (i) or Λc+ → resonant channel Λc± → p± K*, Λc± → Δ(1232)±± K∓ or Λc± → Λ(1520) π± (ii) From f6a1b89bf59c32b5db39feeaa22069593d916e09 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 25 Apr 2024 09:14:12 +0000 Subject: [PATCH 2/5] Please consider the following formatting changes --- PWGHF/TableProducer/candidateCreator2Prong.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorCascade.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorDstar.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreator2Prong.cxx b/PWGHF/TableProducer/candidateCreator2Prong.cxx index 209d74f9ad2..a6e7181bccc 100644 --- a/PWGHF/TableProducer/candidateCreator2Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator2Prong.cxx @@ -669,7 +669,8 @@ struct HfCandidateCreator2ProngExpressions { float zPvPosMax{1000.f}; // inspect for which zPvPosMax cut was set for reconstructed - void init(InitContext& initContext) { + void init(InitContext& initContext) + { auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-2prong") == 0) { diff --git a/PWGHF/TableProducer/candidateCreatorCascade.cxx b/PWGHF/TableProducer/candidateCreatorCascade.cxx index b019e06fa15..1bcbe095329 100644 --- a/PWGHF/TableProducer/candidateCreatorCascade.cxx +++ b/PWGHF/TableProducer/candidateCreatorCascade.cxx @@ -449,7 +449,8 @@ struct HfCandidateCreatorCascadeMc { float zPvPosMax{1000.f}; // inspect for which zPvPosMax cut was set for reconstructed - void init(InitContext& initContext) { + void init(InitContext& initContext) + { auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-cascade") == 0) { diff --git a/PWGHF/TableProducer/candidateCreatorDstar.cxx b/PWGHF/TableProducer/candidateCreatorDstar.cxx index 8010e4b6a17..9f7e9c02f7f 100644 --- a/PWGHF/TableProducer/candidateCreatorDstar.cxx +++ b/PWGHF/TableProducer/candidateCreatorDstar.cxx @@ -520,7 +520,8 @@ struct HfCandidateCreatorDstarExpressions { float zPvPosMax{1000.f}; // inspect for which zPvPosMax cut was set for reconstructed - void init(InitContext& initContext) { + void init(InitContext& initContext) + { auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-dstar") == 0) { diff --git a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx index a51a44d294f..3e73feb5c71 100644 --- a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx +++ b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx @@ -389,7 +389,8 @@ struct HfCandidateSigmac0plusplusMc { float zPvPosMax{1000.f}; /// @brief init function - void init(InitContext& initContext) { + void init(InitContext& initContext) + { auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-3prong") == 0) { // here we assume that the hf-candidate-creator-3prong is in the workflow From f182e2569d7a61cd4e4d830106f9e4b2937ccf3b Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Thu, 25 Apr 2024 12:40:39 +0200 Subject: [PATCH 3/5] Add missing consumption of mcCollision table --- PWGHF/TableProducer/candidateCreator2Prong.cxx | 4 +++- PWGHF/TableProducer/candidateCreator3Prong.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorCascade.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorDstar.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx | 3 ++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreator2Prong.cxx b/PWGHF/TableProducer/candidateCreator2Prong.cxx index a6e7181bccc..85e61c622a6 100644 --- a/PWGHF/TableProducer/candidateCreator2Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator2Prong.cxx @@ -685,7 +685,8 @@ struct HfCandidateCreator2ProngExpressions { /// Performs MC matching. void processMc(aod::TracksWMc const& tracks, - aod::McParticles const& mcParticles) + aod::McParticles const& mcParticles, + aod::McCollisions const&) { rowCandidateProng2->bindExternalIndices(&tracks); @@ -697,6 +698,7 @@ struct HfCandidateCreator2ProngExpressions { // Match reconstructed candidates. // Spawned table can be used directly for (const auto& candidate : *rowCandidateProng2) { + flag = 0; origin = 0; auto arrayDaughters = std::array{candidate.prong0_as(), candidate.prong1_as()}; diff --git a/PWGHF/TableProducer/candidateCreator3Prong.cxx b/PWGHF/TableProducer/candidateCreator3Prong.cxx index 4bb1aa1fcb2..a40a904afa0 100644 --- a/PWGHF/TableProducer/candidateCreator3Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator3Prong.cxx @@ -504,7 +504,8 @@ struct HfCandidateCreator3ProngExpressions { /// Performs MC matching. void processMc(aod::TracksWMc const& tracks, - aod::McParticles const& mcParticles) + aod::McParticles const& mcParticles, + aod::McCollisions const&) { rowCandidateProng3->bindExternalIndices(&tracks); diff --git a/PWGHF/TableProducer/candidateCreatorCascade.cxx b/PWGHF/TableProducer/candidateCreatorCascade.cxx index 1bcbe095329..1b139918771 100644 --- a/PWGHF/TableProducer/candidateCreatorCascade.cxx +++ b/PWGHF/TableProducer/candidateCreatorCascade.cxx @@ -464,7 +464,8 @@ struct HfCandidateCreatorCascadeMc { } void processMc(MyTracksWMc const& tracks, - aod::McParticles const& mcParticles) + aod::McParticles const& mcParticles, + aod::McCollisions const&) { int8_t sign = 0; int8_t origin = 0; diff --git a/PWGHF/TableProducer/candidateCreatorDstar.cxx b/PWGHF/TableProducer/candidateCreatorDstar.cxx index 9f7e9c02f7f..0031d12db02 100644 --- a/PWGHF/TableProducer/candidateCreatorDstar.cxx +++ b/PWGHF/TableProducer/candidateCreatorDstar.cxx @@ -536,7 +536,8 @@ struct HfCandidateCreatorDstarExpressions { /// Perform MC Matching. void processMc(aod::TracksWMc const& tracks, - aod::McParticles const& mcParticles) + aod::McParticles const& mcParticles, + aod::McCollisions const&) { rowsCandidateD0->bindExternalIndices(&tracks); rowsCandidateDstar->bindExternalIndices(&tracks); diff --git a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx index 3e73feb5c71..c7905ad9ba2 100644 --- a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx +++ b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx @@ -412,7 +412,8 @@ struct HfCandidateSigmac0plusplusMc { /// @param mcParticles table of generated particles void processMc(aod::McParticles const& mcParticles, aod::TracksWMc const& tracks, - LambdacMc const& candsLc /*, const LambdacMcGen&*/) + LambdacMc const& candsLc /*, const LambdacMcGen&*/, + aod::McCollisions const&) { // Match reconstructed candidates. From c8f9cbf79a566baffa8c31a1d94e39dbe49ad1ff Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Thu, 25 Apr 2024 13:10:56 +0200 Subject: [PATCH 4/5] Add break and const --- PWGHF/TableProducer/candidateCreator2Prong.cxx | 4 +++- PWGHF/TableProducer/candidateCreator3Prong.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorCascade.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorDstar.cxx | 3 ++- PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx | 3 ++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreator2Prong.cxx b/PWGHF/TableProducer/candidateCreator2Prong.cxx index 85e61c622a6..f5b230ee44e 100644 --- a/PWGHF/TableProducer/candidateCreator2Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator2Prong.cxx @@ -671,14 +671,16 @@ struct HfCandidateCreator2ProngExpressions { // inspect for which zPvPosMax cut was set for reconstructed void init(InitContext& initContext) { - auto& workflows = initContext.services().get(); + const auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-2prong") == 0) { for (const auto& option : device.options) { if (option.name.compare("zPvPosMax") == 0) { zPvPosMax = option.defaultValue.get(); } + break; } + break; } } } diff --git a/PWGHF/TableProducer/candidateCreator3Prong.cxx b/PWGHF/TableProducer/candidateCreator3Prong.cxx index a40a904afa0..e451eea36b3 100644 --- a/PWGHF/TableProducer/candidateCreator3Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator3Prong.cxx @@ -476,7 +476,7 @@ struct HfCandidateCreator3ProngExpressions { { // inspect for which particle species the candidates were created and which zPvPosMax cut was set for reconstructed - auto& workflows = initContext.services().get(); + const auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-3prong") == 0) { for (const auto& option : device.options) { @@ -492,6 +492,7 @@ struct HfCandidateCreator3ProngExpressions { zPvPosMax = option.defaultValue.get(); } } + break; } } diff --git a/PWGHF/TableProducer/candidateCreatorCascade.cxx b/PWGHF/TableProducer/candidateCreatorCascade.cxx index 1b139918771..31256df1621 100644 --- a/PWGHF/TableProducer/candidateCreatorCascade.cxx +++ b/PWGHF/TableProducer/candidateCreatorCascade.cxx @@ -451,7 +451,7 @@ struct HfCandidateCreatorCascadeMc { // inspect for which zPvPosMax cut was set for reconstructed void init(InitContext& initContext) { - auto& workflows = initContext.services().get(); + const auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-cascade") == 0) { for (const auto& option : device.options) { @@ -459,6 +459,7 @@ struct HfCandidateCreatorCascadeMc { zPvPosMax = option.defaultValue.get(); } } + break; } } } diff --git a/PWGHF/TableProducer/candidateCreatorDstar.cxx b/PWGHF/TableProducer/candidateCreatorDstar.cxx index 0031d12db02..d1b8c8d5285 100644 --- a/PWGHF/TableProducer/candidateCreatorDstar.cxx +++ b/PWGHF/TableProducer/candidateCreatorDstar.cxx @@ -522,7 +522,7 @@ struct HfCandidateCreatorDstarExpressions { // inspect for which zPvPosMax cut was set for reconstructed void init(InitContext& initContext) { - auto& workflows = initContext.services().get(); + const auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-dstar") == 0) { for (const auto& option : device.options) { @@ -530,6 +530,7 @@ struct HfCandidateCreatorDstarExpressions { zPvPosMax = option.defaultValue.get(); } } + break; } } } diff --git a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx index c7905ad9ba2..48e81761b7a 100644 --- a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx +++ b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx @@ -391,7 +391,7 @@ struct HfCandidateSigmac0plusplusMc { /// @brief init function void init(InitContext& initContext) { - auto& workflows = initContext.services().get(); + const auto& workflows = initContext.services().get(); for (const DeviceSpec& device : workflows.devices) { if (device.name.compare("hf-candidate-creator-3prong") == 0) { // here we assume that the hf-candidate-creator-3prong is in the workflow for (const auto& option : device.options) { @@ -399,6 +399,7 @@ struct HfCandidateSigmac0plusplusMc { zPvPosMax = option.defaultValue.get(); } } + break; } } } From bf6cea5908eb04cdd66f261ba4756a0a80626069 Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Thu, 25 Apr 2024 13:43:23 +0200 Subject: [PATCH 5/5] Add missing breaks --- PWGHF/TableProducer/candidateCreator2Prong.cxx | 2 +- PWGHF/TableProducer/candidateCreatorCascade.cxx | 1 + PWGHF/TableProducer/candidateCreatorDstar.cxx | 1 + PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/PWGHF/TableProducer/candidateCreator2Prong.cxx b/PWGHF/TableProducer/candidateCreator2Prong.cxx index f5b230ee44e..af230c3628d 100644 --- a/PWGHF/TableProducer/candidateCreator2Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator2Prong.cxx @@ -677,8 +677,8 @@ struct HfCandidateCreator2ProngExpressions { for (const auto& option : device.options) { if (option.name.compare("zPvPosMax") == 0) { zPvPosMax = option.defaultValue.get(); + break; } - break; } break; } diff --git a/PWGHF/TableProducer/candidateCreatorCascade.cxx b/PWGHF/TableProducer/candidateCreatorCascade.cxx index 31256df1621..9992aa7a7a9 100644 --- a/PWGHF/TableProducer/candidateCreatorCascade.cxx +++ b/PWGHF/TableProducer/candidateCreatorCascade.cxx @@ -457,6 +457,7 @@ struct HfCandidateCreatorCascadeMc { for (const auto& option : device.options) { if (option.name.compare("zPvPosMax") == 0) { zPvPosMax = option.defaultValue.get(); + break; } } break; diff --git a/PWGHF/TableProducer/candidateCreatorDstar.cxx b/PWGHF/TableProducer/candidateCreatorDstar.cxx index d1b8c8d5285..dd0d5b7b227 100644 --- a/PWGHF/TableProducer/candidateCreatorDstar.cxx +++ b/PWGHF/TableProducer/candidateCreatorDstar.cxx @@ -528,6 +528,7 @@ struct HfCandidateCreatorDstarExpressions { for (const auto& option : device.options) { if (option.name.compare("zPvPosMax") == 0) { zPvPosMax = option.defaultValue.get(); + break; } } break; diff --git a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx index 48e81761b7a..1b0231bf0e8 100644 --- a/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx +++ b/PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx @@ -397,6 +397,7 @@ struct HfCandidateSigmac0plusplusMc { for (const auto& option : device.options) { if (option.name.compare("zPvPosMax") == 0) { zPvPosMax = option.defaultValue.get(); + break; } } break;