Skip to content

Commit 0c8947c

Browse files
committed
Restore physics notation in femto comments
1 parent 491b442 commit 0c8947c

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

PWGCF/DataModel/FemtoDerived.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ DECLARE_SOA_COLUMN(Charge, charge, int8_t); //! Charge of c
245245
DECLARE_SOA_COLUMN(Prong0Id, prong0Id, int); //! Track id of charm hadron prong0
246246
DECLARE_SOA_COLUMN(Prong1Id, prong1Id, int); //! Track id of charm hadron prong1
247247
DECLARE_SOA_COLUMN(Prong2Id, prong2Id, int); //! Track id of charm hadron prong2
248-
DECLARE_SOA_COLUMN(XiProngId, xiProngId, int); //! Cascade id of the Xi prong in Xic -> Xi pi pi candidates
248+
DECLARE_SOA_COLUMN(XiProngId, xiProngId, int); //! Cascade id of the Ξ prong in Ξc → Ξππ candidates
249249
DECLARE_SOA_COLUMN(Prong0Pt, prong0Pt, float); //! Track pT of charm hadron prong0
250250
DECLARE_SOA_COLUMN(Prong1Pt, prong1Pt, float); //! Track pT of charm hadron prong1
251251
DECLARE_SOA_COLUMN(Prong2Pt, prong2Pt, float); //! Track pT of charm hadron prong2
@@ -259,9 +259,9 @@ DECLARE_SOA_COLUMN(CandidateSelFlag, candidateSelFlag, int); //! Selection o
259259
DECLARE_SOA_COLUMN(BDTBkg, bdtBkg, float); //! Background score using Boosted Decision Tree for charm hadron
260260
DECLARE_SOA_COLUMN(BDTPrompt, bdtPrompt, float); //! Prompt signal score using Boosted Decision Tree for charm hadron
261261
DECLARE_SOA_COLUMN(BDTFD, bdtFD, float); //! Feed-down score using Boosted Decision Tree for charm hadron
262-
DECLARE_SOA_COLUMN(CascBachelorTrackId, cascBachelorTrackId, int); //! Bachelor track ID from Xi cascade (Xic -> Xi pi pi)
263-
DECLARE_SOA_COLUMN(CascPosTrackId, cascPosTrackId, int); //! Positive track ID from Lambda in Xi cascade (Xic -> Xi pi pi)
264-
DECLARE_SOA_COLUMN(CascNegTrackId, cascNegTrackId, int); //! Negative track ID from Lambda in Xi cascade (Xic -> Xi pi pi)
262+
DECLARE_SOA_COLUMN(CascBachelorTrackId, cascBachelorTrackId, int); //! Bachelor track ID from Ξ cascade (Ξc± → Ξππ)
263+
DECLARE_SOA_COLUMN(CascPosTrackId, cascPosTrackId, int); //! Positive track ID from Λ in Ξ cascade (Ξc± → Ξππ)
264+
DECLARE_SOA_COLUMN(CascNegTrackId, cascNegTrackId, int); //! Negative track ID from Λ in Ξ cascade (Ξc± → Ξππ)
265265
DECLARE_SOA_COLUMN(CascBachelorPt, cascBachelorPt, float); //! pT of the bachelor track from the Xi cascade
266266
DECLARE_SOA_COLUMN(CascBachelorPhi, cascBachelorPhi, float); //! phi of the bachelor track from the Xi cascade
267267
DECLARE_SOA_COLUMN(CascBachelorEta, cascBachelorEta, float); //! eta of the bachelor track from the Xi cascade
@@ -439,7 +439,7 @@ DECLARE_SOA_TABLE(FDHfCand3Prong, "AOD", "FDHFCAND3PRONG", //! Table to store th
439439
fdhf::Phi<fdhf::Prong0Pt, fdhf::Prong0Phi, fdhf::Prong0Eta, fdhf::Prong1Pt, fdhf::Prong1Phi, fdhf::Prong1Eta, fdhf::Prong2Pt, fdhf::Prong2Phi, fdhf::Prong2Eta>,
440440
fdhf::Pt<fdhf::Prong0Pt, fdhf::Prong0Phi, fdhf::Prong0Eta, fdhf::Prong1Pt, fdhf::Prong1Phi, fdhf::Prong1Eta, fdhf::Prong2Pt, fdhf::Prong2Phi, fdhf::Prong2Eta>);
441441

