@@ -59,14 +59,14 @@ using namespace o2;
5959using namespace o2 ::hf_evsel;
6060using namespace o2 ::hf_trkcandsel;
6161using namespace o2 ::aod::hf_cand_3prong;
62- using namespace o2 ::hf_decay;
62+ using namespace o2 ::hf_decay::hf_cand_3prong;
63+ using namespace o2 ::hf_corrbkg;
6364using namespace o2 ::hf_centrality;
6465using namespace o2 ::hf_occupancy;
6566using namespace o2 ::constants::physics;
6667using namespace o2 ::framework;
6768using namespace o2 ::framework::expressions;
6869using namespace o2 ::aod::pid_tpc_tof_utils;
69- using namespace o2 ::hf_corrbkg;
7070
7171// / Reconstruction of heavy-flavour 3-prong decay candidates
7272struct HfCandidateCreator3Prong {
@@ -853,6 +853,7 @@ struct HfCandidateCreator3ProngExpressions {
853853 Configurable<bool > matchKinkedDecayTopology{" matchKinkedDecayTopology" , false , " Match also candidates with tracks that decay with kinked topology" };
854854 Configurable<bool > matchInteractionsWithMaterial{" matchInteractionsWithMaterial" , false , " Match also candidates with tracks that interact with material" };
855855 Configurable<bool > matchCorrBkgs{" matchCorrBkgs" , false , " Match correlated background candidates" };
856+ Configurable<std::vector<int >> mothersCorrBkgsPdgs{" mothersCorrBkgsPdgs" , {411 , 413 , 431 , 4122 , 4232 }, " PDG codes of the mother particles of correlated background candidates" };
856857
857858 constexpr static std::size_t NDaughtersResonant{2u };
858859
@@ -947,10 +948,9 @@ struct HfCandidateCreator3ProngExpressions {
947948 }
948949
949950 if (matchCorrBkgs) {
950- std::array<int , 5 > mothersPdgCodes = {Pdg::kDPlus , Pdg::kDS , Pdg::kDStar , Pdg::kLambdaCPlus , Pdg::kXiCPlus };
951951 indexRec = -1 ; // Index of the matched reconstructed candidate
952952
953- for (const auto & pdg : mothersPdgCodes ) {
953+ for (const auto & pdg : mothersCorrBkgsPdgs. value ) {
954954 int depth = 2 ;
955955 if (pdg == Pdg::kDStar ) {
956956 depth = 3 ; // D0 resonant decays are active
@@ -1206,7 +1206,7 @@ struct HfCandidateCreator3ProngExpressions {
12061206 continue ;
12071207 }
12081208 if (matchCorrBkgs) {
1209- hf_mc_gen::fillMcMatchGen3Prong<true >(mcParticles, mcParticlesPerMcColl, rowMcMatchGen, rejectBackground);
1209+ hf_mc_gen::fillMcMatchGen3Prong<true >(mcParticles, mcParticlesPerMcColl, rowMcMatchGen, rejectBackground, mothersCorrBkgsPdgs. value );
12101210 } else {
12111211 hf_mc_gen::fillMcMatchGen3Prong (mcParticles, mcParticlesPerMcColl, rowMcMatchGen, rejectBackground);
12121212 }
0 commit comments