Skip to content

Commit a64fcc9

Browse files
committed
add flag for p-Dplus femto
1 parent 51e2685 commit a64fcc9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,11 @@ class FemtoDreamContainer
203203
const float kT = FemtoDreamMath::getkT(part1, mMassOne, part2, mMassTwo);
204204
if constexpr (isHF) {
205205
float mP2;
206-
if (part2.candidateSelFlag() == o2::aod::fdhf::lcToPKPi) {
206+
if (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);

0 commit comments

Comments
 (0)