442-
DECLARE_SOA_TABLE(FDHfCand3ProngXic, "AOD", "FDHFXIC3PRONG", //! Table to store the derived data for Xic -> Xi pi pi candidates
442+
DECLARE_SOA_TABLE(FDHfCand3ProngXic, "AOD", "FDHFXIC3PRONG", //! Table to store the derived data for Ξc → Ξππ candidates
443443
o2::soa::Index<>,
444444
femtodreamparticle::FDCollisionId,
445445
fdhf::TimeStamp,
@@ -470,7 +470,7 @@ DECLARE_SOA_TABLE(FDHfCand3ProngXic, "AOD", "FDHFXIC3PRONG", //! Table to store
470470
fdhf::Phi<fdhf::Prong0Pt, fdhf::Prong0Phi, fdhf::Prong0Eta, fdhf::Prong1Pt, fdhf::Prong1Phi, fdhf::Prong1Eta, fdhf::Prong2Pt, fdhf::Prong2Phi, fdhf::Prong2Eta>,
471471
fdhf::Pt<fdhf::Prong0Pt, fdhf::Prong0Phi, fdhf::Prong0Eta, fdhf::Prong1Pt, fdhf::Prong1Phi, fdhf::Prong1Eta, fdhf::Prong2Pt, fdhf::Prong2Phi, fdhf::Prong2Eta>);
472472

473-
DECLARE_SOA_TABLE(FDHfCand3ProngXicQa, "AOD", "FDHFXIC3PQA", //! QA extension table for Xi daughters in Xic -> Xi pi pi candidates
473+
DECLARE_SOA_TABLE(FDHfCand3ProngXicQa, "AOD", "FDHFXIC3PQA", //! QA extension table for Ξ daughters in Ξc → Ξππ candidates
474474
o2::soa::Index<>,
475475
fdhf::CascBachelorPt,
476476
fdhf::CascBachelorPhi,

PWGHF/HFC/Tasks/taskCharmHadronsTrackFemtoDream.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ struct HfTaskCharmHadronsTrackFemtoDream {
363363
}
364364

365365
/// Compute the charm hadron candidates mass with the daughter masses
366-
/// assumes the candidate is either a D+ or Lc+ or D0 or Dstar or Xic+
366+
/// assumes the candidate is either a D+ or Λc+ or D0 or Dstar or Ξc+
367367
template <DecayChannel Channel, typename Candidate>
368368
float getCharmHadronMass(const Candidate& cand, bool ReturnDaughMass = false)
369369
{
@@ -375,18 +375,18 @@ struct HfTaskCharmHadronsTrackFemtoDream {
375375
}
376376
invMass = cand.m(std::array{MassPiPlus, MassKPlus, MassProton});
377377
return invMass;
378-
} else if constexpr (Channel == DecayChannel::DplusToPiKPi) { // D+ -> pi K pi
378+
} else if constexpr (Channel == DecayChannel::DplusToPiKPi) { // D+ → π K π (PDG: 411)
379379
invMass = cand.m(std::array{MassPiPlus, MassKPlus, MassPiPlus});
380380
return invMass;
381-
} else if constexpr (Channel == DecayChannel::D0ToPiK) { // D0 -> pi K
381+
} else if constexpr (Channel == DecayChannel::D0ToPiK) { // D0 → π K (PDG: 421)
382382
if (cand.candidateSelFlag() == 1) {
383383
invMass = cand.m(std::array{MassPiPlus, MassKPlus});
384384
return invMass;
385385
} else {
386386
invMass = cand.m(std::array{MassKPlus, MassPiPlus});
387387
return invMass;
388388
}
389-
} else if constexpr (Channel == DecayChannel::DstarToD0Pi) { // D* -> D0 pi
389+
} else if constexpr (Channel == DecayChannel::DstarToD0Pi) { // D* → D0π (PDG: 413)
390390
float mDstar = 0.f;
391391
float mD0 = 0.f;
392392
if (cand.charge() > 0.f) {
@@ -436,7 +436,7 @@ struct HfTaskCharmHadronsTrackFemtoDream {
436436
LOG(fatal) << "Invalid PDG code for track mass hypothesis: " << trkPDGCode;
437437
}
438438

439-
// D0 -> K pi + track (2-prong)
439+
// D0 K π + track (2-prong)
440440
if constexpr (Channel == DecayChannel::D0ToPiK) {
441441
const auto pVecCharmTrk = std::array{pVecProng0, pVecProng1, pVecTrack};
442442
std::array<double, 3> massCharmTrk{};
@@ -450,15 +450,15 @@ struct HfTaskCharmHadronsTrackFemtoDream {
450450
return static_cast<float>(RecoDecay::m(pVecCharmTrk, massCharmTrk));
451451
}
452452

453-
// Xic+ -> Xi pi pi + track
453+
// Ξc⁺ → Ξ π π + track
454454
if constexpr (Channel == DecayChannel::XicToXiPiPi) {
455455
auto pVecProng2 = RecoDecayPtEtaPhi::pVector(cand.prong2Pt(), cand.prong2Eta(), cand.prong2Phi());
456456
const auto pVecCharmTrk = std::array{pVecProng0, pVecProng1, pVecProng2, pVecTrack};
457457
const std::array<double, 4> massCharmTrk{MassXiMinus, MassPiPlus, MassPiPlus, trackMassHyp};
458458
return static_cast<float>(RecoDecay::m(pVecCharmTrk, massCharmTrk));
459459
}
460460

461-
// 3-prong: Lc -> p K pi, D+ -> pi K pi, D* -> D0 pi + track
461+
// 3-prong: Λc → p K π, D+ → π K π, D* → D0π + track
462462
if constexpr (Channel == DecayChannel::LcToPKPi || Channel == DecayChannel::DplusToPiKPi || Channel == DecayChannel::DstarToD0Pi) {
463463
auto pVecProng2 = RecoDecayPtEtaPhi::pVector(cand.prong2Pt(), cand.prong2Eta(), cand.prong2Phi());
464464
const auto pVecCharmTrk = std::array{pVecProng0, pVecProng1, pVecProng2, pVecTrack};
@@ -472,10 +472,10 @@ struct HfTaskCharmHadronsTrackFemtoDream {
472472
massCharmTrk = {MassPiPlus, MassKPlus, MassProton, trackMassHyp};
473473
}
474474
} else if constexpr (Channel == DecayChannel::DplusToPiKPi) {
475-
// D+ -> pi K pi
475+
// D⁺ → π K π
476476
massCharmTrk = {MassPiPlus, MassKPlus, MassPiPlus, trackMassHyp};
477477
} else if constexpr (Channel == DecayChannel::DstarToD0Pi) {
478-
// D* -> D0 pi
478+
// D* → D0π
479479
if (cand.candidateSelFlag() == 1) {
480480
massCharmTrk = {MassPiPlus, MassKPlus, MassPiPlus, trackMassHyp};
481481
} else {

0 commit comments

Comments
 (0)