|
31 | 31 | #include <Framework/InitContext.h> |
32 | 32 | #include <Framework/runDataProcessing.h> |
33 | 33 |
|
| 34 | +#include <TPDGCode.h> |
| 35 | + |
34 | 36 | #include <Rtypes.h> |
35 | 37 |
|
36 | 38 | #include <cstdint> |
37 | 39 | #include <numeric> |
| 40 | +#include <vector> |
38 | 41 |
|
39 | 42 | using namespace o2; |
40 | 43 | using namespace o2::framework; |
@@ -881,10 +884,10 @@ struct HfTreeCreatorXicToXiPiPi { |
881 | 884 | for (const auto& particle : particles) { |
882 | 885 | float ptPi0{-1.f}, ptPi1{-1.f}, ptPiBachelor{-1.f}, ptPiFromLambda{-1.f}, ptPrFromLambda{-1.f}; |
883 | 886 | float etaPi0{-1.f}, etaPi1{-1.f}, etaPiBachelor{-1.f}, etaPiFromLambda{-1.f}, etaPrFromLambda{-1.f}; |
| 887 | + if (!TESTBIT(std::abs(particle.flagMcMatchGen()), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiPiPi) && !TESTBIT(std::abs(particle.flagMcMatchGen()), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiResPiToXiPiPi)) { // we cannot filter, otherwise we have no daughter particles in the filtered table |
| 888 | + continue; |
| 889 | + } |
884 | 890 | if (fillGenInfoForAcceptance) { |
885 | | - if (!TESTBIT(particle.flagMcMatchGen(), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiPiPi) && !TESTBIT(particle.flagMcMatchGen(), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiResPiToXiPiPi)) { // we cannot filter, otherwise we have no daughter particles in the filtered table |
886 | | - continue; |
887 | | - } |
888 | 891 | getMcDaughterInformation(particles, particle, ptPi0, ptPi1, ptPiBachelor, ptPiFromLambda, ptPrFromLambda, etaPi0, etaPi1, etaPiBachelor, etaPiFromLambda, etaPrFromLambda); |
889 | 892 | } |
890 | 893 | rowCandidateFullParticles( |
@@ -953,10 +956,10 @@ struct HfTreeCreatorXicToXiPiPi { |
953 | 956 | for (const auto& particle : particles) { |
954 | 957 | float ptPi0{-1.f}, ptPi1{-1.f}, ptPiBachelor{-1.f}, ptPiFromLambda{-1.f}, ptPrFromLambda{-1.f}; |
955 | 958 | float etaPi0{-1.f}, etaPi1{-1.f}, etaPiBachelor{-1.f}, etaPiFromLambda{-1.f}, etaPrFromLambda{-1.f}; |
| 959 | + if (!TESTBIT(std::abs(particle.flagMcMatchGen()), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiPiPi) && !TESTBIT(std::abs(particle.flagMcMatchGen()), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiResPiToXiPiPi)) { // we cannot filter, otherwise we have no daughter particles in the filtered table |
| 960 | + continue; |
| 961 | + } |
956 | 962 | if (fillGenInfoForAcceptance) { |
957 | | - if (!TESTBIT(particle.flagMcMatchGen(), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiPiPi) && !TESTBIT(particle.flagMcMatchGen(), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiResPiToXiPiPi)) { // we cannot filter, otherwise we have no daughter particles in the filtered table |
958 | | - continue; |
959 | | - } |
960 | 963 | getMcDaughterInformation(particles, particle, ptPi0, ptPi1, ptPiBachelor, ptPiFromLambda, ptPrFromLambda, etaPi0, etaPi1, etaPiBachelor, etaPiFromLambda, etaPrFromLambda); |
961 | 964 | } |
962 | 965 | rowCandidateFullParticles( |
@@ -1017,10 +1020,10 @@ struct HfTreeCreatorXicToXiPiPi { |
1017 | 1020 | for (const auto& particle : particles) { |
1018 | 1021 | float ptPi0{-1.f}, ptPi1{-1.f}, ptPiBachelor{-1.f}, ptPiFromLambda{-1.f}, ptPrFromLambda{-1.f}; |
1019 | 1022 | float etaPi0{-1.f}, etaPi1{-1.f}, etaPiBachelor{-1.f}, etaPiFromLambda{-1.f}, etaPrFromLambda{-1.f}; |
| 1023 | + if (!TESTBIT(std::abs(particle.flagMcMatchGen()), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiPiPi) && !TESTBIT(std::abs(particle.flagMcMatchGen()), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiResPiToXiPiPi)) { // we cannot filter, otherwise we have no daughter particles in the filtered table |
| 1024 | + continue; |
| 1025 | + } |
1020 | 1026 | if (fillGenInfoForAcceptance) { |
1021 | | - if (!TESTBIT(particle.flagMcMatchGen(), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiPiPi) && !TESTBIT(particle.flagMcMatchGen(), aod::hf_cand_xic_to_xi_pi_pi::DecayType::XicToXiResPiToXiPiPi)) { // we cannot filter, otherwise we have no daughter particles in the filtered table |
1022 | | - continue; |
1023 | | - } |
1024 | 1027 | getMcDaughterInformation(particles, particle, ptPi0, ptPi1, ptPiBachelor, ptPiFromLambda, ptPrFromLambda, etaPi0, etaPi1, etaPiBachelor, etaPiFromLambda, etaPrFromLambda); |
1025 | 1028 | } |
1026 | 1029 |
|
|
0 commit comments