Skip to content

Commit 3f9a4c1

Browse files
mfagginMattia Faggin
andauthored
PWGHF: add info about K-pi pairs from Lc->pKpi decays, and add direct/reso. decay channel info (#6590)
* Add KPi mass selection for Lc->pKpi. * Add KPi inv. mass to Lc sparses. * Fix pion mass in KPi mass calculation. * Add reso. channel info in LC sparses. * Add reso. channel info in gen. Lc sparses. * Add helper function for KPi pair mass. * Take K*0(892) mass from PhysicsConstants.h in O2. --------- Co-authored-by: Mattia Faggin <mfaggin@cern.ch>
1 parent cfd91c5 commit 3f9a4c1

5 files changed

Lines changed: 165 additions & 100 deletions

File tree

PWGHF/Core/HfHelper.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,18 @@ class HfHelper
358358
return candidate.m(std::array{o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus, o2::constants::physics::MassProton});
359359
}
360360

361+
template <typename T>
362+
auto invMassKPiPairLcToPKPi(const T& candidate)
363+
{
364+
return RecoDecay::m(std::array{candidate.pVectorProng1(), candidate.pVectorProng2()}, std::array{o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
365+
}
366+
367+
template <typename T>
368+
auto invMassKPiPairLcToPiKP(const T& candidate)
369+
{
370+
return RecoDecay::m(std::array{candidate.pVectorProng1(), candidate.pVectorProng0()}, std::array{o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
371+
}
372+
361373
// Ξc± → p± K∓ π±
362374

363375
template <typename T>

PWGHF/Core/SelectorCuts.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ constexpr double cuts[nBinsPt][nCutVars] = {{0.05, 0.2, 0.1, 1000.0, 0.2, 300.0,
462462
namespace hf_cuts_lc_to_p_k_pi
463463
{
464464
static constexpr int nBinsPt = 10;
465-
static constexpr int nCutVars = 7;
465+
static constexpr int nCutVars = 8;
466466
// default values for the pT bin edges (can be used to configure histogram axis)
467467
// offset by 1 from the bin numbers in cuts array
468468
constexpr double binsPt[nBinsPt + 1] = {
@@ -480,16 +480,16 @@ constexpr double binsPt[nBinsPt + 1] = {
480480
auto vecBinsPt = std::vector<double>{binsPt, binsPt + nBinsPt + 1};
481481

482482
// default values for the cuts
483-
constexpr double cuts[nBinsPt][nCutVars] = {{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 0 < pT < 1 */
484-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 1 < pT < 2 */
485-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 2 < pT < 3 */
486-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 3 < pT < 4 */
487-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 4 < pT < 5 */
488-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 5 < pT < 6 */
489-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 6 < pT < 8 */
490-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 8 < pT < 12 */
491-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}, /* 12 < pT < 24 */
492-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0.}}; /* 24 < pT < 36 */
483+
constexpr double cuts[nBinsPt][nCutVars] = {{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 0 < pT < 1 */
484+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 1 < pT < 2 */
485+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 2 < pT < 3 */
486+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 3 < pT < 4 */
487+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 4 < pT < 5 */
488+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 5 < pT < 6 */
489+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 6 < pT < 8 */
490+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 8 < pT < 12 */
491+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 12 < pT < 24 */
492+
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}}; /* 24 < pT < 36 */
493493

494494
// row labels
495495
static const std::vector<std::string> labelsPt = {
@@ -505,7 +505,7 @@ static const std::vector<std::string> labelsPt = {
505505
"pT bin 9"};
506506

507507
// column labels
508-
static const std::vector<std::string> labelsCutVar = {"m", "pT p", "pT K", "pT Pi", "Chi2PCA", "decay length", "cos pointing angle"};
508+
static const std::vector<std::string> labelsCutVar = {"m", "pT p", "pT K", "pT Pi", "Chi2PCA", "decay length", "cos pointing angle", "mass (Kpi)"};
509509
} // namespace hf_cuts_lc_to_p_k_pi
510510

511511
namespace hf_cuts_lc_to_k0s_p

0 commit comments

Comments
 (0)