Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PWGHF/D2H/DataModel/ReducedDataModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ namespace hf_cand_b0_reduced
{
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, HfRed3Prongs, "_0"); //! Prong0 index
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, HfRedTrackBases, "_1"); //! Prong1 index
DECLARE_SOA_INDEX_COLUMN_FULL(ProngD0, prongD0, int, HfRed2Prongs, "_0"); //! ProngD0 index
DECLARE_SOA_INDEX_COLUMN_FULL(ProngBachPi, prongBachPi, int, HfRedTrackBases, "_1"); //! ProngBachPi index
DECLARE_SOA_INDEX_COLUMN_FULL(ProngD0, prongD0, int, HfRed2Prongs, "_0"); //! ProngD0 index
DECLARE_SOA_INDEX_COLUMN_FULL(ProngBachPi, prongBachPi, int, HfRedTrackBases, "_1"); //! ProngBachPi index
DECLARE_SOA_INDEX_COLUMN_FULL(ProngSoftPi, prongSoftPi, int, HfRedSoftPiBases, "_2"); //! ProngSoftPi index
DECLARE_SOA_COLUMN(Prong0MlScoreBkg, prong0MlScoreBkg, float); //! Bkg ML score of the D daughter
DECLARE_SOA_COLUMN(Prong0MlScorePrompt, prong0MlScorePrompt, float); //! Prompt ML score of the D daughter
Expand Down
24 changes: 14 additions & 10 deletions PWGHF/D2H/TableProducer/candidateSelectorB0ToDPiReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,13 @@ struct HfCandidateSelectorB0ToDPiReduced {
}
}

/// Utility function to retrieve the bach pion track
///from the B0 candidate in the D*-pi decay channel
/// Utility function to retrieve the bach pion track
/// from the B0 candidate in the D*-pi decay channel
/// \param candidate is the B0 candidate
/// \return bach pion track
template <IsB0ToDstarPiChannel T1>
auto getTrackBachPi(const T1& candidate) {
auto getTrackBachPi(const T1& candidate)
{
return candidate.template prongBachPi_as<TracksBachPion>();
}

Expand All @@ -170,21 +171,23 @@ struct HfCandidateSelectorB0ToDPiReduced {
/// \param prongBachPi is the candidate's bachelor pion prong
/// \note this method is used for B0 → D*- π+ candidates with D meson ML scores
template <bool withDmesMl, IsB0ToDstarPiChannel T1, typename T2>
auto getMlInputFeatures(const T1& candB0, const T2& prongBachPi) {
auto getMlInputFeatures(const T1& candB0, const T2& prongBachPi)
{
auto prongSoftPi = candB0.template prongSoftPi_as<TracksSoftPions>();
if constexpr (withDmesMl) {
return hfMlResponse.getInputFeaturesDStarPi<true>(candB0, prongBachPi, prongSoftPi);
return hfMlResponse.getInputFeaturesDStarPi<true>(candB0, prongBachPi, prongSoftPi);
} else {
return hfMlResponse.getInputFeaturesDStarPi<false>(candB0, prongBachPi, prongSoftPi);
return hfMlResponse.getInputFeaturesDStarPi<false>(candB0, prongBachPi, prongSoftPi);
}
}

/// Utility function to retrieve the bach pion track
///from the B0 candidate in the D-pi decay channel
/// Utility function to retrieve the bach pion track
/// from the B0 candidate in the D-pi decay channel
/// \param candidate is the B0 candidate
/// \return bach pion track
template <typename T1>
auto getTrackBachPi(const T1& candidate) {
auto getTrackBachPi(const T1& candidate)
{
return candidate.template prong1_as<TracksBachPion>();
}

Expand All @@ -193,7 +196,8 @@ struct HfCandidateSelectorB0ToDPiReduced {
/// \param prongBachPi is the candidate's bachelor pion prong
/// \note this method is used for B0 → D- π+ candidates with D meson ML scores
template <bool withDmesMl, typename T1, typename T2>
auto getMlInputFeatures(const T1& candB0, const T2& prongBachPi) {
auto getMlInputFeatures(const T1& candB0, const T2& prongBachPi)
{
if constexpr (withDmesMl) {
return hfMlResponse.getInputFeatures<true>(candB0, prongBachPi);
} else {
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/D2H/Tasks/taskB0Reduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ struct HfTaskB0Reduced {
doprocessMcDplusPi, doprocessMcDplusPiWithDecayTypeCheck, doprocessMcDplusPiWithDmesMl,
doprocessMcDplusPiWithDmesMlAndDecayTypeCheck, doprocessMcDplusPiWithB0Ml,
doprocessMcDplusPiWithB0MlAndDecayTypeCheck};
const AxisSpec axisMass = ((std::accumulate(processFuncDplusPi.begin(), processFuncDplusPi.end(), 0)) > 0) ? axisMassDminus : axisMassDeltaMassDStar;
std::string dMesSpecie{""};
const AxisSpec axisMass = ((std::accumulate(processFuncDplusPi.begin(), processFuncDplusPi.end(), 0)) > 0) ? axisMassDminus : axisMassDeltaMassDStar;
std::string dMesSpecie{""};
if ((std::accumulate(processFuncDplusPi.begin(), processFuncDplusPi.end(), 0)) > 0) {
dMesSpecie += "D^{#minus}";
} else {
Expand Down
Loading