|
33 | 33 | #include "PWGHF/DataModel/DerivedTables.h" |
34 | 34 | #include "PWGHF/Utils/utilsDerivedData.h" |
35 | 35 |
|
| 36 | +#include "PWGLF/DataModel/mcCentrality.h" |
| 37 | + |
36 | 38 | using namespace o2; |
37 | 39 | using namespace o2::framework; |
38 | 40 | using namespace o2::framework::expressions; |
@@ -85,13 +87,14 @@ struct HfDerivedDataCreatorLcToPKPi { |
85 | 87 |
|
86 | 88 | using CollisionsWCentMult = soa::Join<aod::Collisions, aod::CentFV0As, aod::CentFT0Ms, aod::CentFT0As, aod::CentFT0Cs, aod::PVMultZeqs>; |
87 | 89 | using CollisionsWMcCentMult = soa::Join<aod::Collisions, aod::McCollisionLabels, aod::CentFV0As, aod::CentFT0Ms, aod::CentFT0As, aod::CentFT0Cs, aod::PVMultZeqs>; |
| 90 | + using McCollisionsWCentMult = soa::Join<aod::McCollisions, aod::McCentFT0Ms>; |
88 | 91 | using TracksWPid = soa::Join<aod::Tracks, aod::TracksPidPi, aod::PidTpcTofFullPi, aod::TracksPidKa, aod::PidTpcTofFullKa, aod::TracksPidPr, aod::PidTpcTofFullPr>; |
89 | 92 | using SelectedCandidates = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelLc>>; |
90 | 93 | using SelectedCandidatesMc = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfCand3ProngMcRec, aod::HfSelLc>>; |
91 | 94 | using SelectedCandidatesMl = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelLc, aod::HfMlLcToPKPi>>; |
92 | 95 | using SelectedCandidatesMcMl = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfCand3ProngMcRec, aod::HfSelLc, aod::HfMlLcToPKPi>>; |
93 | 96 | using MatchedGenCandidatesMc = soa::Filtered<soa::Join<aod::McParticles, aod::HfCand3ProngMcGen>>; |
94 | | - using TypeMcCollisions = aod::McCollisions; |
| 97 | + using TypeMcCollisions = McCollisionsWCentMult; |
95 | 98 |
|
96 | 99 | Filter filterSelectCandidates = aod::hf_sel_candidate_lc::isSelLcToPKPi >= 1 || aod::hf_sel_candidate_lc::isSelLcToPiKP >= 1; |
97 | 100 | Filter filterMcGenMatching = nabs(aod::hf_cand_3prong::flagMcMatchGen) == static_cast<int8_t>(BIT(aod::hf_cand_3prong::DecayType::LcToPKPi)); |
@@ -159,7 +162,8 @@ struct HfDerivedDataCreatorLcToPKPi { |
159 | 162 | rowMcCollBase( |
160 | 163 | mcCollision.posX(), |
161 | 164 | mcCollision.posY(), |
162 | | - mcCollision.posZ()); |
| 165 | + mcCollision.posZ(), |
| 166 | + mcCollision.centFT0M()); |
163 | 167 | } |
164 | 168 | if (fillMcCollId) { |
165 | 169 | rowMcCollId( |
|
0 commit comments