Skip to content

Commit 93be5a8

Browse files
author
Luca Micheletti
committed
Moving X functions from hf_cand_prong3 to hf_cand_x
1 parent 9b10237 commit 93be5a8

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

PWGHF/DataModel/HFSecondaryVertex.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -702,32 +702,6 @@ auto InvMassXicToPiKP(const T& candidate)
702702
return InvMassLcpiKp(candidate);
703703
}
704704

705-
// X → Jpsi π+ π-
706-
// TODO: add pdg code for X (9920443), temporarily hardcode mass here:
707-
float massX = 3.872; // replace this with: "RecoDecay::getMassPDG(9920443)" when pdg is added
708-
template <typename T>
709-
auto CtX(const T& candidate)
710-
{
711-
return candidate.ct(massX);
712-
}
713-
714-
template <typename T>
715-
auto YX(const T& candidate)
716-
{
717-
return candidate.y(massX);
718-
}
719-
720-
template <typename T>
721-
auto EX(const T& candidate)
722-
{
723-
return candidate.e(massX);
724-
}
725-
template <typename T>
726-
auto InvMassXToJpsiPiPi(const T& candidate)
727-
{
728-
return candidate.m(array{RecoDecay::getMassPDG(443), RecoDecay::getMassPDG(kPiPlus), RecoDecay::getMassPDG(kPiPlus)});
729-
}
730-
731705
} // namespace hf_cand_prong3
732706

733707
// 3-prong decay candidate table
@@ -804,6 +778,32 @@ enum DecayType { XToJpsiToEEPiPi = 0,
804778
XToJpsiToMuMuPiPi }; // move this to a dedicated cascade namespace in the future?
805779
} // namespace hf_cand_x
806780

781+
// X → Jpsi π+ π-
782+
// TODO: add pdg code for X (9920443), temporarily hardcode mass here:
783+
float massX = 3.872; // replace this with: "RecoDecay::getMassPDG(9920443)" when pdg is added
784+
template <typename T>
785+
auto CtX(const T& candidate)
786+
{
787+
return candidate.ct(massX);
788+
}
789+
790+
template <typename T>
791+
auto YX(const T& candidate)
792+
{
793+
return candidate.y(massX);
794+
}
795+
796+
template <typename T>
797+
auto EX(const T& candidate)
798+
{
799+
return candidate.e(massX);
800+
}
801+
template <typename T>
802+
auto InvMassXToJpsiPiPi(const T& candidate)
803+
{
804+
return candidate.m(array{RecoDecay::getMassPDG(443), RecoDecay::getMassPDG(kPiPlus), RecoDecay::getMassPDG(kPiPlus)});
805+
}
806+
807807
// declare dedicated X candidate table
808808
DECLARE_SOA_TABLE(HfCandXBase, "AOD", "HFCANDXBASE",
809809
// general columns

PWGHF/TableProducer/HFTreeCreatorXToJpsiPiPi.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "ReconstructionDataFormats/DCA.h"
2727

2828
using namespace o2;
29+
using namespace o2::aod;
2930
using namespace o2::framework;
3031
using namespace o2::aod::hf_cand_x;
3132

PWGHF/Tasks/taskX.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ using namespace o2::aod;
2727
using namespace o2::analysis;
2828
using namespace o2::analysis::hf_cuts_x_tojpsipipi;
2929
using namespace o2::framework;
30-
using namespace o2::aod::hf_cand_prong3;
3130
using namespace o2::aod::hf_cand_x;
3231
using namespace o2::framework::expressions;
3332
using namespace o2::aod::hf_cand_prong2;

0 commit comments

Comments
 (0)