Skip to content

Commit 96d00c4

Browse files
committed
Matching of D*->D0pi in resonances data Creator for backgoround studies
1 parent 87f33ea commit 96d00c4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

PWGHF/Core/DecayChannels.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ enum DecayChannelMain : int8_t {
250250
// Xic(3080)0
251251
Xic3080zeroToD0Lambda = 14, // D0 Λ
252252
// Xic(3080)+
253-
Xic3080plusToDplusLambda = 15 // D+ Λ
253+
Xic3080plusToDplusLambda = 15, // D+ Λ
254+
// D*+
255+
DstarToD0Pi = 16, // D0 π+
256+
NChannelsMain = DstarToD0Pi // last channel
254257
};
255258
} // namespace hf_cand_reso
256259
} // namespace o2::hf_decay

PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ struct HfDataCreatorCharmResoReduced {
350350
doprocessDstarV0MC || doprocessDstarTrackMC || doprocessDstarV0AndTrackMC || doprocessDstarV0MCWithMl || doprocessDstarTrackMCWithMl || doprocessDstarV0AndTrackMCWithMl ||
351351
doprocessDplusV0MC || doprocessDplusTrackMC || doprocessDplusV0AndTrackMC || doprocessDplusV0MCWithMl || doprocessDplusTrackMCWithMl || doprocessDplusV0AndTrackMCWithMl) {
352352
// MC Rec
353-
registry.add("hMCRecCounter", "Number of Reconstructed MC Matched candidates per channel", {HistType::kTH1D, {{31, -15.5, 15.5}}});
353+
int nChannels = hf_decay::hf_cand_reso::DecayChannelMain::NChannelsMain;
354+
registry.add("hMCRecCounter", "Number of Reconstructed MC Matched candidates per channel", {HistType::kTH1D, {{2*nChannels + 1, -(nChannels + 0.5), nChannels + 0.5}}});
354355
registry.add("hMCRecDebug", "Debug of MC Reco", {HistType::kTH1D, {{551, -0.5, 550.5}}});
355356
registry.add("hMCRecOrigin", "Origin of Matched particles", {HistType::kTH1D, {{3, -0.5, 2.5}}});
356357
registry.add("hMCRecMassGen", "Generated inv. mass of resoncances", {HistType::kTH1D, {{2000, 1.8, 3.8}}});
@@ -931,6 +932,9 @@ struct HfDataCreatorCharmResoReduced {
931932
origin = candCharmBach.originMcRec();
932933
}
933934
flagTrack = getMatchingFlagTrack(bachelorTrack);
935+
if (std::abs(flagTrack) > 0) {
936+
SETBIT(debugMcRec, flagTrack);
937+
}
934938
if (hf_decay::hf_cand_2prong::daughtersD0Main.contains(static_cast<hf_decay::hf_cand_2prong::DecayChannelMain>(std::abs(flagCharmBach))) && flagTrack == hf_decay::hf_cand_reso::PartialMatchMc::PionMatched) {
935939
auto arrDaughtersReso = std::array{vecDaughtersReso[0], vecDaughtersReso[1], bachelorTrack};
936940
auto pdgCodesDzeroDaughters = hf_decay::hf_cand_2prong::daughtersD0Main.at(static_cast<hf_decay::hf_cand_2prong::DecayChannelMain>(std::abs(flagCharmBach)));

PWGHF/Utils/utilsMcMatching.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ const std::unordered_map<int, int> particlesToDstarPi = {
198198
const std::unordered_map<int, int> particlesToDplusPi = {
199199
{DecayChannelMain::D2starzeroToDplusPi, constants::physics::Pdg::kD2Star0}};
200200
const std::unordered_map<int, int> particlesToD0Pi = {
201-
{DecayChannelMain::D2starplusToD0Pi, constants::physics::Pdg::kD2StarPlus}};
201+
{DecayChannelMain::D2starplusToD0Pi, constants::physics::Pdg::kD2StarPlus},
202+
{DecayChannelMain::DstarToD0Pi, constants::physics::Pdg::kDStar}};
202203
const std::unordered_map<int, int> particlesToD0Kplus = {
203204
{DecayChannelMain::Ds2starToD0Kplus, constants::physics::Pdg::kDS2Star}};
204205

0 commit comments

Comments
 (0)