Skip to content

Commit 55b3496

Browse files
authored
[PWGHF] Refactor XiC0 and OmegaC0 QA workflows (#18728)
1 parent b666bd3 commit 55b3496

12 files changed

Lines changed: 2387 additions & 2909 deletions

‎PWGHF/Core/DecayChannels.h‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace o2::hf_decay
2727

2828
// TODO
2929
// - HF cascades (Λc+ → p K0short)
30-
// - HF cascades to LF cascades (Ωc0/Ξc0 → Ξ+ π−, Ξc+ → Ξ+ π− π+)
3130
// - Σc
3231

3332
using HfDecayChannel = int8_t;
@@ -296,6 +295,21 @@ enum DecayChannelMain : HfDecayChannel {
296295
};
297296
} // namespace hf_cand_sigmac
298297

298+
// @brief XiC0 and OmegaC0 candidates: main channels
299+
namespace hf_cand_casc_bach_qa
300+
{
301+
enum DecayChannelMain : HfDecayChannel {
302+
// XiC0
303+
Xic0ToXiPi = 1, // Xi- π+ → Λ π- π+ → p π- π- π+
304+
Xic0ToOmegaK = 2, // Ω- K+ → Λ K- K+ → p π- K- K+
305+
// OmegaC0
306+
Omegac0ToOmegaPi = 3, // Ω- π+ → Λ π- π+ → p π- π- π+
307+
Omegac0ToOmegaK = 4, // Ω- K+ → Λ K- K+ → p π- K- K+
308+
Omegac0ToXiPi = 5, // Xi- π+ → Λ π- π+ → p π- π- π+
309+
NChannelsMain = Omegac0ToXiPi // last channel
310+
};
311+
} // namespace hf_cand_casc_bach_qa
312+
299313
} // namespace o2::hf_decay
300314

301315
#endif // PWGHF_CORE_DECAYCHANNELS_H_

‎PWGHF/Core/HfHelper.h‎

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,12 +515,84 @@ struct HfHelper {
515515
return candidate.m(std::array{o2::constants::physics::MassXiMinus, o2::constants::physics::MassPiPlus});
516516
}
517517

518+
template <typename T>
519+
static auto invMassOmegaczeroToXiPi(const T& candidate)
520+
{
521+
return candidate.m(std::array{o2::constants::physics::MassXiMinus, o2::constants::physics::MassPiPlus});
522+
}
523+
518524
template <typename T>
519525
static auto invMassOmegaczeroToOmegaPi(const T& candidate)
520526
{
521527
return candidate.m(std::array{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus});
522528
}
523529

530+
template <typename T>
531+
static auto invMassOmegaczeroToOmegaK(const T& candidate)
532+
{
533+
return candidate.m(std::array{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassKPlus});
534+
}
535+
536+
template <typename T>
537+
static auto yXiczero(const T& candidate)
538+
{
539+
return candidate.y(o2::constants::physics::MassXiC0);
540+
}
541+
542+
template <typename T>
543+
static auto eXiczero(const T& candidate)
544+
{
545+
return candidate.e(o2::constants::physics::MassXiC0);
546+
}
547+
548+
template <typename T>
549+
static auto ctXiczero(const T& candidate)
550+
{
551+
return candidate.ct(o2::constants::physics::MassXiC0);
552+
}
553+
554+
template <typename T>
555+
static auto cosThetaStarXiczeroToXiPi(const T& candidate)
556+
{
557+
return candidate.cosThetaStar(std::array{o2::constants::physics::MassXiMinus, o2::constants::physics::MassPiPlus}, o2::constants::physics::MassXiC0, 1);
558+
}
559+
560+
template <typename T>
561+
static auto yOmegaczero(const T& candidate)
562+
{
563+
return candidate.y(o2::constants::physics::MassOmegaC0);
564+
}
565+
566+
template <typename T>
567+
static auto eOmegaczero(const T& candidate)
568+
{
569+
return candidate.e(o2::constants::physics::MassOmegaC0);
570+
}
571+
572+
template <typename T>
573+
static auto ctOmegaczero(const T& candidate)
574+
{
575+
return candidate.ct(o2::constants::physics::MassOmegaC0);
576+
}
577+
578+
template <typename T>
579+
static auto cosThetaStarOmegaczeroToXiPi(const T& candidate)
580+
{
581+
return candidate.cosThetaStar(std::array{o2::constants::physics::MassXiMinus, o2::constants::physics::MassPiPlus}, o2::constants::physics::MassOmegaC0, 1);
582+
}
583+
584+
template <typename T>
585+
static auto cosThetaStarOmegaczeroToOmegaPi(const T& candidate)
586+
{
587+
return candidate.cosThetaStar(std::array{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus}, o2::constants::physics::MassOmegaC0, 1);
588+
}
589+
590+
template <typename T>
591+
static auto cosThetaStarOmegaczeroToOmegaK(const T& candidate)
592+
{
593+
return candidate.cosThetaStar(std::array{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassKPlus}, o2::constants::physics::MassOmegaC0, 1);
594+
}
595+
524596
// hf_cand_casc_lf_3prong
525597

526598
template <typename T>

0 commit comments

Comments
 (0)