Skip to content

Commit 095717f

Browse files
Yunfan-Liualibuildzhangbiao-phy
authored
[PWGCF,PWGHF] Add a task for p-Dplus correlations in femtodream (#12102)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch> Co-authored-by: BiaoZhang (张彪) <52267892+zhangbiao-phy@users.noreply.github.com>
1 parent c7b9563 commit 095717f

File tree

5 files changed

+310
-161
lines changed

5 files changed

+310
-161
lines changed

PWGCF/DataModel/FemtoDerived.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ namespace fdhf
208208
enum CharmHadronMassHypo {
209209
wrongParticle = 0,
210210
lcToPKPi = 1,
211-
lcToPiKP = 2
211+
lcToPiKP = 2,
212+
dplusToPiKPi = 4
212213
};
213214
DECLARE_SOA_COLUMN(GIndexCol, gIndexCol, int); //! Global index for the collision
214215
DECLARE_SOA_COLUMN(TimeStamp, timeStamp, int64_t); //! Timestamp for the collision
@@ -227,7 +228,7 @@ DECLARE_SOA_COLUMN(Prong2Eta, prong2Eta, float); //! Track et
227228
DECLARE_SOA_COLUMN(Prong0Phi, prong0Phi, float); //! Track phi of charm hadron prong0
228229
DECLARE_SOA_COLUMN(Prong1Phi, prong1Phi, float); //! Track phi of charm hadron prong1
229230
DECLARE_SOA_COLUMN(Prong2Phi, prong2Phi, float); //! Track phi of charm hadron prong2
230-
DECLARE_SOA_COLUMN(CandidateSelFlag, candidateSelFlag, int8_t); //! Selection of mass hypothesis for charm hadron (1 for Lc -> pkpi, 2 for Lc -> pikp)
231+
DECLARE_SOA_COLUMN(CandidateSelFlag, candidateSelFlag, int8_t); //! Selection of mass hypothesis for charm hadron (1 for Lc -> pkpi, 2 for Lc -> pikp, 4 for D+ -> pikpi)
231232
DECLARE_SOA_COLUMN(BDTBkg, bdtBkg, float); //! Background score using Boosted Decision Tree for charm hadron
232233
DECLARE_SOA_COLUMN(BDTPrompt, bdtPrompt, float); //! Prompt signal score using Boosted Decision Tree for charm hadron
233234
DECLARE_SOA_COLUMN(BDTFD, bdtFD, float); //! Feed-down score using Boosted Decision Tree for charm hadron

PWGCF/FemtoDream/Core/femtoDreamContainer.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,12 @@ class FemtoDreamContainer
202202
{
203203
const float kT = FemtoDreamMath::getkT(part1, mMassOne, part2, mMassTwo);
204204
if constexpr (isHF) {
205-
float mP2;
206-
if (part2.candidateSelFlag() == o2::aod::fdhf::lcToPKPi) {
205+
float mP2 = 0.0;
206+
if (part2.candidateSelFlag() == o2::aod::fdhf::dplusToPiKPi) {
207+
mP2 = part2.m(std::array{o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
208+
} else if (part2.candidateSelFlag() == o2::aod::fdhf::lcToPKPi) {
207209
mP2 = part2.m(std::array{o2::constants::physics::MassProton, o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
208-
} else {
210+
} else if (part2.candidateSelFlag() == o2::aod::fdhf::lcToPiKP) {
209211
mP2 = part2.m(std::array{o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus, o2::constants::physics::MassProton});
210212
}
211213
mHistogramRegistry->fill(HIST(mFolderSuffix[mEventType]) + HIST(o2::aod::femtodreamMCparticle::MCTypeName[mc]) + HIST("/relPairkstarmP2"), femtoObs, mP2);

PWGCF/FemtoDream/Core/femtoDreamUtils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ inline float getMass(int pdgCode)
5252
case o2::constants::physics::Pdg::kPhi:
5353
mass = o2::constants::physics::MassPhi;
5454
break;
55+
case o2::constants::physics::Pdg::kDPlus:
56+
mass = o2::constants::physics::MassDPlus;
57+
break;
5558
case o2::constants::physics::Pdg::kLambdaCPlus:
5659
mass = o2::constants::physics::MassLambdaCPlus;
5760
break;

0 commit comments

Comments
 (0)