1717
1818#include " PWGHF/Core/DecayChannels.h"
1919#include " PWGHF/Core/HfHelper.h"
20+ #include " PWGHF/D2H/Utils/utilsSigmac.h"
2021#include " PWGHF/DataModel/CandidateReconstructionTables.h"
2122#include " PWGHF/DataModel/CandidateSelectionTables.h"
2223
@@ -340,27 +341,6 @@ struct HfTaskSigmac {
340341
341342 }; // / end init
342343
343- // / @brief Function to determine if the reconstructed candidate Σc0,++ decays into Λc+ → pK-π+, Λc+ → π+K-p or both
344- // / @tparam L template for Lc daughter of Sc candidate
345- // / @tparam S template for Sc candidate
346- // / @param candidateLc Lc daughter of Sc candidate
347- // / @param candSc Sc candidate
348- // / @return 0: none; 1: only Λc+ → pK-π+ possible; 2: Λc+ → π+K-p possible; 3: both possible
349- template <typename L, typename S>
350- int8_t isDecayToPKPiToPiKP (L& candidateLc, S& candSc)
351- {
352- int8_t channel = 0 ;
353- if ((candidateLc.isSelLcToPKPi () >= 1 ) && candSc.statusSpreadLcMinvPKPiFromPDG ()) {
354- // Λc+ → pK-π+ and within the requested mass to build the Σc0,++
355- SETBIT (channel, o2::aod::hf_cand_sigmac::Decays::PKPi);
356- }
357- if ((candidateLc.isSelLcToPiKP () >= 1 ) && candSc.statusSpreadLcMinvPiKPFromPDG ()) {
358- // Λc+ → π+K-p and within the requested mass to build the Σc0,++
359- SETBIT (channel, o2::aod::hf_cand_sigmac::Decays::PiKP);
360- }
361- return channel; // / 0: none; 1: pK-π+ only; 2: π+K-p only; 3: both possible
362- }
363-
364344 // / @brief function to fill the histograms needed in analysis (data)
365345 // / @param candidatesSc are the reconstructed candidate Σc0,++
366346 // / @param
@@ -386,7 +366,7 @@ struct HfTaskSigmac {
386366 const auto & candidateLc = candSc.prongLc_as <CandsLc>();
387367 // const int iscandidateLcpKpi = (candidateLc.isSelLcToPKPi() >= 1) && candSc.statusSpreadLcMinvPKPiFromPDG(); // Λc+ → pK-π+ and within the requested mass to build the Σc0,++
388368 // const int iscandidateLcpiKp = (candidateLc.isSelLcToPiKP() >= 1) && candSc.statusSpreadLcMinvPiKPFromPDG(); // Λc+ → π+K-p and within the requested mass to build the Σc0,++
389- const int8_t isCandPKPiPiKP = isDecayToPKPiToPiKP (candidateLc, candSc);
369+ const int8_t isCandPKPiPiKP = hf_sigmac_utils:: isDecayToPKPiToPiKP (candidateLc, candSc);
390370 double massSc (-1 .), massLc (-1 .), deltaMass (-1 .);
391371 double ptSc (candSc.pt ()), ptLc (candidateLc.pt ());
392372 double etaSc (candSc.eta ()), etaLc (candidateLc.eta ());
@@ -817,7 +797,7 @@ struct HfTaskSigmac {
817797 // / get the candidate Λc+ used to build the Σc0
818798 // / and understand which mass hypotheses are possible
819799 const auto & candidateLc = candSc.prongLc_as <CandsLc>();
820- const int8_t isCandPKPiPiKP = isDecayToPKPiToPiKP (candidateLc, candSc);
800+ const int8_t isCandPKPiPiKP = hf_sigmac_utils:: isDecayToPKPiToPiKP (candidateLc, candSc);
821801
822802 // candidateLc.flagMcDecayChanRec();
823803
0 commit comments